Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Output project
  • Loading branch information
qinhui committed Apr 2, 2025
commit 2c4ccb97fa4ef7d9a03cc7dbc3fa7f31ea4dbb10
8 changes: 8 additions & 0 deletions .github/ci/build/build_ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,13 @@ if [ $compile_project = true ]; then
cd ./$unzip_name/samples/${ios_direction}
./cloud_build.sh || exit 1
cd -
else if [ $generate_project = true ]; then
cd ./$unzip_name/samples/${ios_direction}
./cloud_project.sh || exit 1
cd -
fi

7za a -tzip APIExamples.zip ${ios_direction}
echo "start move project to workspace"
mv APIExamples.zip $WORKSPACE/${ios_direction}_${BUILD_NUMBER}.zip

46 changes: 46 additions & 0 deletions iOS/APIExample/cloud_project.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/usr/bin/env sh

PROJECT_PATH=$PWD

if [ "$WORKSPACE" = "" ]; then
WORKSPACE=$PWD
fi
if [ "$BUILD_NUMBER" = "" ]; then
BUILD_NUMBER=888
fi


cd ${PROJECT_PATH}

#下载美颜资源
echo "start download bytedance resource : $bytedance_lib"
curl -L -O "$bytedance_lib"
unzip -o vender_bytedance_iOS.zip
rm -f vender_bytedance_iOS.zip

echo "start download sense resource : $sense_lib"
curl -L -O "$sense_lib"
unzip -o vender_sense_iOS.zip
rm -f vender_sense_iOS.zip

echo "start download fu resource : $fu_lib"
curl -L -O "$fu_lib"
unzip -o vender_fu_iOS.zip
rm -f vender_fu_iOS.zip

#打开第三方播放器配置
sed -i -e "s#\# pod 'ijkplayer'# pod 'ijkplayer'#g" Podfile

#打开第三方美颜
sed -i -e "s#\# pod 'SenseLib'# pod 'SenseLib'#g" Podfile
sed -i -e "s#\# pod 'bytedEffect'# pod 'bytedEffect'#g" Podfile
sed -i -e "s#\# pod 'fuLib'# pod 'fuLib'#g" Podfile

echo "work space: $WORKSPACE"
echo "project path: $PROJECT_PATH"


pod install --repo-update || exit 1



Loading