mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
build linux arm64 (#1610)
* modified: .github/workflows/linux.yml * modified: .github/workflows/linux.yml * modified: .github/workflows/linux.yml * modified: .github/workflows/linux.yml * modified: .github/workflows/linux.yml * modified: .github/workflows/linux.yml * modified: .github/workflows/linux.yml * modified: .github/workflows/linux.yml * modified: .github/workflows/linux.yml * modified: .github/workflows/linux.yml * new file: .github/workflows/linux_arm64.yml * modified: .github/workflows/linux.yml deleted: .github/workflows/linux_arm64.yml modified: .github/workflows/win.yml * new file: .github/workflows/linux_arm64.yml * modified: .github/workflows/linux_arm64.yml * modified: .github/workflows/linux_arm64.yml * modified: .github/workflows/linux_arm64.yml renamed: .github/workflows/linux.yml -> .github/workflows/linux_x64.yml * renamed: .github/workflows/win.yml -> .github/workflows/win_x64.yml * modified: .github/workflows/linux_x64.yml --------- Co-authored-by: Zhang Yujie <Axiaobo7788@163.com>
This commit is contained in:
70
.github/workflows/win_x64.yml
vendored
Normal file
70
.github/workflows/win_x64.yml
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
name: Build for Windows x64
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
- ready_for_review
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
branch:
|
||||
required: false
|
||||
default: "main"
|
||||
|
||||
jobs:
|
||||
build-windows-app:
|
||||
name: Release Windows
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
ref: ${{ github.event.inputs.branch }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: stable
|
||||
flutter-version-file: pubspec.yaml
|
||||
|
||||
- name: Add fastforge and Inno Setup
|
||||
run: |
|
||||
dart pub global activate fastforge
|
||||
choco install innosetup
|
||||
|
||||
- name: Add Chinese language file for Inno Setup
|
||||
run: |
|
||||
Copy-Item "windows/packaging/exe/ChineseSimplified.isl" "C:\Program Files (x86)\Inno Setup 6\Languages\ChineseSimplified.isl"
|
||||
shell: pwsh
|
||||
|
||||
- name: Set and Extract version
|
||||
shell: pwsh
|
||||
run: lib/scripts/build.ps1
|
||||
|
||||
- name: Build Windows
|
||||
run: |
|
||||
fastforge package --platform windows --targets exe --flutter-build-args="dart-define-from-file=pili_release.json"
|
||||
|
||||
- name: Prepare Upload
|
||||
run: |
|
||||
mkdir -p Release/PiliPlus-Win
|
||||
mkdir -p PiliPlus-Win-Setup
|
||||
mv build/windows/x64/runner/Release/* Release/PiliPlus-Win/
|
||||
mv dist/**/*.exe PiliPlus-Win-Setup/PiliPlus-${{env.version}}-Windows-x64-Setup.exe
|
||||
|
||||
- name: Upload windows file release
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: windows-x64-release
|
||||
path: Release
|
||||
|
||||
- name: Upload windows setup release
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: windows-setup-x64-release
|
||||
path: PiliPlus-Win-Setup
|
||||
Reference in New Issue
Block a user