2014-05-04 14:37:55 +08:00
|
|
|
{
|
2015-01-09 04:08:41 +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": [
|
2014-10-11 02:55:04 +08:00
|
|
|
{
|
2023-02-23 21:57:30 +08:00
|
|
|
"from": "templates/lua-template-default/Content",
|
|
|
|
"to": "Content",
|
2014-10-11 02:55:04 +08:00
|
|
|
"exclude": []
|
2015-01-09 04:08:41 +08:00
|
|
|
},
|
|
|
|
{
|
2023-02-23 21:57:30 +08:00
|
|
|
"from": "extensions/scripting/lua-bindings/script",
|
|
|
|
"to": "Content/src/axmol",
|
2015-01-09 04:08:41 +08:00
|
|
|
"exclude": []
|
2015-01-13 18:28:33 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"do_add_native_support": {
|
|
|
|
"append_dir": [
|
2015-05-22 19:47:16 +08:00
|
|
|
{
|
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/"
|
2014-10-11 02:55:04 +08:00
|
|
|
}
|
2015-01-13 18:28:33 +08:00
|
|
|
],
|
2015-01-09 04:08:41 +08:00
|
|
|
"project_rename": {
|
|
|
|
"src_project_name": "HelloLua",
|
|
|
|
"files": [
|
2021-10-08 11:07:06 +08:00
|
|
|
"PROJECT_NAME.xsxproj"
|
2014-05-04 14:37:55 +08:00
|
|
|
]
|
2015-01-09 04:08:41 +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",
|
2018-09-13 18:03:44 +08:00
|
|
|
"CMakeLists.txt"
|
|
|
|
]
|
2015-01-09 04:08:41 +08:00
|
|
|
},
|
|
|
|
"project_replace_package_name": {
|
2022-10-01 16:24:52 +08:00
|
|
|
"src_package_name": "org.axmol.hellolua",
|
2015-01-09 04:08:41 +08:00
|
|
|
"files": [
|
2023-02-24 00:17:36 +08:00
|
|
|
"proj.android/app/build.gradle",
|
|
|
|
"proj.android/app/AndroidManifest.xml"]
|
2015-01-09 04:08:41 +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
|
|
|
]
|
|
|
|
},
|
2015-01-09 04:08:41 +08:00
|
|
|
"project_replace_mac_bundleid": {
|
2022-10-01 16:24:52 +08:00
|
|
|
"src_bundle_id": "org.axmol.hellolua",
|
2014-07-08 10:22:08 +08:00
|
|
|
"files": [
|
2023-02-24 00:17:36 +08:00
|
|
|
"proj.ios_mac/mac/Info.plist"
|
2014-07-08 10:22:08 +08:00
|
|
|
]
|
2015-01-09 04:08:41 +08:00
|
|
|
},
|
|
|
|
"project_replace_ios_bundleid": {
|
2022-10-01 16:24:52 +08:00
|
|
|
"src_bundle_id": "org.axmol.hellolua",
|
2014-07-08 10:22:08 +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"
|
2014-07-08 10:22:08 +08:00
|
|
|
]
|
2016-07-08 17:17:23 +08:00
|
|
|
}
|
2015-07-15 17:32:01 +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",
|
2015-07-15 17:32:01 +08:00
|
|
|
"pattern": "width\\s*=.*,",
|
|
|
|
"replace_string": "width = 640,"
|
|
|
|
},
|
|
|
|
{
|
2023-02-23 21:57:30 +08:00
|
|
|
"file_path": "Content/src/config.lua",
|
2015-07-15 17:32:01 +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",
|
2015-07-15 17:32:01 +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",
|
2015-07-15 17:32:01 +08:00
|
|
|
"pattern": "UIInterfaceOrientationLandscapeLeft",
|
|
|
|
"replace_string": "UIInterfaceOrientationPortraitUpsideDown"
|
|
|
|
},
|
|
|
|
{
|
2023-02-24 00:17:36 +08:00
|
|
|
"file_path": "proj.android/app/AndroidManifest.xml",
|
2015-07-15 17:32:01 +08:00
|
|
|
"pattern": "android:screenOrientation=\\\".*\\\"",
|
|
|
|
"replace_string": "android:screenOrientation=\"portrait\""
|
|
|
|
}
|
|
|
|
]
|
2014-05-04 14:37:55 +08:00
|
|
|
}
|
|
|
|
}
|