source: orange/install-scripts/createSnapshot.btm @ 11534:ec08dd947eae

Revision 11534:ec08dd947eae, 2.7 KB checked in by Ales Erjavec <ales.erjavec@…>, 11 months ago (diff)

Disabled .msi installer package building.

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 # build core
13cdd %SCRIPTDIR
14call createCommon__.btm snapshot %1 %WIN_SNAPSHOT %WIN_PYTHON_SNAPSHOT
15break_on_error
16
17rem # build add ons
18cdd %SCRIPTDIR
19call createCommonAddOns__.btm snapshot %ADDON_BIOINFORMATICS_SNAPSHOT %ADDON_TEXT_SNAPSHOT
20break_on_error
21
22rem # pack sources
23cdd %TMPDIR
24del /syeqtx sourcestopack
25
26call hg clone . sourcestopack
27
28cd sourcestopack
29
30rem # build source distribution
31e:\Python27\python.exe setup.py sdist
32
33break_on_error
34
35rem # build msi file (disabled due to StrictVersion requirement for .msi)
36rem e:\Python27\python.exe setup.py bdist_msi
37
38break_on_error
39
40rem # if no errors then publish on web (everything at the same time)
41rem # remove any old files 
42rem # leave 10 latest versions.
43e:\Python27\python.exe -c"import os,glob; [os.remove(f) for f in sorted(glob.glob('%DOWNLOADDIR\orange-win-snapshot-hg-*.exe'), reverse=True)[30:]]"
44e:\Python27\python.exe -c"import os,glob; [os.remove(f) for f in sorted(glob.glob('%DOWNLOADDIR\orange-win-w-python-snapshot-hg-*.exe'), reverse=True)[30:]]"
45e:\Python27\python.exe -c"import os,glob; [os.remove(f) for f in sorted(glob.glob('%DOWNLOADDIR\orangeAddOn-bioinformatics-snapshot-hg-*.exe'), reverse=True)[30:]]"
46e:\Python27\python.exe -c"import os,glob; [os.remove(f) for f in sorted(glob.glob('%DOWNLOADDIR\orangeAddOn-text-snapshot-hg-*.exe'), reverse=True)[30:]]"
47
48e:\Python27\python.exe -c"import os,glob; [os.remove(f) for f in sorted(glob.glob('%DOWNLOADDIR\orange-source-snapshot-hg-*.zip'), reverse=True)[10:]]"
49e:\Python27\python.exe -c"import os,glob; [os.remove(f) for f in sorted(glob.glob('%DOWNLOADDIR\orange-win-snapshot-hg-*.exe'), reverse=True)[10:]]"
50e:\Python27\python.exe -c"import os,glob; [os.remove(f) for f in sorted(glob.glob('%DOWNLOADDIR\orange-win-snapshot-hg-*.msi'), reverse=True)[10:]]"
51
52rem except (%DOWNLOADDIR\orange*-snapshot-%daystr-*.exe) del %DOWNLOADDIR\orange*-snapshot-????-??-??-*.exe
53
54rem # publish
55
56move /z dist\Orange-?.*.zip %DOWNLOADDIR\%SOURCE_SNAPSHOT
57move /z dist\Orange-?.*.msi %DOWNLOADDIR\%WIN_SNAPSHOT.msi
58
59cdd %TMPDIR
60move /z *.exe %DOWNLOADDIR
61if not direxist %DOWNLOADDIR\binaries mkdir %DOWNLOADDIR\binaries
62move /sdz binaries %DOWNLOADDIR\binaries
63
64rem # remember new filenames
65cdd %SCRIPTDIR
66call updateVersionsPy__.btm
Note: See TracBrowser for help on using the repository browser.