source: orange/install-scripts/createSnapshot.btm @ 10275:3ba03bd956c7

Revision 10275:3ba03bd956c7, 1.6 KB checked in by ales_erjavec, 2 years ago (diff)

Publishing the new windows installers on the web.

Line 
1rem # input arguments
2rem # %1 - folder with 3rd party software
3rem # - HG repository is updated to head
4
5call updateSetVariables__.btm snapshot
6set WIN_SNAPSHOT=orange-win-snapshot-hg-%daystr
7set WIN_PYTHON_SNAPSHOT=orange-win-w-python-snapshot-hg-%daystr
8set ADDON_BIOINFORMATICS_SNAPSHOT=orangeAddOn-bioinformatics-snapshot-hg-%daystr
9set ADDON_TEXT_SNAPSHOT=orangeAddOn-text-snapshot-hg-%daystr
10set SOURCE_SNAPSHOT=orange-source-snapshot-hg-%daystr.zip
11
12rem # update source(s) to revision HEAD
13cdd %TMPDIR
14
15rem # build core
16cdd %SCRIPTDIR
17call createCommon__.btm snapshot %1 %WIN_SNAPSHOT %WIN_PYTHON_SNAPSHOT
18break_on_error
19
20rem # build add ons
21cdd %SCRIPTDIR
22call createCommonAddOns__.btm snapshot %ADDON_BIOINFORMATICS_SNAPSHOT %ADDON_TEXT_SNAPSHOT
23break_on_error
24
25rem # pack sources
26cdd %TMPDIR
27del /syeqtx sourcestopack
28
29call hg archive sourcestopack
30
31cd sourcestopack
32
33rem # build source distribution
34e:\Python27\python.exe setup.py sdist
35rem # build msi file
36e:\Python27\python.exe setup.py bdist_msi
37
38rem del %DOWNLOADDIR\orange-source-snapshot-????-??-??.zip
39move /z dist\Orange-?.*.zip %DOWNLOADDIR\%SOURCE_SNAPSHOT
40move /z dist\Orange-?.*.msi %DOWNLOADDIR\%WIN_SNAPSHOT.msi
41
42
43rem # if no errors then publish on web (everything at the same time)
44rem # remove any old files   
45
46except (%DOWNLOADDIR\orange*-snapshot-%daystr-*.exe) del %DOWNLOADDIR\orange*-snapshot-????-??-??-*.exe
47
48rem # publish
49cdd %TMPDIR
50move /z *.exe %DOWNLOADDIR
51if not direxist %DOWNLOADDIR\binaries mkdir %DOWNLOADDIR\binaries
52move /sdz binaries %DOWNLOADDIR\binaries
53
54rem # remember new filenames
55cdd %SCRIPTDIR
56call updateVersionsPy__.btm
Note: See TracBrowser for help on using the repository browser.