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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user