Skip to content

Commit 704a3b5

Browse files
author
HeZhengQing
committed
Revert two commits
1 parent 9392222 commit 704a3b5

2 files changed

Lines changed: 6 additions & 20 deletions

File tree

.github/ci/build/build_ios_ipa.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,15 @@ else
108108
fi
109109

110110
# 读取APPID环境变量
111-
echo "[build_ios_ipa.sh] AGORA_APP_ID from env: $APP_ID"
111+
echo AGORA_APP_ID:$APP_ID
112+
echo $AGORA_APP_ID
112113

113-
echo "[build_ios_ipa.sh] PROJECT_PATH: $PROJECT_PATH"
114-
echo "[build_ios_ipa.sh] TARGET_NAME: $TARGET_NAME"
115-
echo "[build_ios_ipa.sh] KEYCENTER_PATH: $KEYCENTER_PATH"
116-
echo "[build_ios_ipa.sh] APP_PATH: $APP_PATH"
114+
echo PROJECT_PATH: $PROJECT_PATH
115+
echo TARGET_NAME: $TARGET_NAME
116+
echo KEYCENTER_PATH: $KEYCENTER_PATH
117+
echo APP_PATH: $APP_PATH
117118

118119
#修改Keycenter文件
119-
echo "[build_ios_ipa.sh] Calling modify_ios_keycenter.py to update keys."
120120
python3 /tmp/jenkins/api-examples/.github/ci/build/modify_ios_keycenter.py $KEYCENTER_PATH 0
121121

122122
# Xcode clean
@@ -162,7 +162,6 @@ rm -rf *.zip
162162
rm -rf ${PAYLOAD_PATH}
163163

164164
#复原Keycenter文件
165-
echo "[build_ios_ipa.sh] Calling modify_ios_keycenter.py to restore keys."
166165
python3 /tmp/jenkins/api-examples/.github/ci/build/modify_ios_keycenter.py $KEYCENTER_PATH 1
167166

168167

.github/ci/build/modify_ios_keycenter.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,37 @@
11
import os, sys
22

33
def modfiy(path, isReset):
4-
print(f'[modify_ios_keycenter] path === {path}, isReset === {isReset}')
54
appId = os.environ.get('APP_ID')
6-
print(f'[modify_ios_keycenter] appId === {appId}')
75
faceCaptureLicense = os.environ.get('FACE_CAPTURE_LICENSE')
8-
print(f'[modify_ios_keycenter] faceCaptureLicense === {faceCaptureLicense}')
96
with open(path, 'r', encoding='utf-8') as file:
107
contents = []
118
for num, line in enumerate(file):
129
line = line.strip()
1310
if "static let AppId" in line:
14-
print(f'[modify_ios_keycenter] Find `static let AppId` in line {num + 1}')
1511
if isReset:
1612
line = "static let AppId: String = <#YOUR APPID#>"
1713
else:
1814
line = f'static let AppId: String = "{appId}"'
19-
print(f'[modify_ios_keycenter] line {num + 1} changed to: {line}')
2015
elif "static let Certificate" in line:
21-
print(f'[modify_ios_keycenter] Find `static let Certificate` in line {num + 1}')
2216
if isReset:
2317
line = "static let Certificate: String? = <#YOUR Certificate#>"
2418
else:
2519
line = 'static let Certificate: String? = nil'
26-
print(f'[modify_ios_keycenter] line {num + 1} changed to: {line}')
2720
elif "static let FaceCaptureLicense" in line:
28-
print(f'[modify_ios_keycenter] Find `static let FaceCaptureLicense` in line {num + 1}')
2921
if isReset:
3022
line = "static let FaceCaptureLicense: String? = nil"
3123
else:
3224
line = f'static let FaceCaptureLicense: String? = "{faceCaptureLicense}"'
33-
print(f'[modify_ios_keycenter] line {num + 1} changed to: {line}')
3425
elif "static NSString * const APPID" in line:
35-
print(f'[modify_ios_keycenter] Find `static NSString * const APPID` in line {num + 1}')
3626
if isReset:
3727
line = "static NSString * const APPID = <#YOUR APPID#>"
3828
else:
3929
line = f'static NSString * const APPID = @"{appId}";'
40-
print(f'[modify_ios_keycenter] line {num + 1} changed to: {line}')
4130
elif "static NSString * const Certificate" in line:
42-
print(f'[modify_ios_keycenter] Find `static NSString * const Certificate` in line {num + 1}')
4331
if isReset:
4432
line = "static NSString * const Certificate = <#YOUR Certificate#>"
4533
else:
4634
line = 'static NSString * const Certificate = nil;'
47-
print(f'[modify_ios_keycenter] line {num + 1} changed to: {line}')
4835
contents.append(line)
4936
file.close()
5037

0 commit comments

Comments
 (0)