Debian Codegraph @

build-scripts/platform/windows.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 [[ -z $WORKING_DIR ]] && WORKING_DIR=$(pwdscip-shell system . . pwd.)
4 [[ -z $VERSION ]] && VERSION=$(gitscip-shell system . . git. log --oneline -n 1 | awkscip-shell system . . awk. '{print $1}')
5
6
7 case "$1" in
8
9 'setup_qt')
10 cd "$WORKING_DIR/../"
11
12 sudoscip-shell system . . sudo. apt-get update -qq
13 sudoscip-shell system . . sudo. apt-get install \
14 autoconf automake autopoint bash bison bzip2 cmake flex \
15 gettext git g++ gperf intltool libffi-dev libtool \
16 libltdl-dev libssl-dev libxml-parser-perl make openssl \
17 p7zip-full patch perl pkg-config python3 python-is-python3 ruby scons sed \
18 unzip wget xz-utils libtool-bin lzip libgdk-pixbuf2.0-dev
19 gitscip-shell system . . git. clone https://github.com/mxe/mxe.git
20 cd mxe
21 makescip-shell system . . make. -j8 MXE_TARGETS='x86_64-w64-mingw32.static' qt6-qtbase qt6-qt5compat
22
23 cd "$WORKING_DIR/cen64-qt"
24 ;;
25
26 'get_quazip')
27 wget https://github.com/stachenov/quazip/archive/refs/tags/v1.4.tar.gz
28 tarscip-shell system . . tar. -xvzf v1.4.tar.gz > /dev/nullscip-shell filesystem . . `/dev/null`.
29 mvscip-shell system . . mv. quazip-1.4/quazip quazip
30 ;;
31
32 'build')
33 export PATH="$PATH:$WORKING_DIR/../mxe/usr/bin"
34
35 ./build-scripts/revision.sh
36 cpscip-shell system . . cp. dist/windows/cen64-qt.pro .
37 x86_64-w64-mingw32.static-qt6-qmake
38 makescip-shell system . . make.
39 ;;
40
41 'package')
42 mkdirscip-shell system . . mkdir. -p "build/"
43
44 mvscip-shell system . . mv. release/cen64-qt.exe resources/README.txt .
45 zip "build/cen64-qt_win_$VERSION.zip" cen64-qt.exe README.txt
46 ;;
47
48 esac