fix(electron): hotfix update logic

- Added ky as a dependency to handle HTTP requests for file downloads.
- Implemented downloadFileWithProgress function to provide progress updates during downloads.
- Updated hot-updater to utilize the new download function, enhancing user experience with download status logging.
- Cleaned up and refactored related code for better maintainability.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-07-30 01:36:23 +08:00
parent 680d7efc26
commit d1e448d602
7 changed files with 193 additions and 51 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ function compressAndFingerprintPlugin(outDir: string): Plugin {
// Get the current git tag version
let version = "unknown"
try {
version = execSync("git describe --tags").toString().trim()
version = execSync("git describe --tags").toString().trim().replace("desktop/", "")
} catch (error) {
console.warn("Could not retrieve git tag version:", error)
}