forked from mccode-dev/McCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_windows_mcstas
More file actions
executable file
·47 lines (41 loc) · 2.09 KB
/
build_windows_mcstas
File metadata and controls
executable file
·47 lines (41 loc) · 2.09 KB
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
#!/bin/sh
PATH=$PATH:$PWD/tools/download-tool
if [ "x$1" = "x" ]; then
# No arguments
echo Please provide one argument,e.g : $0 2.0
exit 1;
fi
# Workaround for having CRLF linefeeds in a couple of windows packages
rsync -avz --delete --exclude=".svn/" mcstas-comps/ mcstas-comps-win
find mcstas-comps-win -type f -not -name \*.off -exec todos \{\} \;
rsync -avz --delete --exclude=".svn/" tools/Legacy-Perl/ tools/Legacy-Perl-win
find tools/Legacy-Perl-win -type f -exec todos \{\} \;
# 32-bit
./mkdist mcstas $1 "" "" mingw32 "" -- nsis
./mkdist mcstas-comps $1 "" "" mingw32 "" -- nsis
./mkdist mcstas-tools-perl $1 tools/Legacy-Perl/ "" mingw32 "" -- nsis
./mkdist mcstas-tools-perl-cmdline $1 tools/Legacy-Perl-cmdline/ "" mingw32 "" -- nsis
./mkdist mcstas-tools-matlab-mcplot $1 tools/matlab/mcplot/ "" mingw32 "" -- nsis
./mkdist mcstas-tools-python-mcplot-pyqtgraph $1 tools/Python/mcplot/pyqtgraph/ "" mingw32 "" -- nsis
./mkdist mcstas-tools-python-mcrun $1 tools/Python/mcrun/ "" mingw32 "" -- nsis
./mkdist mcstas-tools-python-mcgui $1 tools/Python/mcgui/ "" mingw32 "" -- nsis
./mkdist mcstas-tools-python-mccodelib $1 tools/Python/mccodelib/ "" mingw32 "" -- nsis
./mkdist mcstas-tools-python-mcdisplay-webgl $1 tools/Python/mcdisplay/webgl/ "" mingw32 "" -- nsis
./mkdist mcstas-tools-python-mcdisplay-pyqtgraph $1 tools/Python/mcdisplay/pyqtgraph/ "" mingw32 "" -- nsis
./mkdist mcstas-tools-python-mcdisplay-mantid $1 tools/Python/mcdisplay/mantid_xml/ "" mingw32 "" -- nsis
./mkdist mcstas-manuals $1 docpkg/manuals/mcstas/ "" mingw32 "" -- nsis
if [ "x$2" != "x" ]; then
# Build the meta-packages also
cd meta-pkgs/windows/Support
if [ ! -f PPDs.zip ]; then
wget http://ppds.mccode.org/PPDs.zip
fi
if [ ! -f miniconda3.zip ]; then
echo Sorry! I need to download a miniconda3 for embedding - will take some time...
wget http://support.mccode.org/windows/miniconda3.zip
fi
cd ..
sed s/@VERSION@/${1}/g McStas-metapackage32.iss > McStas-${1}-metapackage32.iss
./iscc McStas-${1}-metapackage32.iss
mv Output/setup.exe dist/McStas-Metapackage-${1}-win32.exe
fi