Bump version 0.2.15

This commit is contained in:
ssrlive 2024-03-30 12:30:01 +08:00
parent 4adc38c726
commit ce0c02b3bf
9 changed files with 58 additions and 8 deletions

View file

@ -5,16 +5,27 @@ rustup target add aarch64-apple-ios aarch64-apple-ios-sim x86_64-apple-ios x86_6
cargo install cbindgen
echo "Building..."
echo "cargo build --release --target x86_64-apple-darwin"
cargo build --release --target x86_64-apple-darwin
echo "cargo build --release --target aarch64-apple-darwin"
cargo build --release --target aarch64-apple-darwin
echo "cargo build --release --target aarch64-apple-ios"
cargo build --release --target aarch64-apple-ios
echo "cargo build --release --target x86_64-apple-ios"
cargo build --release --target x86_64-apple-ios
echo "cargo build --release --target x86_64-apple-ios-sim"
cargo build --release --target aarch64-apple-ios-sim
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/module.modulemap <<EOF
cat > target/include/tun2proxy.modulemap <<EOF
framework module tun2proxy {
umbrella header "tun2proxy.h"