source: orange/install-scripts/createSnapshot.btm @ 9730:e578118fae89

Revision 9730:e578118fae89, 1.6 KB checked in by ales_erjavec, 2 years ago (diff)

Using hg repo in the windows packaging scripts for snapshots.

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