clean file
This commit is contained in:
parent
953c8fce2d
commit
e11ad03b76
2 changed files with 13 additions and 11 deletions
|
|
@ -1,13 +1,13 @@
|
||||||
message("Client ==> iOS build")
|
message("Client ==> iOS build")
|
||||||
|
|
||||||
# Đường dẫn tới thư mục chứa HevSocks5Tunnel.xcframework
|
# Đường dẫn tới thư mục chứa HevSocks5Tunnel.xcframework
|
||||||
set(HEV_SOCKS5_TUNNEL_PATH "/Users/anhviet/Documents/VPN/new/amnezia-client/client/3rd-prebuilt/3rd-prebuilt/xray/HevSocks5Tunnel.xcframework")
|
set(HEV_SOCKS5_TUNNEL_PATH "${CMAKE_CURRENT_SOURCE_DIR}/3rd-prebuilt/3rd-prebuilt/xray")
|
||||||
|
|
||||||
# Đường dẫn tới thư viện .a
|
# Đường dẫn tới thư viện .a
|
||||||
set(HEV_SOCKS5_TUNNEL_LIB "${HEV_SOCKS5_TUNNEL_PATH}/ios-arm64/libhev-socks5-tunnel.a")
|
set(HEV_SOCKS5_TUNNEL_LIB "${HEV_SOCKS5_TUNNEL_PATH}/ios/libhev-socks5-tunnel.a")
|
||||||
|
|
||||||
# Đường dẫn tới tệp header
|
# Đường dẫn tới tệp header
|
||||||
set(HEV_SOCKS5_TUNNEL_INCLUDE_DIR "${HEV_SOCKS5_TUNNEL_PATH}/ios-arm64/Headers")
|
set(HEV_SOCKS5_TUNNEL_INCLUDE_DIR "${HEV_SOCKS5_TUNNEL_PATH}/ios/Headers")
|
||||||
|
|
||||||
# Thêm tệp header vào include directories
|
# Thêm tệp header vào include directories
|
||||||
target_include_directories(${PROJECT} PRIVATE ${HEV_SOCKS5_TUNNEL_INCLUDE_DIR})
|
target_include_directories(${PROJECT} PRIVATE ${HEV_SOCKS5_TUNNEL_INCLUDE_DIR})
|
||||||
|
|
|
||||||
|
|
@ -9,13 +9,15 @@ PATCH="/usr/bin/patch"
|
||||||
BUILT_PRODUCTS_DIR = $WORKINGDIR/3rd/OpenVPNAdapter/build/Release-iphoneos
|
BUILT_PRODUCTS_DIR = $WORKINGDIR/3rd/OpenVPNAdapter/build/Release-iphoneos
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# Lấy phiên bản SDK macOS hiện tại
|
||||||
|
MACOSX_SDK=$(xcodebuild -showsdks | grep macosx | sed -E 's/.*macosx([0-9]+\.[0-9]+).*/macosx\1/')
|
||||||
|
|
||||||
cd 3rd/OpenVPNAdapter
|
cd 3rd/OpenVPNAdapter
|
||||||
if $XCODEBUILD -scheme OpenVPNAdapter -configuration Release -xcconfig Configuration/amnezia.xcconfig -sdk macosx14.5 -destination 'generic/platform=MacOS' -project OpenVPNAdapter.xcodeproj ; then
|
if $XCODEBUILD -scheme OpenVPNAdapter -configuration Release -xcconfig Configuration/amnezia.xcconfig -sdk $MACOSX_SDK -destination 'generic/platform=MacOS' -project OpenVPNAdapter.xcodeproj ; then
|
||||||
echo "OpenVPNAdapter built successfully"
|
echo "OpenVPNAdapter built successfully"
|
||||||
else
|
else
|
||||||
echo "OpenVPNAdapter build failed"
|
echo "OpenVPNAdapter build failed ..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf ./build/Release-iphoneos/OpenVPNAdapter.framework/Versions/A/_CodeSignature
|
rm -rf ./build/Release-iphoneos/OpenVPNAdapter.framework/Versions/A/_CodeSignature
|
||||||
cd ../../
|
cd ../../
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue