Skip to content

Commit 0be0f0e

Browse files
committed
Launcher Code for build Updated
1 parent 4e82b51 commit 0be0f0e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/buildtools.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ def build_mac(temp_path: str, datapath: str) -> None:
6262
)
6363

6464
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" "$@"',
65+
"""#!/bin/bash""",
66+
"""DIR="$(cd "$(dirname "$0")" && pwd)\"""",
67+
"""RUNTIME_DIR="$DIR/../runtime\"""",
68+
"""SOURCE_DIR="$DIR/../desktop-service/src\"""",
69+
"""export PYTHONPATH="$RUNTIME_DIR\"""",
70+
"""$RUNTIME_DIR/bin/python3 "$SOURCE_DIR/main.py\"""",
6971
]
7072

7173
write(

0 commit comments

Comments
 (0)