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:
Axiaobo
2025-10-04 14:19:29 +08:00
committed by GitHub
parent 74f0fb471c
commit 42f5a42dd9
8 changed files with 465 additions and 13 deletions

View File

@@ -26,7 +26,7 @@ jobs:
with:
distribution: "zulu"
java-version: "17"
cache: 'gradle'
cache: "gradle"
cache-dependency-path: |
android/*.gradle*
android/**/gradle-wrapper.properties
@@ -40,7 +40,6 @@ jobs:
cache: true
- name: apply bottom sheet patch
if: steps.flutter-action.outputs.CACHE-HIT != 'true'
working-directory: ${{ env.FLUTTER_ROOT }}
run: git apply $GITHUB_WORKSPACE/lib/scripts/bottom_sheet_patch.diff

View File

@@ -21,7 +21,7 @@ jobs:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
ref: ${{ github.event.inputs.branch }}
fetch-depth: 0

View File

@@ -121,4 +121,3 @@ jobs:
with:
name: Linux_deb_package
path: PiliPlus_linux_*.deb

View File

@@ -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-mac-app:
@@ -21,7 +21,7 @@ jobs:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
ref: ${{ github.event.inputs.branch }}
fetch-depth: 0

View File

@@ -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