Skip to content

Commit

Permalink
Fixed the issue where updating is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldzou committed Aug 19, 2024
1 parent fb6e948 commit 39b80a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/static/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/wgd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 39b80a2

Please sign in to comment.