axmol/templates/lua/axproj-template.json

144 lines
4.2 KiB
JSON
Raw Normal View History

2019-11-23 20:27:39 +08:00
{
"do_default": [
{
"action": "cp",
"from": "$env:AX_ROOT/templates/common/*",
"to": "${projectDir}/",
"is_dir": true
},
{
"action": "cp",
"from": "$env:AX_ROOT/.clang-format",
"to": "${projectDir}/"
},
{
"action": "cp",
"from": "$env:AX_ROOT/.editorconfig",
"to": "${projectDir}/"
},
{
"action": "rep",
"from": "Dummy",
"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",
"proj.android/app/AndroidManifest.xml",
"proj.winrt/Package.appxmanifest",
"proj.winrt/App.xaml",
"CMakeLists.txt",
"config.json",
"Dummy.xsxproj"
2023-09-02 19:56:33 +08:00
]
},
{
"action": "rep",
"from": "org.axmol.dummy",
"to": "${packageName}",
2019-11-23 20:27:39 +08:00
"files": [
"proj.android/app/build.gradle",
"CMakeLists.txt"
2019-11-23 20:27:39 +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/"
},
{
"action": "ren",
"from": "${projectDir}/Dummy.xsxproj",
"to": "${projectDir}/${projectName}.xsxproj"
},
{
"action": "del",
"files": [
"axproj-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"
]
},
{
"action": "rep",
"pattern": "orientation=\\\".*\\\"",
"to": "orientation=`\"portrait`\"",
"files": [
"proj.ios_mac/ios/targets/ios/LaunchScreen.storyboard"
]
},
{
"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"
]
},
{
"action": "cp",
"from": "${projectDir}/proj.ios_mac/ios/targets/ios/LaunchScreenBackgroundPortrait.png",
"to": "${projectDir}/proj.ios_mac/ios/targets/ios/LaunchScreenBackground.png"
},
{
"action": "del",
"files": [
"proj.ios_mac/ios/targets/ios/LaunchScreenBackgroundPortrait.png"
]
2019-11-23 20:27:39 +08:00
}
]
2019-11-23 20:27:39 +08:00
}