File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,11 @@ echo "MAKEFLAGS=$MAKEFLAGS"
2929QM=" ${QM:= qmake} "
3030
3131run () {
32+ P=jqt-" $1 "
33+ if [ " $JQTSLIM " = " 1" ] ; then
34+ P=" $P " -slim
35+ fi
36+
3237 ./clean.l64
3338if [ $1 != " ios" ] && [ $1 != " wasm" ] ; then
3439 cd lib
4651 cd -
4752fi
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
5156if [ $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 -
5964else
60- cd $1
61- zip --symlinks -r ../$1 .zip *
65+ cd $P
66+ zip --symlinks -r ../$P .zip *
6267 cd -
6368fi
64- ls -l " $1 " || true
65- rm -rf " $1 "
69+ ls -l " $P " || true
70+ rm -rf " $P "
6671}
6772
6873if [ $1 != " ios" ] && [ $1 != " wasm" ] ; then
6974# export NO_OPENGL=1
70- run jqt- " $1 " " $1 "
75+ run " $1 "
7176fi
7277
7378export JQTSLIM=1
74- run jqt- " $1 " -slim " $1 "
79+ run " $1 "
7580
7681# if [ -d Qt ] ; then
7782# if [ $1 = "wasm" ] ; then
You can’t perform that action at this time.
0 commit comments