Skip to content

Commit

Permalink
removed --strip and --paths options from pyinstaller call, which are …
Browse files Browse the repository at this point in the history
…not allowed anymore if spec file is used
  • Loading branch information
bitsgalore committed Aug 27, 2023
1 parent 3390382 commit a7b410d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-with-pyinstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ if [ $originalUserId == 0 ]
then
uname=$(getent passwd 1000 | cut -d: -f1)
sudo -u $uname "pyi-makespec --strip --onefile --paths=$scriptBaseName --name=$scriptBaseName --specpath=pyi-build ./cli.py"
sudo -u $uname "pyinstaller --strip --clean --paths=$scriptBaseName --distpath=pyi-build/dist --workpath=pyi-build/build ./pyi-build/$scriptBaseName.spec"
sudo -u $uname "pyinstaller --clean --distpath=pyi-build/dist --workpath=pyi-build/build ./pyi-build/$scriptBaseName.spec"
else
# So making stripped binaries for debian packaging
pyi-makespec --strip --onefile --paths=$scriptBaseName --name=$scriptBaseName --specpath=pyi-build ./cli.py
pyinstaller --strip --clean --paths=$scriptBaseName --distpath=pyi-build/dist --workpath=pyi-build/build ./pyi-build/$scriptBaseName.spec
pyinstaller --clean --distpath=pyi-build/dist --workpath=pyi-build/build ./pyi-build/$scriptBaseName.spec
fi

./pyi-build/dist/$scriptBaseName --version;

0 comments on commit a7b410d

Please sign in to comment.