mirror of
https://github.com/RubyMetric/chsrc
synced 2026-10-25 17:36:32 +08:00
规范 Windows Arm64 命名,产物更名为 chsrc-arm64-windows.exe
This commit is contained in:
1 parent
48e255ee98
commit
33c6e7ccd6
4 files changed
+19
-16
No files matched your search
+9
-9
@@ -1,15 +1,15 @@
|
||||
# ---------------------------------------------------------------
|
||||
# Workflow File : build-on-Windows-ARM64.yml
|
||||
# Workflow File : build-on-Windows-Arm64.yml
|
||||
# File Authors : NewbieXvwu <newbiexvwu@gmail.com>
|
||||
# Contributors : Nul None <nul@none.org>
|
||||
# |
|
||||
# Created On : <2026-07-21>
|
||||
# Last Modified : <2026-07-21>
|
||||
# Last Modified : <2026-07-22>
|
||||
#
|
||||
# Build chsrc on Windows (ARM64/WoA) and upload it to GitHub: the 'pre' release
|
||||
# Build chsrc on Windows (Arm64/WoA) and upload it to GitHub: the 'pre' release
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
name: 构建于 Windows ARM64
|
||||
name: 构建于 Windows Arm64
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -17,7 +17,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build-and-upload:
|
||||
# windows-11-arm 为原生 WoA (Windows on ARM) runner,已 GA
|
||||
# windows-11-arm 为原生 WoA (Windows on Arm) runner,已 GA
|
||||
runs-on: windows-11-arm
|
||||
defaults:
|
||||
run:
|
||||
@@ -31,17 +31,17 @@ jobs:
|
||||
- name: 安装 Clang (CLANGARM64)
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
# CLANGARM64 提供原生 AArch64 的 clang 工具链
|
||||
# CLANGARM64 提供原生 Arm64 的 clang 工具链
|
||||
msystem: CLANGARM64
|
||||
update: true
|
||||
install: |
|
||||
mingw-w64-clang-aarch64-clang
|
||||
mingw-w64-clang-aarch64-make
|
||||
|
||||
- name: 为 arm64 (AArch64) 构建
|
||||
- name: 为 Arm64 构建
|
||||
run: |
|
||||
mingw32-make.exe build-in-ci-release-mode
|
||||
mv chsrc-ci-release.exe chsrc-aarch64-windows.exe
|
||||
mv chsrc-ci-release.exe chsrc-arm64-windows.exe
|
||||
|
||||
- name: List files
|
||||
run: ls *.exe
|
||||
@@ -52,4 +52,4 @@ jobs:
|
||||
with:
|
||||
tag_name: pre
|
||||
files: |
|
||||
chsrc-aarch64-windows.exe
|
||||
chsrc-arm64-windows.exe
|
||||
@@ -6,9 +6,10 @@
|
||||
! Doc Authors : @ccmywish
|
||||
! Contributors : @Mikachu2333
|
||||
! | @BingChunMoLi
|
||||
! | @NewbieXvwu
|
||||
! |
|
||||
! Created On : <2023-12-28>
|
||||
! Last Modified : <2026-02-24>
|
||||
! Last Modified : <2026-07-22>
|
||||
! ---------------------------------------------------------- -->
|
||||
|
||||
<div align="center">
|
||||
@@ -193,8 +194,8 @@ curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-x64-windo
|
||||
# x86
|
||||
curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-x86-windows.exe -o chsrc.exe
|
||||
|
||||
# arm64/aarch64 (WoA, Windows on ARM)
|
||||
curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-aarch64-windows.exe -o chsrc.exe
|
||||
# Arm64 (WoA, Windows on Arm)
|
||||
curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-arm64-windows.exe -o chsrc.exe
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
# ---------------------------------------------------------------
|
||||
# File Name : download-pre-on-GitHub.ps1
|
||||
# File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
# Contributors : NewbieXvwu <newbiexvwu@gmail.com>
|
||||
# Created On : <2023-09-21>
|
||||
# Last Modified : <2025-08-07>
|
||||
# Last Modified : <2026-07-22>
|
||||
#
|
||||
# Download all files from the `pre` release on GitHub:
|
||||
# https://github.com/RubyMetric/chsrc/releases/tag/pre
|
||||
@@ -20,6 +21,7 @@ $destination = (Resolve-Path $destination).Path
|
||||
$names = @(
|
||||
'chsrc-x64-windows.exe'
|
||||
'chsrc-x86-windows.exe'
|
||||
'chsrc-arm64-windows.exe'
|
||||
|
||||
'chsrc-aarch64-macos'
|
||||
'chsrc-x64-macos'
|
||||
|
||||
+3
-3
@@ -9,7 +9,7 @@
|
||||
# | NewbieXvwu <newbiexvwu@gmail.com>
|
||||
# |
|
||||
# Created On : <2024-10-26>
|
||||
# Last Modified : <2026-07-21>
|
||||
# Last Modified : <2026-07-22>
|
||||
#
|
||||
# chsrc installer for Windows
|
||||
# ---------------------------------------------------------------
|
||||
@@ -156,9 +156,9 @@ function Set_URL {
|
||||
$script:arch = "x86"
|
||||
}
|
||||
}
|
||||
12 { $script:arch = "aarch64" }
|
||||
12 { $script:arch = "arm64" }
|
||||
default {
|
||||
Output_Error "Unsupported architecture '$cpuArchitecture'. Only x86, x64 or ARM64 architectures are supported."
|
||||
Output_Error "Unsupported architecture '$cpuArchitecture'. Only x86, x64 or Arm64 architectures are supported."
|
||||
}
|
||||
}
|
||||
Output_Info "Get my CPU architecture: $script:arch"
|
||||
|
||||
Reference in new issue
Block a user