Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
niuhuan committed Dec 24, 2024
1 parent e71b0ff commit 7fa82be
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ jobs:
cargo build --manifest-path native/jmbackend/platforms/ios/Cargo.toml --features= --lib --release --target=aarch64-apple-ios
cp native/jmbackend/platforms/ios/target/aarch64-apple-ios/release/librust.a ios/
cbindgen native/jmbackend/src/lib.rs -l c > ios/rust.h
# pdfium-ios-simulator-arm64.tgz https://github.com/bblanchon/pdfium-binaries/releases/download/chromium%2F6913/pdfium-ios-simulator-arm64.tgz
# pdfium-ios-simulator-x64.tgz
wget https://github.com/bblanchon/pdfium-binaries/releases/download/chromium%2F6913/pdfium-ios-device-arm64.tgz
tar zxvf pdfium-ios-device-arm64.tgz --strip-components=1 -C ios/Runner lib/libpdfium.dylib
flutter build ios --no-simulator --no-codesign --release
Expand All @@ -218,12 +217,17 @@ jobs:
zip -r -9 nosign.ipa Payload
cd ..
# if ios-sim
# cargo build --manifest-path native/jmbackend/platforms/ios-sim/Cargo.toml --features= --lib --release --target=aarch64-apple-ios-sim
# cargo build --manifest-path native/jmbackend/platforms/ios-sim/Cargo.toml --features= --lib --release --target=x86_64-apple-ios
# lipo -create -output ios/librust.a native/jmbackend/platforms/ios-sim/target/x86_64-apple-ios/release/librust.a native/jmbackend/platforms/ios-sim/target/aarch64-apple-ios-sim/release/librust.a
# cbindgen native/jmbackend/src/lib.rs -l c > ios/rust.h

# pdfium-ios-simulator-arm64.tgz https://github.com/bblanchon/pdfium-binaries/releases/download/chromium%2F6913/pdfium-ios-simulator-arm64.tgz
# pdfium-ios-simulator-x64.tgz


- name: Install rust target and build (Android-arm64)
if: steps.check_asset.outputs.skip_build != 'true' && ( matrix.config.target == 'android-arm64')
run: |
Expand Down

0 comments on commit 7fa82be

Please sign in to comment.