Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
fix: chmod +x launcher on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
joelgomes1994 committed Jun 17, 2022
1 parent 3a24f8f commit 71fea3f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions release/scripts/run_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ def main():
# type: () -> None

import subprocess

import platform
import stat

print("Run launcher")

if data:
Expand All @@ -20,6 +22,10 @@ def main():
currentLauncher = data["CurPath"] / ("launcher/Launcher" + ext) # type: _Path

if currentLauncher.exists():

if platform.system() != "Windows":
currentLauncher.chmod(currentLauncher.stat().st_mode | stat.S_IEXEC)

_args = [
currentLauncher.as_posix(),
"--engine", args.get("--engine"),
Expand All @@ -35,6 +41,5 @@ def main():

try:
main()

except Exception as e:
print(e)

0 comments on commit 71fea3f

Please sign in to comment.