* 修改updateConfVersion.py * 添加更新conf.lua时修改存档目录的步骤 * Add files via upload * 更改ci脚本以适配新版版本信息 * 修正问题 * 打包时添加version.lua * 更新updateVersion.py以适配新版版本信息 * 删除被替换的py文件 Co-authored-by: MrZ_26 <1046101471@qq.com>
66 lines
2.0 KiB
Python
66 lines
2.0 KiB
Python
import argparse, datetime
|
|
|
|
info = r"""<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>BuildMachineOSBuild</key>
|
|
<string>19B88</string>
|
|
<key>CFBundleDevelopmentRegion</key>
|
|
<string>English</string>
|
|
<key>CFBundleExecutable</key>
|
|
<string>love</string>
|
|
<key>CFBundleIconFile</key>
|
|
<string>iconfile</string>
|
|
<key>CFBundleIdentifier</key>
|
|
<string>org.love2d.MrZ.Techmino</string>
|
|
<key>CFBundleInfoDictionaryVersion</key>
|
|
<string>6.0</string>
|
|
<key>CFBundleName</key>
|
|
<string>Techmino</string>
|
|
<key>CFBundlePackageType</key>
|
|
<string>APPL</string>
|
|
<key>CFBundleShortVersionString</key>
|
|
<string>%s</string>
|
|
<key>CFBundleSignature</key>
|
|
<string>LoVe</string>
|
|
<key>CFBundleSupportedPlatforms</key>
|
|
<array>
|
|
<string>MacOSX</string>
|
|
</array>
|
|
<key>DTCompiler</key>
|
|
<string>com.apple.compilers.llvm.clang.1_0</string>
|
|
<key>DTPlatformBuild</key>
|
|
<string>11C504</string>
|
|
<key>DTPlatformVersion</key>
|
|
<string>GM</string>
|
|
<key>DTSDKBuild</key>
|
|
<string>19B90</string>
|
|
<key>DTSDKName</key>
|
|
<string>macosx10.15</string>
|
|
<key>DTXcode</key>
|
|
<string>1130</string>
|
|
<key>DTXcodeBuild</key>
|
|
<string>11C504</string>
|
|
<key>LSApplicationCategoryType</key>
|
|
<string>public.app-category.games</string>
|
|
<key>LSMinimumSystemVersion</key>
|
|
<string>10.7</string>
|
|
<key>NSHighResolutionCapable</key>
|
|
<true/>
|
|
<key>NSHumanReadableCopyright</key>
|
|
<string>©2020-%d 26F Studio, GNU LGPLv3.0</string>
|
|
<key>NSPrincipalClass</key>
|
|
<string>NSApplication</string>
|
|
<key>NSSupportsAutomaticGraphicsSwitching</key>
|
|
<false/>
|
|
</dict>
|
|
</plist>
|
|
"""
|
|
|
|
if __name__ == '__main__':
|
|
parser = argparse.ArgumentParser(description="用于CI更新macOS版本号")
|
|
parser.add_argument("-N", "--Name", type=str, help = "versionName")
|
|
args = parser.parse_args()
|
|
with open("Techmino.app/Contents/info.plist", "w") as file:
|
|
file.write(info % (args.Name, datetime.datetime.today().year)) |