axmol/templates/lua-template-default/axproj-template.json

114 lines
3.7 KiB
JSON
Raw Normal View History

{
"do_default": {
"exclude_from_template": [
"runtime/config.json",
"runtime/version.json"
],
"project_replace_project_name": {
"src_project_name": "HelloLua",
"files": [
"config.json",
".project"
]
},
"append_dir": [
2014-10-11 02:55:04 +08:00
{
"from": "templates/lua-template-default/Content",
"to": "Content",
2014-10-11 02:55:04 +08:00
"exclude": []
},
{
"from": "extensions/scripting/lua-bindings/script",
"to": "Content/src/axmol",
"exclude": []
2015-01-13 18:28:33 +08:00
}
]
},
"do_add_native_support": {
"append_dir": [
{
"from": "extensions/scripting/lua-bindings/manual/lua_module_register.h",
2023-02-24 00:17:36 +08:00
"to": "Source/"
2014-10-11 02:55:04 +08:00
}
2015-01-13 18:28:33 +08:00
],
"project_rename": {
"src_project_name": "HelloLua",
"files": [
2021-10-08 11:07:06 +08:00
"PROJECT_NAME.xsxproj"
]
},
"project_replace_project_name": {
"src_project_name": "HelloLua",
"files": [
"config.json",
".project",
2023-02-24 00:17:36 +08:00
"proj.win32/main.cpp",
"proj.android/settings.gradle",
"proj.android/app/res/values/strings.xml",
"proj.ios_mac/ios/main.m",
"proj.ios_mac/ios/Prefix.pch",
"CMakeLists.txt"
]
},
"project_replace_package_name": {
2022-10-01 16:24:52 +08:00
"src_package_name": "org.axmol.hellolua",
"files": [
2023-02-24 00:17:36 +08:00
"proj.android/app/build.gradle",
"proj.android/app/AndroidManifest.xml"]
},
"project_replace_so_name": {
"src_so_name": "HelloLua",
"files": [
2023-02-24 00:17:36 +08:00
"proj.android/app/AndroidManifest.xml"
]
},
"project_replace_mac_bundleid": {
2022-10-01 16:24:52 +08:00
"src_bundle_id": "org.axmol.hellolua",
"files": [
2023-02-24 00:17:36 +08:00
"proj.ios_mac/mac/Info.plist"
]
},
"project_replace_ios_bundleid": {
2022-10-01 16:24:52 +08:00
"src_bundle_id": "org.axmol.hellolua",
"files": [
2023-02-24 00:17:36 +08:00
"proj.ios_mac/ios/targets/ios/Info.plist",
"proj.ios_mac/ios/targets/tvos/Info.plist"
]
}
},
"change_orientation": {
"modify_files": [
{
"file_path": "config.json",
"pattern": "\\\"isLandscape\\\"\\s*:.*,",
"replace_string": "\"isLandscape\": false,"
},
{
"file_path": "Content/src/config.lua",
"pattern": "width\\s*=.*,",
"replace_string": "width = 640,"
},
{
"file_path": "Content/src/config.lua",
"pattern": "height\\s*=.*,",
"replace_string": "height = 960,"
},
{
2023-02-24 00:17:36 +08:00
"file_path": "proj.ios_mac/ios/targets/ios/Info.plist",
"pattern": "UIInterfaceOrientationLandscapeRight",
"replace_string": "UIInterfaceOrientationPortrait"
},
{
2023-02-24 00:17:36 +08:00
"file_path": "proj.ios_mac/ios/targets/ios/Info.plist",
"pattern": "UIInterfaceOrientationLandscapeLeft",
"replace_string": "UIInterfaceOrientationPortraitUpsideDown"
},
{
2023-02-24 00:17:36 +08:00
"file_path": "proj.android/app/AndroidManifest.xml",
"pattern": "android:screenOrientation=\\\".*\\\"",
"replace_string": "android:screenOrientation=\"portrait\""
}
]
}
}