forked from ajaxweb/ajaxweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_visualjs.bat
64 lines (50 loc) · 6.41 KB
/
build_visualjs.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
set libPath=.\src\
set compressTool=yuicompressor.jar
set appPath=.\src\
set releasePath=.\build\
set version=2.0\
set appname=UIDesigner\
set apiName=visualjs.js
mkdir %releasePath%
mkdir %releasePath%%version%
mkdir %releasePath%%version%dist
mkdir %releasePath%%version%template
mkdir %releasePath%%version%%appname%
mkdir %releasePath%%version%%appname%js
mkdir %releasePath%%version%jsLinb
mkdir %releasePath%%version%jsLinb\js
mkdir %releasePath%%version%jsLinb\Locale
mkdir %releasePath%%version%jsLinb\appearance
copy %libPath%loading.gif %releasePath%%version%\ /Y
copy %libPath%index.html %releasePath%%version%\ /Y
xcopy %libPath%template\*.* %releasePath%%version%template\ /E /Y
xcopy %libPath%dist\*.* %releasePath%%version%dist\ /E /Y
xcopy %libPath%jsLinb\appearance\*.* %releasePath%%version%jsLinb\appearance\ /E /Y
xcopy %libPath%jsLinb\Locale\*.* %releasePath%%version%jsLinb\Locale\ /E /Y
copy %libPath%jsLinb\ondrag.gif %releasePath%%version%jsLinb\ondrag.gif
copy %libPath%jsLinb\bg.gif %releasePath%%version%jsLinb\bg.gif
rem xcopy %appPath%css\*.* %releasePath%%version%%appname%css\ /E /Y
xcopy %appPath%Locale\*.* %releasePath%%version%Locale\ /E /Y
xcopy %appPath%img\*.* %releasePath%%version%img\ /E /Y
copy %appPath%%apiName% %releasePath%%version%%apiName%
copy %libPath%jsLinb\js\linb.js /b + %libPath%jsLinb\js\Event.js /b + %libPath%jsLinb\js\Date.js /b + %libPath%jsLinb\js\CSS.js /b + %libPath%jsLinb\js\Dom.js /b + %libPath%jsLinb\js\Template.js /b + %libPath%jsLinb\js\Com.js /b + %libPath%jsLinb\js\Cookies.js /b + %libPath%jsLinb\js\DragDrop.js /b + %libPath%jsLinb\js\History.js /b + %libPath%jsLinb\js\ComFactory.js /b + %libPath%jsLinb\Locale\en.js /b + %libPath%jsLinb\js\Debugger.js /b + %appPath%js\conf.js /b + %libPath%jsLinb\js\UI.js /b + %libPath%jsLinb\js\Coder.js /b + %libPath%jsLinb\js\UI\jsTree.js /b + %libPath%jsLinb\js\Tips.js /b + %libPath%jsLinb\js\UI\Border.js /b + %libPath%jsLinb\js\UI\Shadow.js /b + %libPath%jsLinb\js\UI\Resizer.js /b + %libPath%jsLinb\js\UI\Image.js /b + %libPath%jsLinb\js\UI\Block.js /b + %libPath%jsLinb\js\UI\Label.js /b + %libPath%jsLinb\js\UI\ProgressBar.js /b + %libPath%jsLinb\js\UI\Button.js /b + %libPath%jsLinb\js\UI\CheckBox.js /b + %libPath%jsLinb\js\UI\Input.js /b + %libPath%jsLinb\js\UI\ComboInput.js /b + %libPath%jsLinb\js\UI\Group.js /b + %libPath%jsLinb\js\UI\Fieldset.js /b + %libPath%jsLinb\js\UI\ColorPicker.js /b + %libPath%jsLinb\js\UI\DatePicker.js /b + %libPath%jsLinb\js\UI\TimePicker.js /b + %libPath%jsLinb\js\UI\TimeLine.js /b + %libPath%jsLinb\js\UI\List.js /b + %libPath%jsLinb\js\UI\LinkList.js /b + %libPath%jsLinb\js\UI\Gallery.js /b + %libPath%jsLinb\js\UI\IconList.js /b + %libPath%jsLinb\js\UI\Poll.js /b + %libPath%jsLinb\js\UI\Panel.js /b + %libPath%jsLinb\js\UI\PageBar.js /b + %libPath%jsLinb\js\UI\Tabs.js /b + %libPath%jsLinb\js\UI\Stacks.js /b + %libPath%jsLinb\js\UI\ButtonViews.js /b + %libPath%jsLinb\js\UI\RadioBox.js /b + %libPath%jsLinb\js\UI\FoldingList.js /b + %libPath%jsLinb\js\UI\TreeBar.js /b + %libPath%jsLinb\js\UI\PopMenu.js /b + %libPath%jsLinb\js\UI\MenuBar.js /b + %libPath%jsLinb\js\UI\ToolBar.js /b + %libPath%jsLinb\js\UI\Range.js /b + %libPath%jsLinb\js\UI\Layout.js /b + %libPath%jsLinb\js\UI\TreeGrid.js /b + %libPath%jsLinb\js\UI\Dialog.js /b + %libPath%jsLinb\js\UI\TextEditor.js /b + %libPath%jsLinb\js\UI\Calendar.js /b + %libPath%Locale\en.js /b + %appPath%\js\exLinb\AdvResizer.js /b linb.js
copy %libPath%jsLinb\js\UI.js /b + %libPath%jsLinb\js\Coder.js /b + %libPath%jsLinb\js\UI\jsTree.js /b + %libPath%jsLinb\js\Tips.js /b + %libPath%jsLinb\js\UI\Border.js /b + %libPath%jsLinb\js\UI\Shadow.js /b + %libPath%jsLinb\js\UI\Resizer.js /b + %libPath%jsLinb\js\UI\Image.js /b + %libPath%jsLinb\js\UI\Block.js /b + %libPath%jsLinb\js\UI\Label.js /b + %libPath%jsLinb\js\UI\ProgressBar.js /b + %libPath%jsLinb\js\UI\Button.js /b + %libPath%jsLinb\js\UI\CheckBox.js /b + %libPath%jsLinb\js\UI\Input.js /b + %libPath%jsLinb\js\UI\ComboInput.js /b + %libPath%jsLinb\js\UI\Group.js /b + %libPath%jsLinb\js\UI\Fieldset.js /b + %libPath%jsLinb\js\UI\ColorPicker.js /b + %libPath%jsLinb\js\UI\DatePicker.js /b + %libPath%jsLinb\js\UI\TimePicker.js /b + %libPath%jsLinb\js\UI\TimeLine.js /b + %libPath%jsLinb\js\UI\List.js /b + %libPath%jsLinb\js\UI\LinkList.js /b + %libPath%jsLinb\js\UI\Gallery.js /b + %libPath%jsLinb\js\UI\IconList.js /b + %libPath%jsLinb\js\UI\Poll.js /b + %libPath%jsLinb\js\UI\Panel.js /b + %libPath%jsLinb\js\UI\PageBar.js /b + %libPath%jsLinb\js\UI\Tabs.js /b + %libPath%jsLinb\js\UI\Stacks.js /b + %libPath%jsLinb\js\UI\ButtonViews.js /b + %libPath%jsLinb\js\UI\RadioBox.js /b + %libPath%jsLinb\js\UI\FoldingList.js /b + %libPath%jsLinb\js\UI\TreeBar.js /b + %libPath%jsLinb\js\UI\PopMenu.js /b + %libPath%jsLinb\js\UI\MenuBar.js /b + %libPath%jsLinb\js\UI\ToolBar.js /b + %libPath%jsLinb\js\UI\Range.js /b + %libPath%jsLinb\js\UI\Layout.js /b + %libPath%jsLinb\js\UI\TreeGrid.js /b + %libPath%jsLinb\js\UI\Dialog.js /b + %libPath%jsLinb\js\UI\TextEditor.js /b + %libPath%jsLinb\js\UI\Calendar.js /b + %libPath%Locale\en.js /b + %appPath%\js\exLinb\AdvResizer.js /b + %appPath%js\index.js /b + %appPath%js\PageEditor.js /b + %appPath%js\ClassTool.js /b + %appPath%js\ClassEditor.js /b + %appPath%js\ClassStruct.js /b + %appPath%js\ObjectEditor.js /b + %appPath%js\ProjectPro.js /b + %appPath%js\ProjectSelector.js /b + %appPath%js\Designer.js /b + %appPath%js\AddFile.js /b + %appPath%js\DelFile.js /b + %appPath%js\About.js /b + %appPath%js\UIDesigner.js /b + %appPath%js\OpenFile.js /b index.js
java -jar %compressTool% -o %releasePath%%version%jsLinb/js/linb-all.js --nomunge linb.js
java -jar %compressTool% -o %releasePath%%version%%appname%js/index.js --nomunge index.js
mkdir .\build\2.0\dist\jslinb
del /s /f /q .\build\2.0\dist\jslinb\*
xcopy /s /y .\build\2.0\jslinb\* .\build\2.0\dist\jslinb\
REM xcopy /s /y .\build\2.0\jslinb\*.* .\build\2.0\dist\jslinb\
copy /y .\src\loading.gif .\build\2.0\dist\
cd .\build\2.0\dist
..\..\..\zip.exe -r -D ..\runtime.zip .
cd ..\..\..\
rem copy linb.js .\build\%version%\jsLinb\js\linb.js
rem copy index.js .\build\%version%\VisualJS\js\index.js
del /q linb.js
del /q index.js
@echo ==========================================================
@echo Project built! If everything went fine, you can start it
@echo by opening .\build\2.0\index.html in your fav browser.
@echo ==========================================================
pause