2019-11-23 20:27:39 +08:00
|
|
|
{
|
2023-09-02 19:56:50 +08:00
|
|
|
"do_default": [
|
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"from": "HelloCpp",
|
|
|
|
"to": "${projectName}",
|
|
|
|
"files": [
|
|
|
|
"Source/AppDelegate.cpp",
|
|
|
|
"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",
|
|
|
|
"CMakeLists.txt",
|
|
|
|
"proj.android/app/AndroidManifest.xml"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"from": "org.axmol.hellocpp",
|
|
|
|
"to": "${packageName}",
|
|
|
|
"files": [
|
|
|
|
"proj.android/app/build.gradle",
|
|
|
|
"proj.android/app/AndroidManifest.xml",
|
|
|
|
"proj.ios_mac/mac/Info.plist",
|
|
|
|
"proj.ios_mac/ios/targets/ios/Info.plist",
|
|
|
|
"proj.ios_mac/ios/targets/tvos/Info.plist"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "cp",
|
2023-09-07 22:39:15 +08:00
|
|
|
"from": "$env:AX_ROOT/templates/build.bat",
|
2023-09-02 19:56:50 +08:00
|
|
|
"to": "${projectDir}/"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "cp",
|
|
|
|
"from": "$env:AX_ROOT/templates/run.bat.in",
|
|
|
|
"to": "${projectDir}/"
|
2019-11-23 20:27:39 +08:00
|
|
|
},
|
2023-09-02 19:56:50 +08:00
|
|
|
{
|
|
|
|
"action": "del",
|
|
|
|
"files": [
|
|
|
|
"axproj-template.json",
|
|
|
|
"axproj2-template.json"
|
2019-11-23 20:27:39 +08:00
|
|
|
]
|
|
|
|
}
|
2023-09-02 19:56:50 +08:00
|
|
|
],
|
|
|
|
"do_portrait": [
|
|
|
|
{
|
|
|
|
"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": "static\\s+ax\\:\\:Size\\s+([a-zA-Z_\\d]+)\\s*=\\s*ax\\:\\:Size\\(\\s*(\\d+),\\s*(\\d+)\\)",
|
|
|
|
"to": "static ax::Size `$1 = ax::Size(`$3, `$2)",
|
|
|
|
"files": ["Source/AppDelegate.cpp"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "rep",
|
|
|
|
"pattern": "android:screenOrientation=\\\".*\\\"",
|
|
|
|
"to": "android:screenOrientation=`\"portrait`\"",
|
|
|
|
"files": ["proj.android/app/AndroidManifest.xml"]
|
|
|
|
}
|
|
|
|
]
|
2019-11-23 20:27:39 +08:00
|
|
|
}
|