mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
* 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>
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
name: Build for Mac
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
- ready_for_review
|
|
paths-ignore:
|
|
- "**.md"
|
|
workflow_dispatch:
|
|
inputs:
|
|
branch:
|
|
required: false
|
|
default: "main"
|
|
|
|
jobs:
|
|
build-mac-app:
|
|
name: Release Mac
|
|
runs-on: macos-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: Build Mac
|
|
run: |
|
|
dart lib/scripts/build.dart
|
|
VERSION=$(cat pubspec.yaml | grep 'version:' | sed 's/version: //g' | tr -d '[:space:]')
|
|
echo "version=$VERSION" >> $GITHUB_ENV
|
|
flutter build macos --release
|
|
|
|
- name: Prepare Upload
|
|
run: |
|
|
npm install --global create-dmg
|
|
create-dmg build/macos/Build/Products/Release/PiliPlus.app
|
|
continue-on-error: true
|
|
|
|
- name: Rename DMG
|
|
run: mv PiliPlus*.dmg PiliPlus_macos_${{ env.version }}.dmg
|
|
|
|
- name: Upload macos release
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: macos-release
|
|
path: PiliPlus*.dmg
|