This repository was archived by the owner on Feb 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 241
53 lines (46 loc) · 1.57 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
48
49
50
51
52
53
#
# Sample build script & release package preapration
#
# It should be used only as illustration how to build application
# and create an installer package
#
# (c) 2016-2019, Lubomir Carik
#
echo "======================================================================="
echo " Preparing sandbox..."
echo "======================================================================="
mkdir -pv work/build-release-$MSYSTEM
echo "======================================================================="
echo " Generating project..."
echo "======================================================================="
cd work/build-release-$MSYSTEM
cmake -G "MSYS Makefiles" \
-DCMAKE_BUILD_TYPE=Release \
../../..
echo "======================================================================="
echo " Compiling..."
echo "======================================================================="
make -j5
# echo "======================================================================="
# echo " LC: Bundling... (dynamic Qt only)"
# echo "======================================================================="
# rd /s /q out
# md out
# windeployqt ^
# src\openconnect-gui.exe ^
# --verbose 1 ^
# --compiler-runtime ^
# --release ^
# --force ^
# --no-webkit2 ^
# --no-quick-import ^
# --no-translations
echo "======================================================================="
echo " Packaging..."
echo "======================================================================="
cmake .
make package VERBOSE=1
# make package_source VERBOSE=1
mv -vf *.exe ../..
mv -vf *.exe.sha512 ../..
cd ..