@@ -110,8 +110,8 @@ jobs:
110110 path : composeApp/build/compose/binaries/**/*.deb
111111 if-no-files-found : error
112112
113- build-windows :
114- name : Build Windows
113+ build-windows-x64 :
114+ name : Build Windows (x64)
115115 runs-on : windows-latest
116116
117117 steps :
@@ -135,16 +135,51 @@ jobs:
135135 choco install innosetup
136136
137137 - name : Build Installer with Inno Setup
138- # 显式传入 aarch64 架构参数,这将影响生成的安装包文件名
139- run : iscc /DMyAppArch=aarch64 installer/setup.iss
140-
138+ # 显式传入 amd64 架构参数
139+ run : iscc /DMyAppArch=amd64 installer/setup.iss
140+
141141 - name : Upload Windows Artifact
142142 uses : actions/upload-artifact@v4
143143 with :
144- name : Windows-App-Exe
145- path : installer/*.exe
144+ name : Windows-App-Exe-amd64
145+ path : installer/*_amd64_* .exe
146146 if-no-files-found : error
147147
148+ # build-windows-arm64:
149+ # name: Build Windows (ARM64)
150+ # runs-on: windows-latest # 注意:目前 GitHub Hosted Runner 主要是 x64,这里生成的包可能仍然包含 x64 JVM,除非手动配置交叉编译
151+ #
152+ # steps:
153+ # - name: Checkout code
154+ # uses: actions/checkout@v4
155+ #
156+ # - name: Set up JDK 17
157+ # uses: actions/setup-java@v4
158+ # with:
159+ # java-version: '17'
160+ # distribution: 'temurin'
161+ #
162+ # - name: Setup Gradle
163+ # uses: gradle/actions/setup-gradle@v3
164+ #
165+ # - name: Create Release Distributable
166+ # run: ./gradlew :composeApp:createReleaseDistributable
167+ #
168+ # - name: Setup Inno Setup
169+ # run: |
170+ # choco install innosetup
171+ #
172+ # - name: Build Installer with Inno Setup
173+ # # 显式传入 aarch64 架构参数,这将影响生成的安装包文件名
174+ # run: iscc /DMyAppArch=aarch64 installer/setup.iss
175+ #
176+ # - name: Upload Windows Artifact
177+ # uses: actions/upload-artifact@v4
178+ # with:
179+ # name: Windows-App-Exe-arm64
180+ # path: installer/*_aarch64_*.exe
181+ # if-no-files-found: error
182+
148183 release :
149184 name : Create Release
150185 needs : [build-macos-arm64, build-macos-x64, build-linux, build-windows]
@@ -161,11 +196,23 @@ jobs:
161196 - name : Display structure of downloaded files
162197 run : ls -R artifacts
163198
199+ - name : Generate Release Body
200+ id : release_body
201+ shell : bash
202+ run : |
203+ if [[ "${{ github.ref }}" =~ [Aa]lpha ]]; then
204+ echo "WARNING_TEXT=⚠️ **此版本为开发中的版本,请酌情下载安装**" >> $GITHUB_ENV
205+ else
206+ echo "WARNING_TEXT=" >> $GITHUB_ENV
207+ fi
208+
164209 - name : Create Release
165210 uses : softprops/action-gh-release@v2
166211 with :
167212 files : artifacts/**/*
168213 # 如果 tag 包含 '-' (如 v1.0.0-alpha),则标记为预发布 (Pre-release)
169214 prerelease : ${{ contains(github.ref, '-') }}
215+ body : ${{ env.WARNING_TEXT }}
216+ generate_release_notes : true
170217 env :
171218 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments