-
Notifications
You must be signed in to change notification settings - Fork 22
/
cocos-project-template.json
129 lines (128 loc) · 5.81 KB
/
cocos-project-template.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"do_default":{
"append_x_engine":{
"from":"./cocos2d",
"to":"cocos2d"
},
"project_rename":{
"src_project_name":"HelloVR",
"files":[
"proj.win32/PROJECT_NAME.vcxproj",
"proj.win32/PROJECT_NAME.vcxproj.filters",
"proj.win32/PROJECT_NAME.vcxproj.user",
"proj.win32/PROJECT_NAME.sln",
"proj.ios_mac/PROJECT_NAME.xcodeproj",
"proj.win8.1-universal/PROJECT_NAME.sln",
"proj.win8.1-universal/App.Shared/PROJECT_NAME.Shared.vcxitems",
"proj.win8.1-universal/App.Shared/PROJECT_NAME.Shared.vcxitems.filters",
"proj.win8.1-universal/App.Windows/PROJECT_NAME.Windows_TemporaryKey.pfx",
"proj.win8.1-universal/App.Windows/PROJECT_NAME.Windows.vcxproj",
"proj.win8.1-universal/App.Windows/PROJECT_NAME.Windows.vcxproj.filters",
"proj.win8.1-universal/App.WindowsPhone/PROJECT_NAME.WindowsPhone.vcxproj",
"proj.win8.1-universal/App.WindowsPhone/PROJECT_NAME.WindowsPhone.vcxproj.filters",
"proj.win10/PROJECT_NAME.sln",
"proj.win10/App/PROJECT_NAME.vcxproj",
"proj.win10/App/PROJECT_NAME.vcxproj.filters",
"proj.win10/App/PROJECT_NAME_TemporaryKey.pfx"
]
},
"project_replace_project_name":{
"src_project_name":"HelloVR",
"files":[
"Classes/AppDelegate.cpp",
"proj.win32/PROJECT_NAME.vcxproj",
"proj.win32/PROJECT_NAME.vcxproj.filters",
"proj.win32/PROJECT_NAME.vcxproj.user",
"proj.win32/PROJECT_NAME.sln",
"proj.win32/main.cpp",
"proj.win8.1-universal/PROJECT_NAME.sln",
"proj.win8.1-universal/App.Shared/PROJECT_NAME.Shared.vcxitems",
"proj.win8.1-universal/App.Windows/PROJECT_NAME.Windows.vcxproj",
"proj.win8.1-universal/App.Windows/PROJECT_NAME.Windows.vcxproj.filters",
"proj.win8.1-universal/App.Windows/Package.appxmanifest",
"proj.win8.1-universal/App.WindowsPhone/PROJECT_NAME.WindowsPhone.vcxproj",
"proj.win8.1-universal/App.WindowsPhone/PROJECT_NAME.WindowsPhone.vcxproj.filters",
"proj.win8.1-universal/App.WindowsPhone/Package.appxmanifest",
"proj.android/.project",
"proj.android/.cproject",
"proj.android/AndroidManifest.xml",
"proj.android/build.xml",
"proj.android/res/values/strings.xml",
"proj.android-studio/settings.gradle",
"proj.android-studio/app/res/values/strings.xml",
"proj.ios_mac/ios/main.m",
"proj.ios_mac/ios/Prefix.pch",
"proj.ios_mac/PROJECT_NAME.xcodeproj/project.pbxproj",
"proj.win10/PROJECT_NAME.sln",
"proj.win10/App/PROJECT_NAME.vcxproj",
"proj.win10/App/PROJECT_NAME.vcxproj.filters",
"proj.win10/App/Package.appxmanifest",
"CMakeLists.txt"
]
},
"project_replace_package_name":{
"src_package_name":"org.cocos2dx.HelloVR",
"files":[
"proj.android/AndroidManifest.xml",
"proj.android-studio/app/build.gradle",
"proj.android-studio/app/AndroidManifest.xml"
]
},
"project_replace_mac_bundleid": {
"src_bundle_id": "org.cocos2dx.HelloVR",
"files": [
"proj.ios_mac/mac/Info.plist"
]
},
"project_replace_ios_bundleid": {
"src_bundle_id": "org.cocos2dx.HelloVR",
"files": [
"proj.ios_mac/ios/Info.plist"
]
}
},
"change_orientation": {
"modify_files": [
{
"file_path": "Classes/AppDelegate.cpp",
"pattern": "static\\s+cocos2d\\:\\:Size\\s+([a-zA-Z_\\d]+)\\s*=\\s*cocos2d\\:\\:Size\\(\\s*(\\d+),\\s*(\\d+)\\)",
"replace_string": "static cocos2d::Size \\1 = cocos2d::Size(\\3, \\2)"
},
{
"file_path": "proj.ios_mac/ios/Info.plist",
"pattern": "UIInterfaceOrientationLandscapeRight",
"replace_string": "UIInterfaceOrientationPortrait"
},
{
"file_path": "proj.ios_mac/ios/Info.plist",
"pattern": "UIInterfaceOrientationLandscapeLeft",
"replace_string": "UIInterfaceOrientationPortraitUpsideDown"
},
{
"file_path": "proj.android/AndroidManifest.xml",
"pattern": "android:screenOrientation=\\\".*\\\"",
"replace_string": "android:screenOrientation=\"portrait\""
},
{
"file_path": "proj.android-studio/app/AndroidManifest.xml",
"pattern": "android:screenOrientation=\\\".*\\\"",
"replace_string": "android:screenOrientation=\"portrait\""
},
{
"file_path": "proj.win10/App/Package.appxmanifest",
"pattern": "Rotation Preference=\\\"landscape",
"replace_string": "Rotation Preference=\"portrait"
},
{
"file_path": "proj.win8.1-universal/App.Windows/Package.appxmanifest",
"pattern": "Rotation Preference=\\\"landscape",
"replace_string": "Rotation Preference=\"portrait"
},
{
"file_path": "proj.win8.1-universal/App.WindowsPhone/Package.appxmanifest",
"pattern": "Rotation Preference=\\\"landscape",
"replace_string": "Rotation Preference=\"portrait"
}
]
}
}