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
+4 -9
View File
@@ -5,9 +5,6 @@ on:
branches:
- main
env:
NODE_OPTIONS: --max-old-space-size=8192
jobs:
create_tag:
name: Create Release Tag
@@ -20,21 +17,19 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"
node-version: lts/*
- name: Make script executable
run: chmod +x .github/scripts/extract-release-info.js
run: |
chmod +x .github/scripts/extract-release-info.mjs
- name: Extract release information
id: extract_info
run: ./.github/scripts/extract-release-info.mjs
run: .github/scripts/extract-release-info.mjs
continue-on-error: false
- name: Validate git configuration