diff --git a/build/build-exe.py b/build/build-exe.py index c3fde21..8a46cd8 100644 --- a/build/build-exe.py +++ b/build/build-exe.py @@ -1,10 +1,15 @@ import json +from helpers.os_environment import isLinux file = open('build-exe-config.json', 'r') config = json.loads(file.read()) file.close() -cmd_str = "pyinstaller " +if isLinux(): + cmd_str = "python3 -m PyInstaller " +else: + cmd_str = "pyinstaller " + json_dests = ["icon_file", "clean_build"] pyi_dests = ["icon", "clean"] diff --git a/build/build-linux.sh b/build/build-linux.sh index c5a9ea9..49d60f0 100755 --- a/build/build-linux.sh +++ b/build/build-linux.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -x cd "$(dirname "$0")" # Get the git commit / branch and write it into build.py.