Skip to content

Commit

Permalink
feat(v2ray): create build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajhilje committed Jul 31, 2023
1 parent de5e549 commit 06d798c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@ OpenVPNConf.swift
# Fastlane
fastlane/test_output
fastlane/report.xml
fastlane/Appfile
fastlane/Appfile

# Frameworks
Frameworks
16 changes: 16 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 06d798c

Please sign in to comment.