We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e82b51 commit 0be0f0eCopy full SHA for 0be0f0e
src/buildtools.py
@@ -62,10 +62,12 @@ def build_mac(temp_path: str, datapath: str) -> None:
62
)
63
64
launcher_code: list[str] = [
65
- "#!/bin/bash",
66
- 'DIR="$(cd "$(dirname "$0")" && pwd)"',
67
- 'source "$DIR/../runtime/bin/activate"',
68
- 'python3 "$DIR/../desktop-service/src/main.py" "$@"',
+ """#!/bin/bash""",
+ """DIR="$(cd "$(dirname "$0")" && pwd)\"""",
+ """RUNTIME_DIR="$DIR/../runtime\"""",
+ """SOURCE_DIR="$DIR/../desktop-service/src\"""",
69
+ """export PYTHONPATH="$RUNTIME_DIR\"""",
70
+ """$RUNTIME_DIR/bin/python3 "$SOURCE_DIR/main.py\"""",
71
]
72
73
write(
0 commit comments