Skip to content

The only downloader you need. 下载器的集大成者。

ci(windows): 恢复 arm64 构建

XiaoYouChR25af04debcba
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ef15bd8d..557947c2 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -158,7 +158,12 @@ jobs:
runner: windows-2022
msvc_arch: x64
hdiff_arch: windows64
- installer_arch: x64compatible
+ installer_arch: x64compatible and not arm64
+ - architecture: arm64
+ runner: windows-11-arm
+ msvc_arch: ARM64
+ hdiff_arch: windows_arm64
+ installer_arch: arm64
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout
@@ -201,6 +206,14 @@ jobs:
if ($LASTEXITCODE) { exit $LASTEXITCODE }
uv pip install $wheel.FullName
+ # runner 没有 ARM64 的 VC++ 运行库,Nuitka 要打包它
+ - name: Install VC++ runtime
+ if: ${{ matrix.architecture == 'arm64' }}
+ shell: pwsh
+ run: |
+ Invoke-WebRequest -Uri "https://aka.ms/vc14/vc_redist.arm64.exe" -OutFile vc_redist.arm64.exe
+ Start-Process vc_redist.arm64.exe -ArgumentList "/install", "/quiet", "/norestart" -Wait
+
- name: Build with Nuitka
run: |
echo "VERSION=${{ needs.prepare.outputs.version }}" >> $env:GITHUB_ENV
diff --git a/README.md b/README.md
index 25bae601..156ddcde 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,7 @@ Started as a passion project to help a Bilibili creator manage resources. Now it
| Platform | Required Version | Architectures |
|:--|:--|:--|
-| <img src="https://api.iconify.design/mdi/microsoft-windows.svg?color=%238B949E" width="16" height="16"> **Windows** | `10+` | `x86_64` |
+| <img src="https://api.iconify.design/mdi/microsoft-windows.svg?color=%238B949E" width="16" height="16"> **Windows** | `10+` | `x86_64` / `arm64` |
| <img src="https://api.iconify.design/mdi/apple.svg?color=%238B949E" width="16" height="16"> **macOS** | `13.0+` | `x86_64` / `arm64` |
| <img src="https://api.iconify.design/mdi/linux.svg?color=%238B949E" width="16" height="16"> **Linux** | `glibc 2.35+` | `x86_64` / `arm64` |
| <img src="https://api.iconify.design/mdi/android.svg?color=%238B949E" width="16" height="16"> **Android** | `9.0+` | `arm64-v8a` |
diff --git a/README_zh.md b/README_zh.md
index 5dc41c5b..cd56925a 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -43,7 +43,7 @@
| 平台 | 版本要求 | 架构支持 |
|:--|:--|:--|
-| <img src="https://api.iconify.design/mdi/microsoft-windows.svg?color=%238B949E" width="16" height="16"> **Windows** | `10+` | `x86_64` |
+| <img src="https://api.iconify.design/mdi/microsoft-windows.svg?color=%238B949E" width="16" height="16"> **Windows** | `10+` | `x86_64` / `arm64` |
| <img src="https://api.iconify.design/mdi/apple.svg?color=%238B949E" width="16" height="16"> **macOS** | `13.0+` | `x86_64` / `arm64` |
| <img src="https://api.iconify.design/mdi/linux.svg?color=%238B949E" width="16" height="16"> **Linux** | `glibc 2.35+` | `x86_64` / `arm64` |
| <img src="https://api.iconify.design/mdi/android.svg?color=%238B949E" width="16" height="16"> **Android** | `9.0+` | `arm64-v8a` |