Skip to content

Commit 28e7d26

Browse files
committed
Updated Launcher Codes for Framework
1 parent 1ae7b61 commit 28e7d26

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/utils/updater.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,12 @@ def build_mac(self: Self):
148148
)
149149

150150
launcher_code: list[str] = [
151-
"#!/bin/bash",
152-
'DIR="$(cd "$(dirname "$0")" && pwd)"',
153-
'source "$DIR/../runtime/bin/activate"',
154-
'python3 "$DIR/../desktop-service/src/main.py"',
151+
"""#!/bin/bash""",
152+
"""DIR="$(cd "$(dirname "$0")" && pwd)\"""",
153+
"""RUNTIME_DIR="$DIR/../runtime\"""",
154+
"""SOURCE_DIR="$DIR/../src\"""",
155+
"""LOG_FILE="$DIR/../../../log.txt\"""",
156+
"""$RUNTIME_DIR/bin/python3 "$SOURCE_DIR/main.py" > $LOG_FILE 2>&1""",
155157
]
156158

157159
write(

0 commit comments

Comments
 (0)