From 39b80a2e7ed7d2d1d567cb52d62dc509d1a5b231 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Mon, 19 Aug 2024 19:17:07 -0400 Subject: [PATCH] Fixed the issue where updating is not working --- src/static/app/package.json | 2 +- src/wgd.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/static/app/package.json b/src/static/app/package.json index 9814dd4..d3a934d 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 0a6d2f3..740934d 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