2019-11-23 20:27:39 +08:00
|
|
|
{
|
2023-09-02 19:56:50 +08:00
|
|
|
"do_default": [
|
2024-02-22 00:41:07 +08:00
|
|
|
{
|
|
|
|
"action": "cp",
|
|
|
|
"from": "$env:AX_ROOT/templates/common/*",
|
|
|
|
"to": "${projectDir}/",
|
|
|
|
"is_dir": true
|
|
|
|
},
|
2024-02-22 20:06:19 +08:00
|
|
|
{
|
|
|
|
"action": "cp",
|
|
|
|
"from": "$env:AX_ROOT/.clang-format",
|
|
|
|
"to": "${projectDir}/"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "cp",
|
|
|
|
"from": "$env:AX_ROOT/.editorconfig",
|
|
|
|
"to": "${projectDir}/"
|
|
|
|
},
|
2023-09-02 19:56:50 +08:00
|
|
|
{
|
|
|
|
"action": "rep",
|
2024-02-22 00:41:07 +08:00
|
|
|
"from": "Dummy",
|
2023-09-02 19:56:50 +08:00
|
|
|
"to": "${projectName}",
|
2019-11-23 20:27:39 +08:00
|
|
|
"files": [
|
2023-02-24 00:17:36 +08:00
|
|
|
"proj.android/settings.gradle",
|
|
|
|
"proj.android/app/res/values/strings.xml",
|
2024-02-22 00:41:07 +08:00
|
|
|
"proj.android/app/AndroidManifest.xml",
|
|
|
|
"proj.winrt/Package.appxmanifest",
|
|
|
|
"proj.winrt/App.xaml",
|
2023-09-02 19:56:50 +08:00
|
|
|
"CMakeLists.txt",
|
2024-02-22 00:41:07 +08:00
|
|
|
"config.json",
|
|
|
|
"Dummy.xsxproj"
|
2023-09-02 19:56:33 +08:00
|
|
|
]
|
2023-09-01 16:31:14 +08:00
|
|
|
},
|
2023-09-02 19:56:50 +08:00
|
|
|
{
|
|
|
|
"action": "rep",
|
2024-02-22 00:41:07 +08:00
|
|
|
"from": "org.axmol.dummy",
|
2023-09-02 19:56:50 +08:00
|
|
|
"to": "${packageName}",
|
2019-11-23 20:27:39 +08:00
|
|
|
"files": [
|
2023-09-02 19:56:50 +08:00
|
|
|
"proj.android/app/build.gradle",
|
2023-11-28 10:24:33 +08:00
|
|
|
"CMakeLists.txt"
|
2019-11-23 20:27:39 +08:00
|
|
|
]
|
2023-09-02 19:56:50 +08:00
|
|
|
},
|
|
|
|
{
|
2024-02-22 00:41:07 +08:00
|
|
|
"action": "cp",
|
|
|
|
"from": "$env:AX_ROOT/extensions/scripting/lua-bindings/script",
|
|
|
|
"to": "${projectDir}/Content/src/axmol",
|
|
|
|
"is_dir": true
|
2023-09-02 19:56:50 +08:00
|
|
|
},
|
|
|
|
{
|
2023-11-28 10:24:33 +08:00
|
|
|
"action": "cp",
|
2024-02-22 00:41:07 +08:00
|
|
|
"from": "$env:AX_ROOT/extensions/scripting/lua-bindings/manual/lua_module_register.h",
|
|
|
|
"to": "${projectDir}/Source/"
|
2023-09-02 19:56:50 +08:00
|
|
|
},
|
|
|
|
{
|
2024-02-22 00:41:07 +08:00
|
|
|
"action": "ren",
|
|
|
|
"from": "${projectDir}/Dummy.xsxproj",
|
|
|
|
"to": "${projectDir}/${projectName}.xsxproj"
|
2023-09-02 19:56:50 +08:00
|
|
|
},
|
|
|
|
{
|
2023-11-28 10:24:33 +08:00
|
|
|
"action": "del",
|
|
|
|
"files": [
|
|
|
|
"axproj-template.json"
|
|
|
|
]
|
2023-09-02 19:56:50 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"do_portrait": [
|
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"pattern": "\\\"isLandscape\\\"\\s*:.*,",
|
|
|
|
"to": "`\"isLandscape`\": false,",
|
2023-11-28 10:24:33 +08:00
|
|
|
"files": [
|
|
|
|
"config.json"
|
|
|
|
]
|
2023-09-02 19:56:50 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"pattern": "width\\s*=.*,",
|
|
|
|
"to": "width = 640,",
|
2023-11-28 10:24:33 +08:00
|
|
|
"files": [
|
|
|
|
"Content/src/config.lua"
|
|
|
|
]
|
2023-09-02 19:56:50 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"pattern": "height\\s*=.*,",
|
|
|
|
"to": "height = 960,",
|
2023-11-28 10:24:33 +08:00
|
|
|
"files": [
|
|
|
|
"Content/src/config.lua"
|
|
|
|
]
|
2023-09-02 19:56:50 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"from": "UIInterfaceOrientationLandscapeRight",
|
|
|
|
"to": "UIInterfaceOrientationPortrait",
|
2023-11-28 10:24:33 +08:00
|
|
|
"files": [
|
|
|
|
"proj.ios_mac/ios/targets/ios/Info.plist"
|
|
|
|
]
|
2023-09-02 19:56:50 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"from": "UIInterfaceOrientationLandscapeLeft",
|
|
|
|
"to": "UIInterfaceOrientationPortraitUpsideDown",
|
2023-11-28 10:24:33 +08:00
|
|
|
"files": [
|
|
|
|
"proj.ios_mac/ios/targets/ios/Info.plist"
|
|
|
|
]
|
2023-09-02 19:56:50 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"pattern": "android:screenOrientation=\\\".*\\\"",
|
|
|
|
"to": "android:screenOrientation=`\"portrait`\"",
|
2023-11-28 10:24:33 +08:00
|
|
|
"files": [
|
|
|
|
"proj.android/app/AndroidManifest.xml"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"pattern": "orientation=\\\".*\\\"",
|
|
|
|
"to": "orientation=`\"portrait`\"",
|
|
|
|
"files": [
|
|
|
|
"proj.ios_mac/ios/targets/ios/LaunchScreen.storyboard"
|
|
|
|
]
|
|
|
|
},
|
2023-11-28 18:45:54 +08:00
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"pattern": "image name=\\\".*\\\" width=\\\".*\\\" height=\\\".*\\\"",
|
|
|
|
"to": "image name=`\"LaunchScreenBackground.png`\" width=`\"1242`\" height=`\"2208`\"",
|
|
|
|
"files": [
|
|
|
|
"proj.ios_mac/ios/targets/ios/LaunchScreen.storyboard"
|
|
|
|
]
|
|
|
|
},
|
2023-11-28 10:24:33 +08:00
|
|
|
{
|
|
|
|
"action": "cp",
|
2023-11-28 18:45:54 +08:00
|
|
|
"from": "${projectDir}/proj.ios_mac/ios/targets/ios/LaunchScreenBackgroundPortrait.png",
|
|
|
|
"to": "${projectDir}/proj.ios_mac/ios/targets/ios/LaunchScreenBackground.png"
|
2023-11-28 10:24:33 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "del",
|
|
|
|
"files": [
|
2023-11-28 18:45:54 +08:00
|
|
|
"proj.ios_mac/ios/targets/ios/LaunchScreenBackgroundPortrait.png"
|
2023-11-28 10:24:33 +08:00
|
|
|
]
|
2019-11-23 20:27:39 +08:00
|
|
|
}
|
2023-09-02 19:56:50 +08:00
|
|
|
]
|
2019-11-23 20:27:39 +08:00
|
|
|
}
|