File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ VERSION.txt
33build
44dist
55debug *
6+ funscript-editor.spec
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments