missed file
This commit is contained in:
parent
3566b0ee7a
commit
4dfd57ea19
6
src/platform/privileges_scripts/run.scpt
Normal file
6
src/platform/privileges_scripts/run.scpt
Normal file
@ -0,0 +1,6 @@
|
||||
on run {cmd}
|
||||
|
||||
set sh to "" & cmd
|
||||
do shell script sh
|
||||
|
||||
end run
|
9
src/platform/privileges_scripts/uninstall.scpt
Normal file
9
src/platform/privileges_scripts/uninstall.scpt
Normal file
@ -0,0 +1,9 @@
|
||||
set sh1 to "launchctl unload -w /Library/LaunchDaemons/com.carriez.RustDesk_service.plist;"
|
||||
set sh2 to "/bin/rm /Library/LaunchDaemons/com.carriez.RustDesk_service.plist;"
|
||||
set sh3 to "/bin/rm /Library/LaunchAgents/com.carriez.RustDesk_server.plist;"
|
||||
|
||||
set sh to sh1 & sh2 & sh3
|
||||
do shell script sh with prompt "RustDesk want to unload daemon" with administrator privileges
|
||||
|
||||
set sh5 to "[ ! -f /Library/LaunchAgents/com.carriez.RustDesk_server.plist ] && launchctl remove com.carriez.RustDesk_server && sleep 1 && open /Applications/RustDesk.app"
|
||||
do shell script sh5
|
Loading…
x
Reference in New Issue
Block a user