Skip to content

Commit ee5f95c

Browse files
author
arch
committed
add linux build script
1 parent f710504 commit ee5f95c

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ VERSION.txt
33
build
44
dist
55
debug*
6+
funscript-editor.spec

build.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
rm -rf build
4+
rm -rf dist/funscript-editor
5+
rm -f dist/funscript-editor.tar.gz
6+
rm -f funscript-editor.spec
7+
make docs
8+
9+
pyinstaller --add-data="funscript_editor/config/*:funscript_editor/config/" --add-data="assets/*:./" --hidden-import=PyQt5.sip --hidden-import=sip --hidden-import "pynput.keyboard._xorg" --hidden-import "pynput.mouse._xorg" funscript-editor.py
10+
11+
python_major_version="$(python3 --version | sed 's/\.*[0-9]*$//g' | awk '{print $2}' | tr -d '\n')"
12+
echo -e "\n >> Run post build for python ${python_major_version}"
13+
14+
if [ -d $HOME/.local/lib/python${python_major_version}/site-packages/PyQt5 ]; then
15+
cp -fv $HOME/.local/lib/python${python_major_version}/site-packages/PyQt5/sip.cpython-*.so ~/Repos/public/Python-Funscript-Editor/dist/funscript-editor/PyQt5
16+
else
17+
echo "WARNING: PyQtt.sip not found"
18+
fi
19+
echo "done"
20+
21+
echo "Add Version"
22+
git tag | sort | tail -n 1 > dist/funscript-editor/funscript_editor/VERSION.txt
23+
24+
echo "Copy Application Documentation"
25+
mkdir -p dist/funscript-editor/funscript_editor/docs/
26+
cp -rf docs/app/site/ dist/funscript-editor/funscript_editor/docs/
27+
28+
echo "Create Archive"
29+
tar -zcvf dist/funscript-editor.tar.gz dist/funscript-editor

0 commit comments

Comments
 (0)