2019-11-23 20:27:39 +08:00
|
|
|
{
|
2023-09-02 19:56:50 +08:00
|
|
|
"do_default": [
|
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"from": "HelloLua",
|
|
|
|
"to": "${projectName}",
|
2019-11-23 20:27:39 +08:00
|
|
|
"files": [
|
|
|
|
"config.json",
|
2023-09-02 19:56:50 +08:00
|
|
|
"HelloLua.xsxproj",
|
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",
|
2023-09-02 19:56:50 +08:00
|
|
|
"CMakeLists.txt",
|
2023-09-02 19:56:33 +08:00
|
|
|
"proj.android/app/AndroidManifest.xml"
|
|
|
|
]
|
2023-09-01 16:31:14 +08:00
|
|
|
},
|
2023-09-02 19:56:50 +08:00
|
|
|
{
|
|
|
|
"action": "cp",
|
|
|
|
"from": "$env:AX_ROOT/extensions/scripting/lua-bindings/script",
|
|
|
|
"to": "${projectDir}/Content/src/axmol",
|
|
|
|
"is_dir": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "cp",
|
|
|
|
"from": "$env:AX_ROOT/extensions/scripting/lua-bindings/manual/lua_module_register.h",
|
|
|
|
"to": "${projectDir}/Source/"
|
2023-09-02 19:56:33 +08:00
|
|
|
},
|
2023-09-02 19:56:50 +08:00
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"from": "org.axmol.hellolua",
|
|
|
|
"to": "${packageName}",
|
2019-11-23 20:27:39 +08:00
|
|
|
"files": [
|
2023-09-02 19:56:50 +08:00
|
|
|
"proj.android/app/build.gradle",
|
|
|
|
"proj.android/app/AndroidManifest.xml",
|
|
|
|
"proj.ios_mac/mac/Info.plist",
|
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
|
|
|
]
|
2023-09-02 19:56:50 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "ren",
|
|
|
|
"from": "${projectDir}/HelloLua.xsxproj",
|
|
|
|
"to": "${projectDir}/${projectName}.xsxproj"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "cp",
|
|
|
|
"from": "$env:AX_ROOT/build.ps1",
|
|
|
|
"to": "${projectDir}/"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "cp",
|
|
|
|
"from": "$env:AX_ROOT/templates/run.bat.in",
|
|
|
|
"to": "${projectDir}/"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "del",
|
|
|
|
"files": [
|
|
|
|
"axproj-template.json",
|
|
|
|
"axproj2-template.json"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"do_portrait": [
|
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"pattern": "\\\"isLandscape\\\"\\s*:.*,",
|
|
|
|
"to": "`\"isLandscape`\": false,",
|
|
|
|
"files": ["config.json"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"pattern": "width\\s*=.*,",
|
|
|
|
"to": "width = 640,",
|
|
|
|
"files": ["Content/src/config.lua"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"pattern": "height\\s*=.*,",
|
|
|
|
"to": "height = 960,",
|
|
|
|
"files": ["Content/src/config.lua"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"from": "UIInterfaceOrientationLandscapeRight",
|
|
|
|
"to": "UIInterfaceOrientationPortrait",
|
|
|
|
"files": ["proj.ios_mac/ios/targets/ios/Info.plist"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"from": "UIInterfaceOrientationLandscapeLeft",
|
|
|
|
"to": "UIInterfaceOrientationPortraitUpsideDown",
|
|
|
|
"files": ["proj.ios_mac/ios/targets/ios/Info.plist"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"pattern": "android:screenOrientation=\\\".*\\\"",
|
|
|
|
"to": "android:screenOrientation=`\"portrait`\"",
|
|
|
|
"files": ["proj.android/app/AndroidManifest.xml"]
|
2019-11-23 20:27:39 +08:00
|
|
|
}
|
2023-09-02 19:56:50 +08:00
|
|
|
]
|
2019-11-23 20:27:39 +08:00
|
|
|
}
|