mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
build windows setup (#1454)
* modified: .github/workflows/win.yml new file: windows/Inno_Setup.iss * modified: windows/Inno_Setup.iss * modified: .github/workflows/win.yml new file: distribute_options.yaml deleted: windows/Inno_Setup.iss new file: windows/packaging/exe/make_config.yaml * modified: windows/packaging/exe/make_config.yaml * modified: .github/workflows/win.yml * modified: .github/workflows/win.yml * modified: .github/workflows/win.yml * modified: .github/workflows/win.yml * modified: .github/workflows/win.yml * modified: .github/workflows/win.yml new file: windows/packaging/exe/ChineseSimplified.isl * modified: .github/workflows/win.yml * modified: .github/workflows/win.yml * modified: .github/workflows/win.yml * fix --------- Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
31
.github/workflows/win.yml
vendored
31
.github/workflows/win.yml
vendored
@@ -8,12 +8,12 @@ on:
|
||||
- reopened
|
||||
- ready_for_review
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- "**.md"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
branch:
|
||||
required: false
|
||||
default: 'main'
|
||||
default: "main"
|
||||
|
||||
jobs:
|
||||
build-windows-app:
|
||||
@@ -21,7 +21,7 @@ jobs:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
ref: ${{ github.event.inputs.branch }}
|
||||
fetch-depth: 0
|
||||
@@ -32,18 +32,37 @@ jobs:
|
||||
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: powershell
|
||||
|
||||
- name: Build Windows
|
||||
run: |
|
||||
dart lib/scripts/build.dart
|
||||
flutter build windows --release
|
||||
fastforge package --platform windows --targets exe
|
||||
|
||||
- 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/
|
||||
|
||||
- name: Upload windows release
|
||||
- name: Upload windows file release
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: windows-release
|
||||
path: Release
|
||||
name: windows-file-release
|
||||
path: Release
|
||||
|
||||
- name: Upload windows setup release
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: windows-setup-release
|
||||
path: PiliPlus-Win-Setup
|
||||
|
||||
Reference in New Issue
Block a user