mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-20 16:10:52 +00:00
Bump version 0.2.15
This commit is contained in:
parent
4adc38c726
commit
ce0c02b3bf
9 changed files with 58 additions and 8 deletions
27
build-aarch64-apple-ios.sh
Executable file
27
build-aarch64-apple-ios.sh
Executable file
|
@ -0,0 +1,27 @@
|
|||
#! /bin/sh
|
||||
|
||||
echo "Setting up the rust environment..."
|
||||
rustup target add aarch64-apple-ios
|
||||
cargo install cbindgen
|
||||
|
||||
echo "Building target aarch64-apple-ios..."
|
||||
cargo build --release --target aarch64-apple-ios
|
||||
|
||||
echo "Generating includes..."
|
||||
mkdir -p target/include/
|
||||
rm -rf target/include/*
|
||||
cbindgen --config cbindgen.toml -l C -o target/include/tun2proxy.h
|
||||
cat > target/include/tun2proxy.modulemap <<EOF
|
||||
framework module tun2proxy {
|
||||
umbrella header "tun2proxy.h"
|
||||
|
||||
export *
|
||||
module * { export * }
|
||||
}
|
||||
EOF
|
||||
|
||||
echo "Creating XCFramework"
|
||||
rm -rf ./tun2proxy.xcframework
|
||||
xcodebuild -create-xcframework \
|
||||
-library ./target/aarch64-apple-ios/release/libtun2proxy.a -headers ./target/include/ \
|
||||
-output ./tun2proxy.xcframework
|
Loading…
Add table
Add a link
Reference in a new issue