diff --git a/.gitignore b/.gitignore index ab0ae2197..22d1350d4 100644 --- a/.gitignore +++ b/.gitignore @@ -69,4 +69,7 @@ OpenVPNConf.swift # Fastlane fastlane/test_output fastlane/report.xml -fastlane/Appfile \ No newline at end of file +fastlane/Appfile + +# Frameworks +Frameworks diff --git a/build.sh b/build.sh new file mode 100755 index 000000000..d69656151 --- /dev/null +++ b/build.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Exit immediately if a command exits with a non-zero status. +set -e + +echo "=> ⬇️ Clone V2Ray sources.." +git submodule update --init + +echo "=> ⬇️ Get gomobile.." +cd vendor/v2ray-core +PATH=$PATH:~/go/bin +go get golang.org/x/mobile/cmd/gomobile + +echo "=> 🍏 Build iOS library.." +gomobile bind --target=ios -o ../../Frameworks/V2Ray.xcframework +echo "=> ✅ iOS build completed"