2019-11-23 20:27:39 +08:00
|
|
|
{
|
|
|
|
"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": [
|
|
|
|
{
|
2023-02-23 21:57:30 +08:00
|
|
|
"from": "templates/lua-template-default/Content",
|
|
|
|
"to": "Content",
|
2019-11-23 20:27:39 +08:00
|
|
|
"exclude": []
|
|
|
|
},
|
|
|
|
{
|
2023-02-23 21:57:30 +08:00
|
|
|
"from": "extensions/scripting/lua-bindings/script",
|
|
|
|
"to": "Content/src/axmol",
|
2019-11-23 20:27:39 +08:00
|
|
|
"exclude": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"do_add_native_support": {
|
|
|
|
"append_dir": [
|
|
|
|
{
|
2020-10-19 18:33:10 +08:00
|
|
|
"from": "extensions/scripting/lua-bindings/manual/lua_module_register.h",
|
2023-02-24 00:17:36 +08:00
|
|
|
"to": "Source/"
|
2019-11-23 20:27:39 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"project_rename": {
|
|
|
|
"src_project_name": "HelloLua",
|
|
|
|
"files": [
|
2021-10-08 11:07:06 +08:00
|
|
|
"PROJECT_NAME.xsxproj"
|
2019-11-23 20:27:39 +08:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"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",
|
2019-11-23 20:27:39 +08:00
|
|
|
"CMakeLists.txt"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"project_replace_package_name": {
|
2022-10-01 16:24:52 +08:00
|
|
|
"src_package_name": "org.axmol.hellolua",
|
2019-11-23 20:27:39 +08:00
|
|
|
"files": [
|
2023-02-24 00:17:36 +08:00
|
|
|
"proj.android/app/build.gradle",
|
|
|
|
"proj.android/app/AndroidManifest.xml"]
|
2019-11-23 20:27:39 +08:00
|
|
|
},
|
2020-10-20 16:26:53 +08:00
|
|
|
"project_replace_so_name": {
|
|
|
|
"src_so_name": "HelloLua",
|
|
|
|
"files": [
|
2023-02-24 00:17:36 +08:00
|
|
|
"proj.android/app/AndroidManifest.xml"
|
2020-10-20 16:26:53 +08:00
|
|
|
]
|
|
|
|
},
|
2019-11-23 20:27:39 +08:00
|
|
|
"project_replace_mac_bundleid": {
|
2022-10-01 16:24:52 +08:00
|
|
|
"src_bundle_id": "org.axmol.hellolua",
|
2019-11-23 20:27:39 +08:00
|
|
|
"files": [
|
2023-02-24 00:17:36 +08:00
|
|
|
"proj.ios_mac/mac/Info.plist"
|
2019-11-23 20:27:39 +08:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"project_replace_ios_bundleid": {
|
2022-10-01 16:24:52 +08:00
|
|
|
"src_bundle_id": "org.axmol.hellolua",
|
2019-11-23 20:27:39 +08:00
|
|
|
"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"
|
2019-11-23 20:27:39 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"change_orientation": {
|
|
|
|
"modify_files": [
|
|
|
|
{
|
|
|
|
"file_path": "config.json",
|
|
|
|
"pattern": "\\\"isLandscape\\\"\\s*:.*,",
|
|
|
|
"replace_string": "\"isLandscape\": false,"
|
|
|
|
},
|
|
|
|
{
|
2023-02-23 21:57:30 +08:00
|
|
|
"file_path": "Content/src/config.lua",
|
2019-11-23 20:27:39 +08:00
|
|
|
"pattern": "width\\s*=.*,",
|
|
|
|
"replace_string": "width = 640,"
|
|
|
|
},
|
|
|
|
{
|
2023-02-23 21:57:30 +08:00
|
|
|
"file_path": "Content/src/config.lua",
|
2019-11-23 20:27:39 +08:00
|
|
|
"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",
|
2019-11-23 20:27:39 +08:00
|
|
|
"pattern": "UIInterfaceOrientationLandscapeRight",
|
|
|
|
"replace_string": "UIInterfaceOrientationPortrait"
|
|
|
|
},
|
|
|
|
{
|
2023-02-24 00:17:36 +08:00
|
|
|
"file_path": "proj.ios_mac/ios/targets/ios/Info.plist",
|
2019-11-23 20:27:39 +08:00
|
|
|
"pattern": "UIInterfaceOrientationLandscapeLeft",
|
|
|
|
"replace_string": "UIInterfaceOrientationPortraitUpsideDown"
|
|
|
|
},
|
|
|
|
{
|
2023-02-24 00:17:36 +08:00
|
|
|
"file_path": "proj.android/app/AndroidManifest.xml",
|
2019-11-23 20:27:39 +08:00
|
|
|
"pattern": "android:screenOrientation=\\\".*\\\"",
|
|
|
|
"replace_string": "android:screenOrientation=\"portrait\""
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|