mirror of https://github.com/axmolengine/axmol.git
106 lines
3.3 KiB
JSON
106 lines
3.3 KiB
JSON
{
|
|
"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",
|
|
"CMakeLists.txt"
|
|
]
|
|
},
|
|
{
|
|
"action": "cp",
|
|
"from": "$env:AX_ROOT/templates/build.bat",
|
|
"to": "${projectDir}/"
|
|
},
|
|
{
|
|
"action": "cp",
|
|
"from": "$env:AX_ROOT/templates/run.bat.in",
|
|
"to": "${projectDir}/"
|
|
},
|
|
{
|
|
"action": "del",
|
|
"files": [
|
|
"axproj-template.json"
|
|
]
|
|
}
|
|
],
|
|
"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"
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
]
|
|
}
|
|
]
|
|
}
|