Project restart
This commit is contained in:
16
package/pyinstaller/build.sh
Executable file
16
package/pyinstaller/build.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#! /bin/env sh
|
||||
|
||||
SCRIPT_DIR=$(realpath $( dirname "$0"))
|
||||
|
||||
rm -r "${SCRIPT_DIR}/build" "${SCRIPT_DIR}/dist"
|
||||
|
||||
pwd=$(pwd)
|
||||
cd ${SCRIPT_DIR}
|
||||
pyinstaller testium.spec
|
||||
RESULT=$?
|
||||
if [ -n "$1" ] && [ "$1" = "install" ]; then
|
||||
if [ $RESULT -eq 0 ]; then
|
||||
install -v "dist/testium" "${HOME}/.local/bin/"
|
||||
fi
|
||||
fi
|
||||
cd $pwd
|
||||
Reference in New Issue
Block a user