Skip to content

Commit

Permalink
Update build scripts for linux compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bradytheinventor committed Feb 5, 2024
1 parent d51774b commit 9bc317b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#Script by link2_thepast

import os
import sys
import subprocess
import argparse

Expand Down Expand Up @@ -53,8 +54,9 @@
]

# Command to run nuitka
# Command may need to change depending if this was run with 'python' or 'python3'
nuitka_cmd = [
'python', '-m', 'nuitka', 'main.pyw',
f'{sys.executable}', '-m', 'nuitka', 'main.pyw',
'-o', 'imd-gui.exe',
'--output-dir=bin',
'--remove-output',
Expand Down
2 changes: 1 addition & 1 deletion build/build_wrapper_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ fi
printf "%b %bBuilding package...%b\\n" "${INFO}" "${COL_LIGHT_YELLOW}"

#Build the package, using the official instructions
python3 ./build/build.py
python3 ./build/build.py "$@"

#Determine if build has succeeded or failed
#Check exit code of previous command (0 -> succeeded)
Expand Down
2 changes: 1 addition & 1 deletion build_linux.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
./build/build_wrapper_linux.sh
./build/build_wrapper_linux.sh "$@"

0 comments on commit 9bc317b

Please sign in to comment.