mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +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:
3
.github/workflows/android.yml
vendored
3
.github/workflows/android.yml
vendored
@@ -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
|
||||
|
||||
|
||||
2
.github/workflows/ios.yml
vendored
2
.github/workflows/ios.yml
vendored
@@ -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
|
||||
|
||||
1
.github/workflows/linux.yml
vendored
1
.github/workflows/linux.yml
vendored
@@ -121,4 +121,3 @@ jobs:
|
||||
with:
|
||||
name: Linux_deb_package
|
||||
path: PiliPlus_linux_*.deb
|
||||
|
||||
|
||||
6
.github/workflows/mac.yml
vendored
6
.github/workflows/mac.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-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
|
||||
|
||||
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