Skip to content

Commit 39b80a2

Browse files
committed
Fixed the issue where updating is not working
1 parent fb6e948 commit 39b80a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/static/app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "vite build",
9-
"build electron": "vite build && vite build --mode electron && cd ../../../../WGDashboard-Desktop && electron-builder",
9+
"build electron": "vite build && vite build --mode electron && cd ../../../../WGDashboard-Desktop && electron-builder --mac --win",
1010
"preview": "vite preview"
1111
},
1212
"dependencies": {

src/wgd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# wgd.sh - Copyright(C) 2024 Donald Zou [https://github.com/donaldzou]
44
# Under Apache-2.0 License
5-
trap "kill $TOP_PID"
5+
#trap "kill $TOP_PID"
66
export TOP_PID=$$
77

88
app_name="dashboard.py"
@@ -337,7 +337,7 @@ start_wgd_debug() {
337337
}
338338

339339
update_wgd() {
340-
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'])")
340+
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'])")
341341
printf "%s\n" "$dashes"
342342
printf "[WGDashboard] Are you sure you want to update to the %s? (Y/N): " "$new_ver"
343343
read up

0 commit comments

Comments
 (0)