Ci ios (#395)
* merge get-cc-url into get-version * add `get-cc` * remove `apt update` * rename `get-version` -> `get-info` * rm unnecessary file * - Add support for ios - Fix missing top folder for macos * - Fix directory names * - Fix with binary r/w * iOS的plist文件先转换为明文 * add IOS * 整合新action * Finishing touch * Update action.yml * Test chmod * - Xcode build test * - Build with default keychain * - Test iOS only * - Use macos-11 * - Change keychain operations' sequence * - Allow provisioning updates * - Set build directory * - Specify build path * - Pack bare app * - Add quiet option * 测试:输出touchrelease位置 * - Test with ad hoc cert * - Fix wrong variable * - Use Release instead of Distribution * - Chmod CCloader to add execute permission * 继续测试ios触屏问题 * 继续测试ios触屏问题 * - Use macos latest - Re-enable other runs * - Sign CCloader after build * - Remove redundant inputs in build.yml * - Install test * - Export test * - install test * - Try fastlane * - Use builtin ruby * - CI Test * - Update python script to fix ios versioning * - Use static lib * - Test static cc * - Fix locations * Update readme.md Co-authored-by: Imple Lee <80144331+ImpleLee@users.noreply.github.com> Co-authored-by: Trebor-Huang <2300936257@qq.com> Co-authored-by: Trebor Huang <41145779+Trebor-Huang@users.noreply.github.com> Co-authored-by: YunyushuLiu <kunluntree@qq.com> Co-authored-by: MrZ626 <1046101471@qq.com> Co-authored-by: 梦飞翔 <1149761294@qq.com>
This commit is contained in:
11
.github/workflows/updateVersion.py
vendored
11
.github/workflows/updateVersion.py
vendored
@@ -1,4 +1,5 @@
|
||||
import argparse
|
||||
import re
|
||||
|
||||
def updateConf(): #更新存档位置
|
||||
with open('conf.lua', 'r+', encoding='utf-8') as file:
|
||||
@@ -32,6 +33,14 @@ def updateMacOS(args): #更新macOS打包信息
|
||||
with open('./Techmino.app/Contents/info.plist', 'w+', encoding='utf-8') as file:
|
||||
file.write(data)
|
||||
|
||||
def updateIOS(args): #更新iOS打包信息
|
||||
with open('./Techmino-iOS/platform/xcode/Techmino.xcodeproj/project.pbxproj', 'r') as file:
|
||||
data = file.read()
|
||||
data = data.replace('__VERSION__', re.search(r'([0-9]+\.[0-9]+\.[0-9]+)', args.Name, re.I).group(1))
|
||||
|
||||
with open('./Techmino-iOS/platform/xcode/Techmino.xcodeproj/project.pbxproj', 'w') as file:
|
||||
file.write(data)
|
||||
|
||||
def updateWindows(args): #更新Windows打包信息
|
||||
Version = (args.Name).replace('V', '')
|
||||
FileVersion = (f"{Version.replace('.', ',')},0")
|
||||
@@ -91,6 +100,8 @@ if __name__ == '__main__':
|
||||
updateWindows(args)
|
||||
elif args.Type == 'macOS':
|
||||
updateMacOS(args)
|
||||
elif args.Type == 'iOS':
|
||||
updateIOS(args)
|
||||
elif args.Type == 'AndroidRelease':
|
||||
updateAndroid(args, 'Release')
|
||||
elif args.Type == 'AndroidSnapshot':
|
||||
|
||||
Reference in New Issue
Block a user