Skip to content

Commit 442d348

Browse files
committed
版本号提前编译
1 parent 1c3aa75 commit 442d348

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/script/build_enet_ios.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ rm -rf ../../app_interface/readme.md
6262

6363
mv ../../app_interface/ ../../src/app_interface/
6464

65+
sed -i "" "s/.*VIDEOSDKVERSION.*/static const char * VIDEOSDKVERSION = \"$VIDEOSDKVERSION\";/g" ../../src/app_interface/appWrapper.h
66+
6567
cmake ../.. -GXcode -DCMAKE_INSTALL_PREFIX=$PWD/INSTALL -DENET_SELF_SIGN=ON -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_BUILD_TYPE=Debug -DENET_VERSION=v1.0.0 -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3
6668

6769

@@ -91,7 +93,7 @@ git clone https://$GIT_ACCESS_TOKEN@github.com/tencentyun/iot-thirdparty-ios.git
9193
cd iot-thirdparty-ios
9294

9395
cp ../../../src/app_interface/appWrapper.h Source/XP2P-iOS/Classes/AppWrapper.h
94-
sed -i "" "s/.*VIDEOSDKVERSION.*/static const char * VIDEOSDKVERSION = \"$VIDEOSDKVERSION\";/g" Source/XP2P-iOS/Classes/AppWrapper.h
96+
#sed -i "" "s/.*VIDEOSDKVERSION.*/static const char * VIDEOSDKVERSION = \"$VIDEOSDKVERSION\";/g" Source/XP2P-iOS/Classes/AppWrapper.h
9597

9698
cp ../Release-iphoneos/libenet.a Source/XP2P-iOS/libenet.a
9799

0 commit comments

Comments
 (0)