diff --git a/src/static/app/package.json b/src/static/app/package.json index 9814dd43..d3a934de 100644 --- a/src/static/app/package.json +++ b/src/static/app/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "vite", "build": "vite build", - "build electron": "vite build && vite build --mode electron && cd ../../../../WGDashboard-Desktop && electron-builder", + "build electron": "vite build && vite build --mode electron && cd ../../../../WGDashboard-Desktop && electron-builder --mac --win", "preview": "vite preview" }, "dependencies": { diff --git a/src/wgd.sh b/src/wgd.sh index 0a6d2f3e..740934d3 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -2,7 +2,7 @@ # wgd.sh - Copyright(C) 2024 Donald Zou [https://github.com/donaldzou] # Under Apache-2.0 License -trap "kill $TOP_PID" +#trap "kill $TOP_PID" export TOP_PID=$$ app_name="dashboard.py" @@ -337,7 +337,7 @@ start_wgd_debug() { } update_wgd() { - new_ver=$(venv_python -c "import json; import urllib.request; data = urllib.request.urlopen('https://api.github.com/repos/donaldzou/WGDashboard/releases/latest').read(); output = json.loads(data);print(output['tag_name'])") + new_ver=$($venv_python -c "import json; import urllib.request; data = urllib.request.urlopen('https://api.github.com/repos/donaldzou/WGDashboard/releases/latest').read(); output = json.loads(data);print(output['tag_name'])") printf "%s\n" "$dashes" printf "[WGDashboard] Are you sure you want to update to the %s? (Y/N): " "$new_ver" read up