mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 04:57:23 +00:00
build scripts
This commit is contained in:
20
.github/workflows/ios_simulator.yml
vendored
Normal file
20
.github/workflows/ios_simulator.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
name: Build IOS SIMULATOR
|
||||
run-name: Build IOS SIMULATOR
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
jobs:
|
||||
Build_IOS_SIMULATOR:
|
||||
runs-on: macos-13
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: 'stable'
|
||||
architecture: x64
|
||||
- run: sudo xcode-select --switch /Applications/Xcode_14.3.1.app
|
||||
- run: flutter pub get
|
||||
- run: flutter build ios --simulator --no-codesign
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: build_files
|
||||
path: build/ios/iphonesimulator
|
40
.github/workflows/main.yml
vendored
Normal file
40
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Build IOS
|
||||
run-name: Build IOS
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
jobs:
|
||||
Build_IOS:
|
||||
runs-on: macos-13
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: 'stable'
|
||||
architecture: x64
|
||||
- run: sudo xcode-select --switch /Applications/Xcode_14.3.1.app
|
||||
- run: flutter pub get
|
||||
- run: flutter build ios --release --no-codesign
|
||||
- run: bash .github/generate_ipa.sh
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: app-ios.ipa
|
||||
path: build/ios/iphoneos/app-ios.ipa
|
||||
Build_MacOS:
|
||||
runs-on: macos-13
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: 'stable'
|
||||
architecture: x64
|
||||
- run: sudo xcode-select --switch /Applications/Xcode_14.3.1.app
|
||||
- run: flutter pub get
|
||||
- run: flutter build macos --release
|
||||
- run: |
|
||||
cd build/macos/Build/Products/Release
|
||||
zip -r macos-build.zip pica_comic.app
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: macos-build.zip
|
||||
path: build/macos/Build/Products/Release/macos-build.zip
|
||||
|
Reference in New Issue
Block a user