Skip to content

Commit 09bc8eb

Browse files
authored
Merge pull request #304 from AgoraIO/dev/4.0.1
Dev/4.0.1
2 parents d4be906 + 7ce11fd commit 09bc8eb

File tree

167 files changed

+6153
-1020
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+6153
-1020
lines changed

.github/ci/build/build_android.groovy

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ buildUtils = new agora.build.BuildUtils()
77

88
compileConfig = [
99
"sourceDir": "api-examples",
10+
"docker": "null",
1011
"non-publish": [
1112
"command": "./.github/ci/build/build_android.sh",
1213
"extraArgs": "",
@@ -25,12 +26,14 @@ def doBuild(buildVariables) {
2526
command = compileConfig.get(type).command
2627
preCommand = compileConfig.get(type).get("preCommand", "")
2728
postCommand = compileConfig.get(type).get("postCommand", "")
29+
docker = compileConfig.docker
2830
extraArgs = compileConfig.get(type).extraArgs
2931
extraArgs += " " + params.getOrDefault("extra_args", "")
3032
commandConfig = [
3133
"command": command,
3234
"sourceRoot": "${compileConfig.sourceDir}",
3335
"extraArgs": extraArgs,
36+
"docker": docker,
3437
]
3538
loadResources(["config.json", "artifactory_utils.py"])
3639
buildUtils.customBuild(commandConfig, preCommand, postCommand)
@@ -53,4 +56,4 @@ def doPublish(buildVariables) {
5356
sh "rm -rf *.zip || true"
5457
}
5558

56-
pipelineLoad(this, "ApiExample", "build", "android", "apiexample_linux")
59+
pipelineLoad(this, "ApiExample", "build", "android", "apiexample_linux")

.github/ci/build/build_android.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
# pr: output test.zip to workspace dir
3838
# others: Rename the zip package name yourself, But need copy it to workspace dir
3939
##################################
40+
4041
echo Package_Publish: $Package_Publish
4142
echo is_tag_fetch: $is_tag_fetch
4243
echo arch: $arch
@@ -77,7 +78,7 @@ mkdir ./$unzip_name/rtc/samples/API-example
7778
cp -rf ./Android/APIExample$(echo $sdk_url | cut -d "/" -f 9 | grep audio_only | cut -d "_" -f 1 | sed -e 's/a/-A/g')/** ./$unzip_name/rtc/samples/API-example
7879

7980
7za a -tzip result.zip -r $unzip_name
80-
cp result.zip $WORKSPACE/withAPIExample_$zip_name
81+
mv result.zip $WORKSPACE/withAPIExample_$(date "+%d%H%M")_$zip_name
8182

8283
# install android sdk
8384
which java
@@ -125,7 +126,7 @@ sed -i -e "s#jniLibs/#jniLibs2/#g" agora-simple-filter/src/main/cpp/CMakeLists.t
125126
./gradlew :app:assembleDebug
126127
cp app/build/outputs/apk/debug/app-debug.apk ./APIExample_Android_$(date "+%y%m%d%H").apk
127128
7za a -tzip result.zip -r *.apk
128-
cp result.zip $WORKSPACE/APIExample_Android$(echo $sdk_url | cut -d "/" -f 9 | grep audio_only | cut -d "_" -f 1 | sed -e 's/a/_A/g')_apk.zip
129+
mv result.zip $WORKSPACE/APIExample_Android$(echo $sdk_url | cut -d "/" -f 9 | grep audio_only | cut -d "_" -f 1 | sed -e 's/a/_A/g')_$(date "+%y%m%d%H%M")_apk.zip
129130
ls $WORKSPACE
130131
cd -
131132

.github/ci/build/build_ios.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ def doPublish(buildVariables) {
5050
sh "rm -rf *.zip || true"
5151
}
5252

53-
pipelineLoad(this, "ApiExample", "build", "ios", "apiexample_linux")
53+
pipelineLoad(this, "ApiExample", "build", "ios", "apiexample_mac")

.github/ci/build/build_ios.sh

+25-5
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ rm ./$unzip_name/commits
6565
rm ./$unzip_name/package_size_report.txt
6666
mkdir ./$unzip_name/samples
6767
mkdir ./$unzip_name/samples/API-Example
68+
if [ $? -eq 0 ]; then
69+
echo "success"
70+
else
71+
echo "failed"
72+
exit 1
73+
fi
74+
6875
cp -rf ./iOS/** ./$unzip_name/samples/API-Example
6976

7077
result=$(echo $sdk_url | grep "audio")
@@ -74,17 +81,30 @@ then
7481
rm -rf ./$unzip_name/samples/API-Example/APIExample
7582
mv ./$unzip_name/samples/API-Example/APIExample-Audio ./$unzip_name/samples/APIExample-Audio
7683
mv ./$unzip_name/samples/APIExample-Audio/sdk.podspec ./$unzip_name/
77-
sed -i "s|pod 'sdk', :path => 'sdk.podspec'|pod 'sdk', :path => '../../sdk.podspec'|" ./$unzip_name/samples/APIExample-Audio/Podfile
78-
sed -i "s|pod 'Agora|#pod 'Agora|" ./$unzip_name/samples/APIExample-Audio/Podfile
84+
python3 ./.github/ci/build/modify_podfile.py ./$unzip_name/samples/APIExample-Audio/Podfile
85+
if [ $? -eq 0 ]; then
86+
echo "success"
87+
else
88+
echo "failed"
89+
exit 1
90+
fi
91+
./.github/ci/build/build_ios_ipa.sh ./$unzip_name/samples/APIExample-Audio
92+
7993
else
8094
echo "不包含"
8195
rm -rf ./$unzip_name/samples/API-Example/APIExample-Audio
8296
mv ./$unzip_name/samples/API-Example/APIExample ./$unzip_name/samples/APIExample
8397
mv ./$unzip_name/samples/APIExample/sdk.podspec ./$unzip_name/
84-
sed -i "s|pod 'sdk', :path => 'sdk.podspec'|pod 'sdk', :path => '../../sdk.podspec'|" ./$unzip_name/samples/APIExample/Podfile
85-
sed -i "s|pod 'Agora|#pod 'Agora|" ./$unzip_name/samples/APIExample/Podfile
98+
python3 ./.github/ci/build/modify_podfile.py ./$unzip_name/samples/APIExample/Podfile
99+
if [ $? -eq 0 ]; then
100+
echo "success"
101+
else
102+
echo "failed"
103+
exit 1
104+
fi
105+
./.github/ci/build/build_ios_ipa.sh ./$unzip_name/samples/APIExample
86106
fi
87107

88108
rm -rf ./$unzip_name/samples/API-Example
89109
7za a -tzip result.zip -r $unzip_name
90-
cp result.zip $WORKSPACE/withAPIExample_$zip_name
110+
cp result.zip $WORKSPACE/withAPIExample_${BUILD_NUMBER}_$zip_name

.github/ci/build/build_ios_ipa.sh

+118
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
CURRENT_PATH=$PWD
2+
3+
# 获取项目目录
4+
PROJECT_PATH="$( cd "$1" && pwd )"
5+
6+
cd ${PROJECT_PATH} && pod install
7+
8+
if [ $? -eq 0 ]; then
9+
echo "success"
10+
else
11+
echo "failed"
12+
exit 1
13+
fi
14+
15+
# 项目target名
16+
TARGET_NAME=${PROJECT_PATH##*/}
17+
18+
KEYCENTER_PATH=${PROJECT_PATH}"/"${TARGET_NAME}"/Common/KeyCenter.swift"
19+
20+
# 打包环境
21+
CONFIGURATION=Development
22+
23+
#工程文件路径
24+
APP_PATH="${PROJECT_PATH}/${TARGET_NAME}.xcworkspace"
25+
26+
#工程配置路径
27+
PBXPROJ_PATH="${PROJECT_PATH}/${TARGET_NAME}.xcodeproj/project.pbxproj"
28+
echo PBXPROJ_PATH: $PBXPROJ_PATH
29+
30+
# 主项目工程配置
31+
# Debug
32+
/usr/libexec/PlistBuddy -c "Set :objects:03D13BF72448758C00B599B3:buildSettings:CODE_SIGN_STYLE 'Manual'" $PBXPROJ_PATH
33+
/usr/libexec/PlistBuddy -c "Set :objects:03D13BF72448758C00B599B3:buildSettings:DEVELOPMENT_TEAM 'GM72UGLGZW'" $PBXPROJ_PATH
34+
/usr/libexec/PlistBuddy -c "Set :objects:03D13BF72448758C00B599B3:buildSettings:PROVISIONING_PROFILE_SPECIFIER 'App'" $PBXPROJ_PATH
35+
# Release
36+
/usr/libexec/PlistBuddy -c "Set :objects:03D13BF82448758C00B599B3:buildSettings:CODE_SIGN_STYLE 'Manual'" $PBXPROJ_PATH
37+
/usr/libexec/PlistBuddy -c "Set :objects:03D13BF82448758C00B599B3:buildSettings:DEVELOPMENT_TEAM 'GM72UGLGZW'" $PBXPROJ_PATH
38+
/usr/libexec/PlistBuddy -c "Set :objects:03D13BF82448758C00B599B3:buildSettings:PROVISIONING_PROFILE_SPECIFIER 'App'" $PBXPROJ_PATH
39+
40+
# 屏幕共享Extension
41+
# Debug
42+
/usr/libexec/PlistBuddy -c "Set :objects:0339BEB825205B80007D4FDD:buildSettings:CODE_SIGN_STYLE 'Manual'" $PBXPROJ_PATH
43+
/usr/libexec/PlistBuddy -c "Set :objects:0339BEB825205B80007D4FDD:buildSettings:DEVELOPMENT_TEAM 'GM72UGLGZW'" $PBXPROJ_PATH
44+
/usr/libexec/PlistBuddy -c "Set :objects:0339BEB825205B80007D4FDD:buildSettings:PROVISIONING_PROFILE_SPECIFIER 'App'" $PBXPROJ_PATH
45+
# Release
46+
/usr/libexec/PlistBuddy -c "Set :objects:0339BEB925205B80007D4FDD:buildSettings:CODE_SIGN_STYLE 'Manual'" $PBXPROJ_PATH
47+
/usr/libexec/PlistBuddy -c "Set :objects:0339BEB925205B80007D4FDD:buildSettings:DEVELOPMENT_TEAM 'GM72UGLGZW'" $PBXPROJ_PATH
48+
/usr/libexec/PlistBuddy -c "Set :objects:0339BEB925205B80007D4FDD:buildSettings:PROVISIONING_PROFILE_SPECIFIER 'App'" $PBXPROJ_PATH
49+
50+
# SimpleFilter
51+
# Debug
52+
/usr/libexec/PlistBuddy -c "Set :objects:8B10BE1726AFFFA6002E1373:buildSettings:CODE_SIGN_STYLE 'Manual'" $PBXPROJ_PATH
53+
/usr/libexec/PlistBuddy -c "Set :objects:8B10BE1726AFFFA6002E1373:buildSettings:DEVELOPMENT_TEAM ''" $PBXPROJ_PATH
54+
/usr/libexec/PlistBuddy -c "Set :objects:8B10BE1726AFFFA6002E1373:buildSettings:PROVISIONING_PROFILE_SPECIFIER ''" $PBXPROJ_PATH
55+
# Release
56+
/usr/libexec/PlistBuddy -c "Set :objects:8B10BE1826AFFFA6002E1373:buildSettings:CODE_SIGN_STYLE 'Manual'" $PBXPROJ_PATH
57+
/usr/libexec/PlistBuddy -c "Set :objects:8B10BE1826AFFFA6002E1373:buildSettings:DEVELOPMENT_TEAM ''" $PBXPROJ_PATH
58+
/usr/libexec/PlistBuddy -c "Set :objects:8B10BE1826AFFFA6002E1373:buildSettings:PROVISIONING_PROFILE_SPECIFIER ''" $PBXPROJ_PATH
59+
60+
# 读取APPID环境变量
61+
echo AGORA_APP_ID:$APP_ID
62+
echo $AGORA_APP_ID
63+
64+
echo PROJECT_PATH: $PROJECT_PATH
65+
echo TARGET_NAME: $TARGET_NAME
66+
echo KEYCENTER_PATH: $KEYCENTER_PATH
67+
echo APP_PATH: $APP_PATH
68+
69+
#修改Keycenter文件
70+
python3 /tmp/jenkins/api-examples/.github/ci/build/modify_ios_keycenter.py $KEYCENTER_PATH 0
71+
if [ $? -eq 0 ]; then
72+
echo "success"
73+
else
74+
echo "failed"
75+
exit 1
76+
fi
77+
78+
# Xcode clean
79+
xcodebuild clean -workspace "${APP_PATH}" -configuration "${CONFIGURATION}" -scheme "${TARGET_NAME}"
80+
81+
# 时间戳
82+
CURRENT_TIME=$(date "+%Y-%m-%d %H-%M-%S")
83+
84+
# 归档路径
85+
ARCHIVE_PATH="${PROJECT_PATH}/${TARGET_NAME} ${CURRENT_TIME}/${TARGET_NAME}.xcarchive"
86+
# 编译环境
87+
88+
# 导出路径
89+
EXPORT_PATH="${PROJECT_PATH}/${TARGET_NAME} ${CURRENT_TIME}"
90+
91+
# plist路径
92+
PLIST_PATH="${PROJECT_PATH}/ExportOptions.plist"
93+
94+
echo PLIST_PATH: $PLIST_PATH
95+
96+
# archive 这边使用的工作区间 也可以使用project
97+
xcodebuild archive -workspace "${APP_PATH}" -scheme "${TARGET_NAME}" -configuration "${CONFIGURATION}" -archivePath "${ARCHIVE_PATH}" -destination 'generic/platform=iOS'
98+
99+
# 导出ipa
100+
xcodebuild -exportArchive -archivePath "${ARCHIVE_PATH}" -exportPath "${EXPORT_PATH}" -exportOptionsPlist "${PLIST_PATH}"
101+
102+
rm -rf "${EXPORT_PATH}/${TARGET_NAME}.xcarchive"
103+
rm -rf "${EXPORT_PATH}/Packaging.log"
104+
rm -rf "${EXPORT_PATH}/ExportOptions.plist"
105+
rm -rf "${EXPORT_PATH}/DistributionSummary.plist"
106+
107+
#复原Keycenter文件
108+
python3 /tmp/jenkins/api-examples/.github/ci/build/modify_ios_keycenter.py $KEYCENTER_PATH 1
109+
if [ $? -eq 0 ]; then
110+
echo "success"
111+
else
112+
echo "failed"
113+
exit 1
114+
fi
115+
116+
117+
118+

.github/ci/build/build_mac.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ def doPublish(buildVariables) {
5050
sh "rm -rf *.zip || true"
5151
}
5252

53-
pipelineLoad(this, "ApiExample", "build", "mac", "apiexample_linux")
53+
pipelineLoad(this, "ApiExample", "build", "mac", "apiexample_mac")

.github/ci/build/build_mac.sh

+19-6
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,25 @@ rm -rf ./$unzip_name/bin
6363
rm ./$unzip_name/commits
6464
rm ./$unzip_name/package_size_report.txt
6565
mkdir ./$unzip_name/samples
66-
mkdir ./$unzip_name/samples/API-Example
67-
cp -rf ./macOS/** ./$unzip_name/samples/API-Example
68-
mv ./$unzip_name/samples/API-Example/sdk.podspec ./$unzip_name/
69-
sed -i "s|pod 'sdk', :path => 'sdk.podspec'|pod 'sdk', :path => '../../sdk.podspec'|" ./$unzip_name/samples/API-Example/Podfile
70-
sed -i "s|pod 'Agora|#pod 'Agora|" ./$unzip_name/samples/API-Example/Podfile
66+
mkdir ./$unzip_name/samples/APIExample
67+
if [ $? -eq 0 ]; then
68+
echo "success"
69+
else
70+
echo "failed"
71+
exit 1
72+
fi
73+
cp -rf ./macOS/** ./$unzip_name/samples/APIExample
74+
mv ./$unzip_name/samples/APIExample/sdk.podspec ./$unzip_name/
75+
python3 ./.github/ci/build/modify_podfile.py ./$unzip_name/samples/APIExample/Podfile
76+
if [ $? -eq 0 ]; then
77+
echo "success"
78+
else
79+
echo "failed"
80+
exit 1
81+
fi
82+
83+
./.github/ci/build/build_mac_ipa.sh ./$unzip_name/samples/APIExample
7184

7285
7za a -tzip result.zip -r $unzip_name
7386
# 7za a -tzip result.zip -r Agora_Native_SDK_for_Mac_FULL
74-
cp result.zip $WORKSPACE/withAPIExample_$zip_name
87+
cp result.zip $WORKSPACE/withAPIExample_${BUILD_NUMBER}_$zip_name

.github/ci/build/build_mac_ipa.sh

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
CURRENT_PATH=$PWD
2+
3+
# 获取项目目录
4+
PROJECT_PATH="$( cd "$1" && pwd )"
5+
6+
cd ${PROJECT_PATH} && pod install
7+
if [ $? -eq 0 ]; then
8+
echo " pod install success"
9+
else
10+
echo " pod install failed"
11+
exit 1
12+
fi
13+
14+
# 项目target名
15+
TARGET_NAME=${PROJECT_PATH##*/}
16+
17+
KEYCENTER_PATH=${PROJECT_PATH}"/"${TARGET_NAME}"/Common/KeyCenter.swift"
18+
19+
# 打包环境
20+
CONFIGURATION=developer-id
21+
22+
#工程文件路径
23+
APP_PATH="${PROJECT_PATH}/${TARGET_NAME}.xcworkspace"
24+
25+
#工程配置路径
26+
PBXPROJ_PATH="${PROJECT_PATH}/${TARGET_NAME}.xcodeproj/project.pbxproj"
27+
echo PBXPROJ_PATH: $PBXPROJ_PATH
28+
29+
# 主项目工程配置
30+
# Debug
31+
/usr/libexec/PlistBuddy -c "Set :objects:03896D5324F8A011008593CD:buildSettings:CODE_SIGN_STYLE 'Manual'" $PBXPROJ_PATH
32+
/usr/libexec/PlistBuddy -c "Set :objects:03896D5324F8A011008593CD:buildSettings:CODE_SIGN_IDENTITY 'Developer ID Application'" $PBXPROJ_PATH
33+
/usr/libexec/PlistBuddy -c "Set :objects:03896D5324F8A011008593CD:buildSettings:DEVELOPMENT_TEAM 'YS397FG5PA'" $PBXPROJ_PATH
34+
/usr/libexec/PlistBuddy -c "Set :objects:03896D5324F8A011008593CD:buildSettings:PROVISIONING_PROFILE_SPECIFIER 'apiexamplemac'" $PBXPROJ_PATH
35+
# Release
36+
/usr/libexec/PlistBuddy -c "Set :objects:03896D5424F8A011008593CD:buildSettings:CODE_SIGN_STYLE 'Manual'" $PBXPROJ_PATH
37+
/usr/libexec/PlistBuddy -c "Set :objects:03896D5424F8A011008593CD:buildSettings:CODE_SIGN_IDENTITY 'Developer ID Application'" $PBXPROJ_PATH
38+
/usr/libexec/PlistBuddy -c "Set :objects:03896D5424F8A011008593CD:buildSettings:DEVELOPMENT_TEAM 'YS397FG5PA'" $PBXPROJ_PATH
39+
/usr/libexec/PlistBuddy -c "Set :objects:03896D5424F8A011008593CD:buildSettings:PROVISIONING_PROFILE_SPECIFIER 'apiexamplemac'" $PBXPROJ_PATH
40+
41+
# SimpleFilter
42+
# Debug
43+
# /usr/libexec/PlistBuddy -c "Set :objects:8BD4AE7E272518D600E95B87:buildSettings:CODE_SIGN_STYLE 'Manual'" $PBXPROJ_PATH
44+
# /usr/libexec/PlistBuddy -c "Set :objects:8BD4AE7E272518D600E95B87:buildSettings:DEVELOPMENT_TEAM ''" $PBXPROJ_PATH
45+
# /usr/libexec/PlistBuddy -c "Set :objects:8BD4AE7E272518D600E95B87:buildSettings:PROVISIONING_PROFILE_SPECIFIER ''" $PBXPROJ_PATH
46+
# # Release
47+
# /usr/libexec/PlistBuddy -c "Set :objects:8BD4AE7F272518D600E95B87:buildSettings:CODE_SIGN_STYLE 'Manual'" $PBXPROJ_PATH
48+
# /usr/libexec/PlistBuddy -c "Set :objects:8BD4AE7F272518D600E95B87:buildSettings:DEVELOPMENT_TEAM ''" $PBXPROJ_PATH
49+
# /usr/libexec/PlistBuddy -c "Set :objects:8BD4AE7F272518D600E95B87:buildSettings:PROVISIONING_PROFILE_SPECIFIER ''" $PBXPROJ_PATH
50+
51+
# 读取APPID环境变量
52+
echo AGORA_APP_ID:$APP_ID
53+
echo $AGORA_APP_ID
54+
55+
echo PROJECT_PATH: $PROJECT_PATH
56+
echo TARGET_NAME: $TARGET_NAME
57+
echo KEYCENTER_PATH: $KEYCENTER_PATH
58+
echo APP_PATH: $APP_PATH
59+
60+
#修改Keycenter文件
61+
62+
python3 /tmp/jenkins/api-examples/.github/ci/build/modify_ios_keycenter.py $KEYCENTER_PATH 0
63+
if [ $? -eq 0 ]; then
64+
echo "修改Keycenter文件 success"
65+
else
66+
echo "修改Keycenter文件 failed"
67+
exit 1
68+
fi
69+
# Xcode clean
70+
xcodebuild clean -workspace "${APP_PATH}" -configuration "${CONFIGURATION}" -scheme "${TARGET_NAME}"
71+
72+
# 时间戳
73+
CURRENT_TIME=$(date "+%Y-%m-%d %H-%M-%S")
74+
75+
# 归档路径
76+
ARCHIVE_PATH="${PROJECT_PATH}/${TARGET_NAME} ${CURRENT_TIME}/${TARGET_NAME}.xcarchive"
77+
# 编译环境
78+
79+
# 导出路径
80+
EXPORT_PATH="${PROJECT_PATH}/${TARGET_NAME} ${CURRENT_TIME}"
81+
82+
# plist路径
83+
PLIST_PATH="${PROJECT_PATH}/ExportOptions.plist"
84+
85+
echo PLIST_PATH: $PLIST_PATH
86+
87+
# archive 这边使用的工作区间 也可以使用project
88+
xcodebuild archive -workspace "${APP_PATH}" -scheme "${TARGET_NAME}" -configuration "${CONFIGURATION}" -archivePath "${ARCHIVE_PATH}" -destination 'generic/platform=macOS'
89+
90+
# 导出ipa
91+
xcodebuild -exportArchive -archivePath "${ARCHIVE_PATH}" -exportPath "${EXPORT_PATH}" -exportOptionsPlist "${PLIST_PATH}"
92+
93+
rm -rf "${EXPORT_PATH}/${TARGET_NAME}.xcarchive"
94+
rm -rf "${EXPORT_PATH}/Packaging.log"
95+
rm -rf "${EXPORT_PATH}/ExportOptions.plist"
96+
rm -rf "${EXPORT_PATH}/DistributionSummary.plist"
97+
98+
#复原Keycenter文件
99+
python3 /tmp/jenkins/api-examples/.github/ci/build/modify_ios_keycenter.py $KEYCENTER_PATH 1
100+
if [ $? -eq 0 ]; then
101+
echo "复原Keycenter文件 success"
102+
else
103+
echo "复原Keycenter文件 failed"
104+
exit 1
105+
fi
106+
107+
108+
109+

.github/ci/build/build_windows.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ xcopy /Y /E windows\APIExample Agora_Native_SDK_for_Windows_FULL\samples\API-exa
8585
xcopy /Y /E windows\README.md Agora_Native_SDK_for_Windows_FULL\samples\API-example
8686
xcopy /Y /E windows\README.zh.md Agora_Native_SDK_for_Windows_FULL\samples\API-example
8787
7z a -tzip result.zip -r Agora_Native_SDK_for_Windows_FULL
88-
copy result.zip %WORKSPACE%\\withAPIExample_%zip_name%
88+
copy result.zip %WORKSPACE%\\withAPIExample_%date:~4,2%%date:~7,2%%time:~0,2%%time:~3,2%_%zip_name%
8989
del /F result.zip
9090
del /F %WORKSPACE%\\%zip_name%
9191

@@ -94,6 +94,6 @@ echo "compile start..."
9494
call installThirdParty.bat
9595
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" "APIExample.sln" /p:platform="Win32" /p:configuration="Release"
9696
7z a -tzip result.zip -r Release
97-
copy result.zip %WORKSPACE%\\APIExample-windows.zip
97+
copy result.zip %WORKSPACE%\\APIExample_windows_%date:~4,2%%date:~7,2%%time:~0,2%%time:~3,2%_Release_exe.zip
9898
del /F result.zip
9999
echo "compile done."

0 commit comments

Comments
 (0)