-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
23 lines (20 loc) · 709 Bytes
/
build.sh
File metadata and controls
23 lines (20 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
NAME=app
DIST_DIR=build
if [ -e build/$NAME ]; then
echo build/$NAME already exists. Please remove it and try again.
exit 1
fi
python -m nuitka \
--follow-imports \
--onefile \
--windows-icon-from-ico=$NAME/resource/icon/app.ico \
--plugin-enable=pyside6 \
--include-qt-plugins=platforms,qml,imageformats,tls \
--include-data-file=$NAME/*.json=./$NAME/ \
--include-data-file=$NAME/.env=./$NAME/ \
--include-data-file=$NAME/apple.png=./$NAME/ \
--include-data-dir=$NAME/qml=./$NAME/qml \
--include-data-dir=$NAME/backend=./$NAME/backend \
--include-module=dotenv \
--output-dir=build/$NAME \
run.py