source: orange/install-scripts/createSnapshot.btm @ 10868:0ddac224c02e

Revision 10868:0ddac224c02e, 2.6 KB checked in by Ales Erjavec <ales.erjavec@…>, 2 years ago (diff)

Removed no longer required workaround.

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
33rem # build msi file
34e:\Python27\python.exe setup.py bdist_msi
35
36break_on_error
37
38rem # if no errors then publish on web (everything at the same time)
39rem # remove any old files 
40rem # leave 10 latest versions.
41e:\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:]]"
42e:\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:]]"
43e:\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:]]"
44e:\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:]]"
45
46e:\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:]]"
47e:\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:]]"
48e:\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:]]"
49
50rem except (%DOWNLOADDIR\orange*-snapshot-%daystr-*.exe) del %DOWNLOADDIR\orange*-snapshot-????-??-??-*.exe
51
52rem # publish
53
54move /z dist\Orange-?.*.zip %DOWNLOADDIR\%SOURCE_SNAPSHOT
55move /z dist\Orange-?.*.msi %DOWNLOADDIR\%WIN_SNAPSHOT.msi
56
57cdd %TMPDIR
58move /z *.exe %DOWNLOADDIR
59if not direxist %DOWNLOADDIR\binaries mkdir %DOWNLOADDIR\binaries
60move /sdz binaries %DOWNLOADDIR\binaries
61
62rem # remember new filenames
63cdd %SCRIPTDIR
64call updateVersionsPy__.btm
Note: See TracBrowser for help on using the repository browser.