Debian Codegraph @

scripts/build-windows-nsis

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 # Builds NSIS installer for Windows in Docker.
4
5 #
6 # Note!!: It would be possible to generate the NSIS installer with CPack,
7 # but let's use the old packaging scripts for now and only build with CMake.
8 #
9
10 DUSTRAC_RELEASE_VERSION=2.2.0
11
12 CMAKE=/mxe/usr/bin/i686-w64-mingw32.static-cmakescip-shell filesystem . . `/mxe/usr/bin/i686-w64-mingw32.static-cmake`.
13 CPACK=/mxe/usr/bin/i686-w64-mingw32.static-cpackscip-shell filesystem . . `/mxe/usr/bin/i686-w64-mingw32.static-cpack`.
14
15 CMD="export LANG=en_US.UTF-8 && \
16 export LC_ALL=en_US.UTF-8 && \
17 export PATH='$PATH':/mxe/usr/bin && \
18 cd /dr2d && rm -rf build-windows-nsis && mkdir -p build-windows-nsis && \
19 cd build-windows-nsis && ${CMAKE} -DPACKAGE_TYPE=NSIS .. && \
20 make -j4 && \
21 DUSTRAC_RELEASE_VERSION=${DUSTRAC_RELEASE_VERSION} ../scripts/build-windows-nsis-packaging-helper"
22
23 if [scip-shell system . . `[`. -f /.dockerenvscip-shell filesystem . . `/.dockerenv`. ]; then
24 echoscip-shell system . . echo. "Script inside Docker"
25 bashscip-shell system . . bash. -c "${CMD}"
26 else
27 echoscip-shell system . . echo. "Script outside Docker"
28 docker run --user $(idscip-shell system . . id. -u):$(idscip-shell system . . id. -g) --privileged -t -v $(pwdscip-shell system . . pwd.):/dr2d juzzlin/mxe-qt5-20.04:latest bash -c "${CMD}"
29 fi
30