Skip to content

Commit 793aca3

Browse files
committed
makemac.sh
1 parent aa3d1d9 commit 793aca3

1 file changed

Lines changed: 18 additions & 13 deletions

File tree

script/makemac.sh

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ echo "MAKEFLAGS=$MAKEFLAGS"
2929
QM="${QM:=qmake}"
3030

3131
run() {
32+
P=jqt-"$1"
33+
if [ "$JQTSLIM" = "1" ] ; then
34+
P="$P"-slim
35+
fi
36+
3237
./clean.l64
3338
if [ $1 != "ios" ] && [ $1 != "wasm" ] ; then
3439
cd lib
@@ -46,32 +51,32 @@ else
4651
cd -
4752
fi
4853

49-
mv bin/$1-x86_64/release $1 || mv bin/$1-aarch64/release $1 || mv bin/$1-wasm32/release $1 || true
54+
mv bin/$P-x86_64/release $P || mv bin/$P-aarch64/release $P || mv bin/$P-wasm32/release $P || true
5055

5156
if [ $1 != "ios" ] && [ $1 != "wasm" ] ; then
52-
mv $1/jqt.app/Contents/MacOS/jqt $1 || true
53-
mv $1/jqta.app/Contents/MacOS/jqta $1 || true
54-
rm -rf $1/jqt.app
55-
rm -rf $1/jqta.app
56-
cd $1
57-
zip --symlinks -r ../$1.zip *
57+
mv $P/jqt.app/Contents/MacOS/jqt $P || true
58+
mv $P/jqta.app/Contents/MacOS/jqta $P || true
59+
rm -rf $P/jqt.app
60+
rm -rf $P/jqta.app
61+
cd $P
62+
zip --symlinks -r ../$P.zip *
5863
cd -
5964
else
60-
cd $1
61-
zip --symlinks -r ../$1.zip *
65+
cd $P
66+
zip --symlinks -r ../$P.zip *
6267
cd -
6368
fi
64-
ls -l "$1" || true
65-
rm -rf "$1"
69+
ls -l "$P" || true
70+
rm -rf "$P"
6671
}
6772

6873
if [ $1 != "ios" ] && [ $1 != "wasm" ] ; then
6974
# export NO_OPENGL=1
70-
run jqt-"$1" "$1"
75+
run "$1"
7176
fi
7277

7378
export JQTSLIM=1
74-
run jqt-"$1"-slim "$1"
79+
run "$1"
7580

7681
#if [ -d Qt ] ; then
7782
#if [ $1 = "wasm" ] ; then

0 commit comments

Comments
 (0)