mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 12:57:24 +00:00
build scripts
This commit is contained in:
6
.github/generate_ipa.sh
vendored
Normal file
6
.github/generate_ipa.sh
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir -p build/ios/iphoneos/Payload
|
||||
mv build/ios/iphoneos/Runner.app build/ios/iphoneos/Payload
|
||||
cd build/ios/iphoneos/
|
||||
zip -r app-ios.ipa Payload
|
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
|
||||
|
@@ -23,6 +23,7 @@ file.write(content)
|
||||
if os.path.exists("build/app-windows.zip"):
|
||||
os.remove("build/app-windows.zip")
|
||||
|
||||
# 压缩build/windows/x64/runner/Release, 生成app-windows.zip, 使用tar命令
|
||||
subprocess.run(["tar", "-a", "-c", "-f", "build/app-windows.zip", "-C", "build/windows/x64/runner/Release", "."]
|
||||
subprocess.run(["tar", "-a", "-c", "-f", "build/windows/x64/app-windows.zip", "-C", "build/windows/x64/runner/Release", "."]
|
||||
, shell=True)
|
||||
|
||||
subprocess.run(["iscc", "build/windows/build.iss"], shell=True)
|
Reference in New Issue
Block a user