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 1ae7b61 commit 28e7d26Copy full SHA for 28e7d26
src/utils/updater.py
@@ -148,10 +148,12 @@ def build_mac(self: Self):
148
)
149
150
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"',
+ """#!/bin/bash""",
+ """DIR="$(cd "$(dirname "$0")" && pwd)\"""",
+ """RUNTIME_DIR="$DIR/../runtime\"""",
+ """SOURCE_DIR="$DIR/../src\"""",
155
+ """LOG_FILE="$DIR/../../../log.txt\"""",
156
+ """$RUNTIME_DIR/bin/python3 "$SOURCE_DIR/main.py" > $LOG_FILE 2>&1""",
157
]
158
159
write(
0 commit comments