Skip to content

Commit 8eaecb8

Browse files
author
HeZhengQing
committed
[FIX] add ci log
1 parent 29fda63 commit 8eaecb8

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/ci/build/modify_ios_keycenter.py

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

33
def modfiy(path, isReset):
4+
print(f'[modify_ios_keycenter] path === {path}, isReset === {isReset}')
45
appId = os.environ.get('APP_ID')
6+
print(f'[modify_ios_keycenter] appId === {appId}')
57
faceCaptureLicense = os.environ.get('FACE_CAPTURE_LICENSE')
8+
print(f'[modify_ios_keycenter] faceCaptureLicense === {faceCaptureLicense}')
69
with open(path, 'r', encoding='utf-8') as file:
710
contents = []
811
for num, line in enumerate(file):
912
line = line.strip()
1013
if "static let AppId" in line:
14+
print(f'[modify_ios_keycenter] Find `static let AppId` in line {num + 1}')
1115
if isReset:
1216
line = "static let AppId: String = <#YOUR APPID#>"
1317
else:
1418
line = f'static let AppId: String = "{appId}"'
19+
print(f'[modify_ios_keycenter] line {num + 1} changed to: {line}')
1520
elif "static let Certificate" in line:
21+
print(f'[modify_ios_keycenter] Find `static let Certificate` in line {num + 1}')
1622
if isReset:
1723
line = "static let Certificate: String? = <#YOUR Certificate#>"
1824
else:
1925
line = 'static let Certificate: String? = nil'
26+
print(f'[modify_ios_keycenter] line {num + 1} changed to: {line}')
2027
elif "static let FaceCaptureLicense" in line:
28+
print(f'[modify_ios_keycenter] Find `static let FaceCaptureLicense` in line {num + 1}')
2129
if isReset:
2230
line = "static let FaceCaptureLicense: String? = nil"
2331
else:
2432
line = f'static let FaceCaptureLicense: String? = "{faceCaptureLicense}"'
33+
print(f'[modify_ios_keycenter] line {num + 1} changed to: {line}')
2534
elif "static NSString * const APPID" in line:
35+
print(f'[modify_ios_keycenter] Find `static NSString * const APPID` in line {num + 1}')
2636
if isReset:
2737
line = "static NSString * const APPID = <#YOUR APPID#>"
2838
else:
2939
line = f'static NSString * const APPID = @"{appId}";'
40+
print(f'[modify_ios_keycenter] line {num + 1} changed to: {line}')
3041
elif "static NSString * const Certificate" in line:
42+
print(f'[modify_ios_keycenter] Find `static NSString * const Certificate` in line {num + 1}')
3143
if isReset:
3244
line = "static NSString * const Certificate = <#YOUR Certificate#>"
3345
else:
3446
line = 'static NSString * const Certificate = nil;'
47+
print(f'[modify_ios_keycenter] line {num + 1} changed to: {line}')
3548
contents.append(line)
3649
file.close()
3750

0 commit comments

Comments
 (0)