File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2+ set -e
3+ rm -rf build
24mkdir build
35echo ' ' $( git log -1 --pretty=format:" %H" ) ' ' $( date) >> build/git_commit_version.txt
46VERSIONS_FILE=../../lib/git_versions.dart
@@ -8,15 +10,19 @@ if [ ! -f "$VERSIONS_FILE" ]; then
810fi
911COMMIT=$( git log -1 --pretty=format:" %H" )
1012OS=" IOS"
11- sed -i ' ' " /\/\*${OS} _VERSION/c\\ /\*${OS} _VERSION\*\/ const ${OS} _VERSION = \" $COMMIT \" ; " $VERSIONS_FILE
13+ sed -i ' ' ' /\/\*${OS}_VERSION/c\' $' \n ' ' /\*${OS}_VERSION\*\/ const ${OS}_VERSION = " ' " $COMMIT " ' "; ' " $VERSIONS_FILE "
1214cp -r ../../rust build/rust
1315cd build/rust
1416
1517rustup target add aarch64-apple-ios x86_64-apple-ios
1618
1719# building
1820cp target/epic_cash_wallet.h libepic_cash_wallet.h
19- cargo lipo --release
21+
22+ export IPHONEOS_DEPLOYMENT_TARGET=15.0
23+ export RUSTFLAGS=" -C link-arg=-mios-version-min=15.0"
24+ cargo build --release --target aarch64-apple-ios
25+ # cargo lipo --release
2026
2127# moving files to the ios project
2228inc=../../../../ios/include
You can’t perform that action at this time.
0 commit comments