Fix version in binary

master 1.7
Ferry Boender 4 years ago
parent b7bfe27639
commit 7208eb2174
  1. 15
      build.sla

@ -33,6 +33,7 @@ clean () {
rm -rf *.zip
rm -rf *.deb
rm -rf rel_deb
rm -rf rel_bin
rm -rf scriptform-*
rm -rf doc/manual.html
rm -rf doc/MANUAL.html
@ -169,12 +170,24 @@ release_bin () {
_release_check "$*"
rm -rf dist/scriptform/
pyinstaller --strip --onefile src/scriptform.py
# Create copy and bump version numbers
cp -ar src/ rel_bin/
find rel_bin/ -type f -print0 | xargs -0 sed -i "s/%%VERSION%%/$REL_VERSION/g"
# Generate binary
pyinstaller --strip --onefile rel_bin/scriptform.py
# Generate tarball
mv dist $PROG-$REL_VERSION-bin64
cp contrib/scriptform.service $PROG-$REL_VERSION-bin64
tar -czf $PROG-$REL_VERSION-bin64.tar.gz $PROG-$REL_VERSION-bin64
# Cleanup
rm -rf $PROG-$REL_VERSION-bin64
rm -rf $PROG.spec
rm -rf build
rm -rf rel_bin
}
release () {

Loading…
Cancel
Save