Commit 454cbced authored by Tt's avatar Tt

meta

parent dbd87590
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "0644b079-4147-489d-ad68-72f2ca1ffe1e", "uuid": "f8fcbc87-1e5f-4ecc-8901-9304c0508ef8",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "cb9fa4ea-66ca-45af-ad31-e445c7b0ef32", "uuid": "bc6cd503-0f6c-438d-9160-8dfb0f94613e",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "d7ee13c8-7c6f-4ed4-bf81-c85ae91edfa9", "uuid": "06b5903d-7518-4557-83bf-e6cbd8a21b5e",
"downloadMode": 0, "downloadMode": 0,
"duration": 7.74, "duration": 7.74,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "fc2be55f-3d94-44e0-9ebf-09e0eaa47873", "uuid": "c9739cb5-88c5-4d2d-b70a-8242cf7a50be",
"downloadMode": 0, "downloadMode": 0,
"duration": 10.944, "duration": 10.944,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "4d2df5f4-a774-4e06-a410-4e38195952ad", "uuid": "aa1651af-195f-496e-94b8-30803995ddef",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.972, "duration": 0.972,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "0d2dd7a8-9bc2-4cd5-a432-a13f8fb43033", "uuid": "cd03fbbb-bae4-4770-b78c-14cf6dfdd4d8",
"downloadMode": 0, "downloadMode": 0,
"duration": 1.188, "duration": 1.188,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "a544c1e7-32f5-4754-95a2-823398db0dcc", "uuid": "e34c63cc-e6c3-4cf0-a638-ed0a959821a3",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.287347, "duration": 0.287347,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "293ae196-a9b5-4da0-a0b6-597baa25f7b1", "uuid": "fbe26765-0578-4869-98c7-cfd9c0c38ba7",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.365714, "duration": 0.365714,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "b733b7d3-4082-4320-9fe0-2ce28088b687", "uuid": "f95b1d6c-c14b-487a-8a07-605b14510208",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.966531, "duration": 0.966531,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "e87d3f15-54b2-4a37-9793-9923fa34fda9", "uuid": "266f613c-2c23-4f19-b790-804eb26f2bc1",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.626939, "duration": 0.626939,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "d9be9283-652e-44da-98d6-680406e71a03", "uuid": "e72ca4d9-3c4f-404c-b122-e3b68f9237f6",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.168, "duration": 0.168,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "7bf9c308-8dd5-411d-8770-ddc8341386d0", "uuid": "9ea86391-43ec-4be6-9778-86cc84f5651b",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.39185, "duration": 0.39185,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "0853721c-3f55-4eb2-873d-e3081cfadd4b", "uuid": "f5209677-183a-42bf-a082-558a5237a532",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "ac17bb63-beac-4d42-bc52-1d53b848082f", "uuid": "6ba97d78-86fa-4cc6-82ee-4bc5a8e1e993",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.0.1", "ver": "1.0.1",
"uuid": "42cb15db-315a-4d11-9814-0fe5f8808a72", "uuid": "c8b3abec-edc3-4d74-8cf4-e305f2eec883",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "1.0.1", "ver": "1.0.1",
"uuid": "b2242a6f-c54f-4b2d-8151-89a713576e41", "uuid": "a5a1fa11-3a51-4ee9-a5b4-2d578850e0d8",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "c8f02f6a-80f7-4712-8a8c-26db0a90ab03", "uuid": "35fe652f-4670-472b-ac71-40a039e072b9",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"mao_tex": { "mao_tex": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "837a88a0-d171-4421-8e58-63a525eabc62", "uuid": "2facbe16-71dc-4db1-aeeb-0f9d762e10aa",
"rawTextureUuid": "c8f02f6a-80f7-4712-8a8c-26db0a90ab03", "rawTextureUuid": "35fe652f-4670-472b-ac71-40a039e072b9",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "70b06f27-303c-4ea7-ab54-90e916ebd541", "uuid": "54a81905-a5cc-420d-8bca-2d266cf3702b",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.0.1", "ver": "1.0.1",
"uuid": "bce4f069-c7dc-4d7c-bdae-9528d291dc83", "uuid": "c22a8350-4cb3-4228-a643-d306668a4273",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "1.0.1", "ver": "1.0.1",
"uuid": "6edbd32c-4733-466b-a910-5cf85b3eaef8", "uuid": "84b89413-963c-4bc2-a463-f4aa9b21d981",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "c138e5ff-6afa-4eef-8c24-7308cc6e2f7b", "uuid": "b863ba99-3b99-424f-8526-7f65336674be",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"烟花_tex": { "烟花_tex": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "91a38a51-4650-4bb3-89db-b1827ed75bf2", "uuid": "96e3ad18-b292-413b-b2f7-35d8561885c6",
"rawTextureUuid": "c138e5ff-6afa-4eef-8c24-7308cc6e2f7b", "rawTextureUuid": "b863ba99-3b99-424f-8526-7f65336674be",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "20185448-a1ca-4de2-8b37-7bf6cdfccbae", "uuid": "98384acc-f407-430e-b7e2-2ce9cf026512",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.1.0", "ver": "1.1.0",
"uuid": "c551970e-b095-45f3-9f1d-25cde8b8deb1", "uuid": "d2da988b-9de1-42cb-83f0-d78586685ea7",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "e8bd16b0-3804-45a9-a8ca-f52c02224f55", "uuid": "64795d2e-f020-471b-b8f9-3ba28070259e",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"autoReleaseAssets": true, "autoReleaseAssets": true,
"_id": "074720a3-f261-4ae9-9af1-1adabd8f4c6d" "_id": "742a0a48-593b-473b-a582-f3888324c81b"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -425,7 +425,7 @@ ...@@ -425,7 +425,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "97f1d65d-ea03-4276-acd5-7fc3ebbb125c" "__uuid__": "81e4b4f2-3c83-4a8a-8c7c-39d5d2fff044"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 0, "_sizeMode": 0,
...@@ -549,7 +549,7 @@ ...@@ -549,7 +549,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "a6e219f9-4946-4b9b-b638-6e160a0df435" "__uuid__": "5b6f5434-8274-47bb-8bfe-0677dda0e859"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 0, "_sizeMode": 0,
...@@ -673,7 +673,7 @@ ...@@ -673,7 +673,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "3468d78d-e7e3-4876-b449-64423a774323" "__uuid__": "0ab7fa35-1678-4ab5-a60a-f8b58547ad51"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -797,7 +797,7 @@ ...@@ -797,7 +797,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "e84554ff-b59e-49a7-a7cd-f573b0a828c2" "__uuid__": "6105074d-7282-41a3-b4d8-b6302134a0d7"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -921,7 +921,7 @@ ...@@ -921,7 +921,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "87675918-d434-4db9-8ce4-228f911d989e" "__uuid__": "d6aa297b-d13a-4c33-b348-808f0adb4478"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -1042,7 +1042,7 @@ ...@@ -1042,7 +1042,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "b793b0d3-fd30-4d34-8264-28821c329c1d" "__uuid__": "83b6dc20-bff7-419d-a45a-d40fa1f1b78d"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 0, "_sizeMode": 0,
...@@ -1139,7 +1139,7 @@ ...@@ -1139,7 +1139,7 @@
"_cacheMode": 0, "_cacheMode": 0,
"playTimes": -1, "playTimes": -1,
"premultipliedAlpha": false, "premultipliedAlpha": false,
"_armatureKey": "bce4f069-c7dc-4d7c-bdae-9528d291dc83#6edbd32c-4733-466b-a910-5cf85b3eaef8", "_armatureKey": "c22a8350-4cb3-4228-a643-d306668a4273#84b89413-963c-4bc2-a463-f4aa9b21d981",
"_accTime": 0, "_accTime": 0,
"_playCount": 0, "_playCount": 0,
"_frameCache": null, "_frameCache": null,
...@@ -1147,10 +1147,10 @@ ...@@ -1147,10 +1147,10 @@
"_playing": false, "_playing": false,
"_armatureCache": null, "_armatureCache": null,
"_N$dragonAsset": { "_N$dragonAsset": {
"__uuid__": "bce4f069-c7dc-4d7c-bdae-9528d291dc83" "__uuid__": "c22a8350-4cb3-4228-a643-d306668a4273"
}, },
"_N$dragonAtlasAsset": { "_N$dragonAtlasAsset": {
"__uuid__": "6edbd32c-4733-466b-a910-5cf85b3eaef8" "__uuid__": "84b89413-963c-4bc2-a463-f4aa9b21d981"
}, },
"_N$_defaultArmatureIndex": 0, "_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1, "_N$_animationIndex": 1,
...@@ -1296,7 +1296,7 @@ ...@@ -1296,7 +1296,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "33fc1308-9256-403d-a9fc-1567ef02f890" "__uuid__": "d74e555a-ca30-4daa-94da-f1a2937f21a1"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 0, "_sizeMode": 0,
...@@ -1454,7 +1454,7 @@ ...@@ -1454,7 +1454,7 @@
"_srcBlendFactor": 1, "_srcBlendFactor": 1,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "b9d7ec09-fa5f-4f90-be2c-e8d035b0f74d" "__uuid__": "812ccb53-cb51-435b-9f9c-25a6b53f9bcf"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -1649,7 +1649,7 @@ ...@@ -1649,7 +1649,7 @@
"_srcBlendFactor": 1, "_srcBlendFactor": 1,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "e666ed9c-0ebf-4802-8d58-7473ddde1634" "__uuid__": "abe51019-2116-415d-bdca-701500843ba7"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -1910,7 +1910,7 @@ ...@@ -1910,7 +1910,7 @@
"_cacheMode": 0, "_cacheMode": 0,
"playTimes": -1, "playTimes": -1,
"premultipliedAlpha": false, "premultipliedAlpha": false,
"_armatureKey": "42cb15db-315a-4d11-9814-0fe5f8808a72#b2242a6f-c54f-4b2d-8151-89a713576e41", "_armatureKey": "c8b3abec-edc3-4d74-8cf4-e305f2eec883#a5a1fa11-3a51-4ee9-a5b4-2d578850e0d8",
"_accTime": 0, "_accTime": 0,
"_playCount": 0, "_playCount": 0,
"_frameCache": null, "_frameCache": null,
...@@ -1918,10 +1918,10 @@ ...@@ -1918,10 +1918,10 @@
"_playing": false, "_playing": false,
"_armatureCache": null, "_armatureCache": null,
"_N$dragonAsset": { "_N$dragonAsset": {
"__uuid__": "42cb15db-315a-4d11-9814-0fe5f8808a72" "__uuid__": "c8b3abec-edc3-4d74-8cf4-e305f2eec883"
}, },
"_N$dragonAtlasAsset": { "_N$dragonAtlasAsset": {
"__uuid__": "b2242a6f-c54f-4b2d-8151-89a713576e41" "__uuid__": "a5a1fa11-3a51-4ee9-a5b4-2d578850e0d8"
}, },
"_N$_defaultArmatureIndex": 0, "_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 3, "_N$_animationIndex": 3,
...@@ -2274,7 +2274,7 @@ ...@@ -2274,7 +2274,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "75bb0910-bb15-4daf-9a6d-6873c400a148" "__uuid__": "a0c510e8-ad89-472b-b36f-3a727fc56a12"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -2368,7 +2368,7 @@ ...@@ -2368,7 +2368,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "75bb0910-bb15-4daf-9a6d-6873c400a148" "__uuid__": "a0c510e8-ad89-472b-b36f-3a727fc56a12"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -2462,7 +2462,7 @@ ...@@ -2462,7 +2462,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "c2f5963d-2ed1-4add-91b8-f3c4ff0d893e" "__uuid__": "c56c2950-ffa4-47b7-91f5-fb774bb50b48"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -2494,7 +2494,7 @@ ...@@ -2494,7 +2494,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "c2f5963d-2ed1-4add-91b8-f3c4ff0d893e" "__uuid__": "c56c2950-ffa4-47b7-91f5-fb774bb50b48"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -2677,7 +2677,7 @@ ...@@ -2677,7 +2677,7 @@
"_id": "29zXboiXFBKoIV4PQ2liTe" "_id": "29zXboiXFBKoIV4PQ2liTe"
}, },
{ {
"__type__": "0e7205TFJ1Pjogb2tsB2COD", "__type__": "db033slSw9J4LqVGKFrVxC0",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
...@@ -2940,7 +2940,7 @@ ...@@ -2940,7 +2940,7 @@
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
"__uuid__": "d9be9283-652e-44da-98d6-680406e71a03" "__uuid__": "e72ca4d9-3c4f-404c-b122-e3b68f9237f6"
}, },
"_volume": 1, "_volume": 1,
"_mute": false, "_mute": false,
...@@ -3021,7 +3021,7 @@ ...@@ -3021,7 +3021,7 @@
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
"__uuid__": "a544c1e7-32f5-4754-95a2-823398db0dcc" "__uuid__": "e34c63cc-e6c3-4cf0-a638-ed0a959821a3"
}, },
"_volume": 1, "_volume": 1,
"_mute": false, "_mute": false,
...@@ -3102,7 +3102,7 @@ ...@@ -3102,7 +3102,7 @@
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
"__uuid__": "e87d3f15-54b2-4a37-9793-9923fa34fda9" "__uuid__": "266f613c-2c23-4f19-b790-804eb26f2bc1"
}, },
"_volume": 1, "_volume": 1,
"_mute": false, "_mute": false,
...@@ -3183,7 +3183,7 @@ ...@@ -3183,7 +3183,7 @@
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
"__uuid__": "7bf9c308-8dd5-411d-8770-ddc8341386d0" "__uuid__": "9ea86391-43ec-4be6-9778-86cc84f5651b"
}, },
"_volume": 1, "_volume": 1,
"_mute": false, "_mute": false,
...@@ -3264,7 +3264,7 @@ ...@@ -3264,7 +3264,7 @@
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
"__uuid__": "293ae196-a9b5-4da0-a0b6-597baa25f7b1" "__uuid__": "fbe26765-0578-4869-98c7-cfd9c0c38ba7"
}, },
"_volume": 1, "_volume": 1,
"_mute": false, "_mute": false,
...@@ -3345,7 +3345,7 @@ ...@@ -3345,7 +3345,7 @@
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
"__uuid__": "b733b7d3-4082-4320-9fe0-2ce28088b687" "__uuid__": "f95b1d6c-c14b-487a-8a07-605b14510208"
}, },
"_volume": 1, "_volume": 1,
"_mute": false, "_mute": false,
...@@ -3426,7 +3426,7 @@ ...@@ -3426,7 +3426,7 @@
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
"__uuid__": "4d2df5f4-a774-4e06-a410-4e38195952ad" "__uuid__": "aa1651af-195f-496e-94b8-30803995ddef"
}, },
"_volume": 1, "_volume": 1,
"_mute": false, "_mute": false,
...@@ -3507,7 +3507,7 @@ ...@@ -3507,7 +3507,7 @@
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
"__uuid__": "0d2dd7a8-9bc2-4cd5-a432-a13f8fb43033" "__uuid__": "cd03fbbb-bae4-4770-b78c-14cf6dfdd4d8"
}, },
"_volume": 1, "_volume": 1,
"_mute": false, "_mute": false,
...@@ -3588,7 +3588,7 @@ ...@@ -3588,7 +3588,7 @@
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
"__uuid__": "d7ee13c8-7c6f-4ed4-bf81-c85ae91edfa9" "__uuid__": "06b5903d-7518-4557-83bf-e6cbd8a21b5e"
}, },
"_volume": 1, "_volume": 1,
"_mute": false, "_mute": false,
...@@ -3669,7 +3669,7 @@ ...@@ -3669,7 +3669,7 @@
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
"__uuid__": "fc2be55f-3d94-44e0-9ebf-09e0eaa47873" "__uuid__": "c9739cb5-88c5-4d2d-b70a-8242cf7a50be"
}, },
"_volume": 1, "_volume": 1,
"_mute": false, "_mute": false,
......
{ {
"ver": "1.2.9", "ver": "1.2.9",
"uuid": "074720a3-f261-4ae9-9af1-1adabd8f4c6d", "uuid": "742a0a48-593b-473b-a582-f3888324c81b",
"asyncLoadAssets": false, "asyncLoadAssets": false,
"autoReleaseAssets": true, "autoReleaseAssets": true,
"subMetas": {} "subMetas": {}
......
...@@ -303,7 +303,7 @@ cc.Class({ ...@@ -303,7 +303,7 @@ cc.Class({
const box = cc.find('Canvas/bg/box'); const box = cc.find('Canvas/bg/box');
//copy-start 把物品的父节点换到中间的box上。 //TODO:copy-start 把物品的父节点换到中间的box上。
const box_mid = cc.find('Canvas/bg/box_mid'); const box_mid = cc.find('Canvas/bg/box_mid');
let children = box.children.concat(box_mid.children); let children = box.children.concat(box_mid.children);
if (children.every(child => child.optionData.selected == child.optionData.is_right)) { if (children.every(child => child.optionData.selected == child.optionData.is_right)) {
...@@ -519,6 +519,7 @@ cc.Class({ ...@@ -519,6 +519,7 @@ cc.Class({
resetGame() { resetGame() {
this.initData(); this.initData();
this.initView(); this.initView();
this.initListener();
this.hideRestartBtn(); this.hideRestartBtn();
}, },
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "0e720e53-149d-4f8e-881b-dadb01d82383", "uuid": "db033b25-4b0f-49e0-ba95-18a16b5710b4",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "b0c008bc-cf92-463b-8360-0984e13c2e4d", "uuid": "ba75bd3b-633a-4dfd-8dc4-28ed5c42f730",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "c41b0e51-55d7-443c-af3a-b22c3dd9b9e5", "uuid": "91fd9bef-8b16-4457-98f5-d75ab16e41cd",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "b54300af-b8e5-4b4e-aa2f-9ac1cef7b598", "uuid": "efd53289-d420-4f63-a957-2804be594fd7",
"isPlugin": true, "isPlugin": true,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "ade7af40-d56d-4087-bbc6-2888fef55353", "uuid": "77404e46-e97e-44c6-bdc8-e6643e6dc641",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "8ba21262-178f-4fa5-afc9-2c1dd50ba3ab", "uuid": "db61f467-05ac-466a-b733-03e26e29aff8",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "6c8e488b-9cdf-4d20-89c5-4d432d8a2e23", "uuid": "938cc81f-454b-4d44-a0fa-8be4647342b1",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_bg": { "bg_bg": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "95074812-ffd9-4326-9008-60a88279bd2e", "uuid": "868ff6fb-024e-448d-b38b-d9690b77654b",
"rawTextureUuid": "6c8e488b-9cdf-4d20-89c5-4d432d8a2e23", "rawTextureUuid": "938cc81f-454b-4d44-a0fa-8be4647342b1",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "e5d8b6de-dae4-4605-9f8f-8584b745b7f2", "uuid": "4b1a3384-93e8-4455-8d53-5969f24bf24a",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_box_behind": { "bg_box_behind": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "83ae63f9-5160-4995-af20-110757bb4d21", "uuid": "1306c628-a573-47ee-9358-56983a247c04",
"rawTextureUuid": "e5d8b6de-dae4-4605-9f8f-8584b745b7f2", "rawTextureUuid": "4b1a3384-93e8-4455-8d53-5969f24bf24a",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "66f6b898-e326-4bab-89e3-78997d049e47", "uuid": "894b9cc4-1993-499e-a392-bbc2f353b41a",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_box_front": { "bg_box_front": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "2b44a5d3-fe98-49c2-9099-8400d48c17c9", "uuid": "06d7c07a-154e-4094-bf4e-6a242e3b77ec",
"rawTextureUuid": "66f6b898-e326-4bab-89e3-78997d049e47", "rawTextureUuid": "894b9cc4-1993-499e-a392-bbc2f353b41a",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "40a7f7d6-3f30-46c7-b9e4-1d5fcfc0c648", "uuid": "7fba08a4-8877-4c62-8e0d-8b395c29fb67",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_circle": { "bg_circle": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "75bb0910-bb15-4daf-9a6d-6873c400a148", "uuid": "a0c510e8-ad89-472b-b36f-3a727fc56a12",
"rawTextureUuid": "40a7f7d6-3f30-46c7-b9e4-1d5fcfc0c648", "rawTextureUuid": "7fba08a4-8877-4c62-8e0d-8b395c29fb67",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "e5a3f41e-df6e-4314-9db7-0771939bb4d6", "uuid": "d060212f-0b11-4868-8879-d0af24f33afb",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_deck": { "bg_deck": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "3d584bab-9dfe-4922-8dc7-821b4f063796", "uuid": "cd474ac1-786d-41c0-865e-f03ba5515f7c",
"rawTextureUuid": "e5a3f41e-df6e-4314-9db7-0771939bb4d6", "rawTextureUuid": "d060212f-0b11-4868-8879-d0af24f33afb",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "e6d712f3-3bc6-4a7b-a140-9016e0628f67", "uuid": "75062625-0eb7-4c4e-897b-c8c5f2344341",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"btn_next": { "btn_next": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "e666ed9c-0ebf-4802-8d58-7473ddde1634", "uuid": "abe51019-2116-415d-bdca-701500843ba7",
"rawTextureUuid": "e6d712f3-3bc6-4a7b-a140-9016e0628f67", "rawTextureUuid": "75062625-0eb7-4c4e-897b-c8c5f2344341",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "87cc865a-7ac0-44b4-8919-3b01f815748f", "uuid": "2ee40e6c-b892-417f-899b-7f736d14ee47",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"btn_replay": { "btn_replay": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "c2f5963d-2ed1-4add-91b8-f3c4ff0d893e", "uuid": "c56c2950-ffa4-47b7-91f5-fb774bb50b48",
"rawTextureUuid": "87cc865a-7ac0-44b4-8919-3b01f815748f", "rawTextureUuid": "2ee40e6c-b892-417f-899b-7f736d14ee47",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "552ce11c-0f7d-4146-8c78-23fc7cd917cb", "uuid": "e552357a-2106-4afe-bc43-1f764f4fe1dd",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"btn_return": { "btn_return": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "70f3d2ee-ca1d-49fd-84dd-3cdc8164fba0", "uuid": "6136a1d0-a0ec-46d3-ac73-dd8808318be1",
"rawTextureUuid": "552ce11c-0f7d-4146-8c78-23fc7cd917cb", "rawTextureUuid": "e552357a-2106-4afe-bc43-1f764f4fe1dd",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "52a666fa-b2b9-41a0-8254-1ff8ef313a43", "uuid": "8d226b74-bf5a-4b13-b6d4-6e2c61264c8b",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"btn_submit": { "btn_submit": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "b9d7ec09-fa5f-4f90-be2c-e8d035b0f74d", "uuid": "812ccb53-cb51-435b-9f9c-25a6b53f9bcf",
"rawTextureUuid": "52a666fa-b2b9-41a0-8254-1ff8ef313a43", "rawTextureUuid": "8d226b74-bf5a-4b13-b6d4-6e2c61264c8b",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "77e39803-4b9e-4735-aad5-98a2054bca4d", "uuid": "8e15806d-2377-471c-bc93-ceb0769a4fc3",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "3c28c3e3-3241-4a69-a8cc-c69596312b21", "uuid": "a6009639-f8f1-480b-9edc-7bb946f7633b",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_bg": { "bg_bg": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "97f1d65d-ea03-4276-acd5-7fc3ebbb125c", "uuid": "81e4b4f2-3c83-4a8a-8c7c-39d5d2fff044",
"rawTextureUuid": "3c28c3e3-3241-4a69-a8cc-c69596312b21", "rawTextureUuid": "a6009639-f8f1-480b-9edc-7bb946f7633b",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "8823c170-967d-416f-b65b-f297baa16bb2", "uuid": "c1ad0d46-5990-43dd-a334-2a9dd4f07af9",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_box_behind": { "bg_box_behind": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "b793b0d3-fd30-4d34-8264-28821c329c1d", "uuid": "83b6dc20-bff7-419d-a45a-d40fa1f1b78d",
"rawTextureUuid": "8823c170-967d-416f-b65b-f297baa16bb2", "rawTextureUuid": "c1ad0d46-5990-43dd-a334-2a9dd4f07af9",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "964bbe0d-3431-4e1b-a704-db4a78fe0fac", "uuid": "d37319a9-dbd2-4407-9b31-d0e83e884134",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_box_front": { "bg_box_front": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "33fc1308-9256-403d-a9fc-1567ef02f890", "uuid": "d74e555a-ca30-4daa-94da-f1a2937f21a1",
"rawTextureUuid": "964bbe0d-3431-4e1b-a704-db4a78fe0fac", "rawTextureUuid": "d37319a9-dbd2-4407-9b31-d0e83e884134",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "cce12600-aa0b-43dd-a056-21100aeea8db", "uuid": "91410f22-ebf5-4752-b503-a9575883ed4b",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_deck": { "bg_deck": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "a6e219f9-4946-4b9b-b638-6e160a0df435", "uuid": "5b6f5434-8274-47bb-8bfe-0677dda0e859",
"rawTextureUuid": "cce12600-aa0b-43dd-a056-21100aeea8db", "rawTextureUuid": "91410f22-ebf5-4752-b503-a9575883ed4b",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "17449abf-084e-4208-adbf-2d4aa25dbfc0", "uuid": "9e684510-a78c-4e81-affc-e9050a8a61fb",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_left": { "bg_left": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "3468d78d-e7e3-4876-b449-64423a774323", "uuid": "0ab7fa35-1678-4ab5-a60a-f8b58547ad51",
"rawTextureUuid": "17449abf-084e-4208-adbf-2d4aa25dbfc0", "rawTextureUuid": "9e684510-a78c-4e81-affc-e9050a8a61fb",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "3ce8ae56-e8e5-4fd2-9660-2a74a4c039e8", "uuid": "df4fc028-882a-4fe6-a770-5d2dc296b835",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_right": { "bg_right": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "e84554ff-b59e-49a7-a7cd-f573b0a828c2", "uuid": "6105074d-7282-41a3-b4d8-b6302134a0d7",
"rawTextureUuid": "3ce8ae56-e8e5-4fd2-9660-2a74a4c039e8", "rawTextureUuid": "df4fc028-882a-4fe6-a770-5d2dc296b835",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "ee21a24d-a03f-4280-8dd7-99ffa7531c19", "uuid": "0eeeb02c-8386-4897-bee0-40ede6bcc09d",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_top": { "bg_top": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "87675918-d434-4db9-8ce4-228f911d989e", "uuid": "d6aa297b-d13a-4c33-b348-808f0adb4478",
"rawTextureUuid": "ee21a24d-a03f-4280-8dd7-99ffa7531c19", "rawTextureUuid": "0eeeb02c-8386-4897-bee0-40ede6bcc09d",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
const { spawn } = require("child_process"); const { spawn } = require("child_process");
const fs = require("fs"); const fs = require("fs");
const compressing = require('compressing'); const compressing = require('compressing');
const { v4, parse } = require('uuid'); const { v4, parse } = require('uuid');
const { Base64 } = require('js-base64'); const { Base64 } = require('js-base64');
const { copyDir, removeDir, fix2 } = require("./utils"); const { copyDir, removeDir, fix2 } = require("./utils");
async function buildForm() { async function buildForm() {
const paths = fs.readdirSync('form'); const paths = fs.readdirSync('form');
...@@ -52,7 +52,7 @@ function execCmd(cmd, params, path) { ...@@ -52,7 +52,7 @@ function execCmd(cmd, params, path) {
} }
let creatorBasePath = 'CocosCreator'; let creatorBasePath = 'D:\\work\\CocosDashboard_1.0.9\\resources\\.editors\\Creator\\2.4.5\\CocosCreator.exe';
if (process.platform !== 'win32') { if (process.platform !== 'win32') {
creatorBasePath = "/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/MacOS/CocosCreator"; creatorBasePath = "/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/MacOS/CocosCreator";
} }
...@@ -128,10 +128,10 @@ async function buildWebBundle() { ...@@ -128,10 +128,10 @@ async function buildWebBundle() {
await buildCocos(args); await buildCocos(args);
} }
function createConfigFile (projectName, type) { function createConfigFile(projectName, type) {
let iosVersion = ""; let iosVersion = "";
let androidVersion = ""; let androidVersion = "";
if(!type){ if (!type) {
const androidPaths = fs.readdirSync(`dist/android/${projectName}`); const androidPaths = fs.readdirSync(`dist/android/${projectName}`);
const androidConfigFileName = androidPaths.find(path => path.indexOf('config') == 0); const androidConfigFileName = androidPaths.find(path => path.indexOf('config') == 0);
androidVersion = androidConfigFileName.split('.')[1]; androidVersion = androidConfigFileName.split('.')[1];
...@@ -139,17 +139,17 @@ function createConfigFile (projectName, type) { ...@@ -139,17 +139,17 @@ function createConfigFile (projectName, type) {
const iosConfigFileName = iosPaths.find(path => path.indexOf('config') == 0); const iosConfigFileName = iosPaths.find(path => path.indexOf('config') == 0);
iosVersion = iosConfigFileName.split('.')[1]; iosVersion = iosConfigFileName.split('.')[1];
} else { } else {
if(type=="android"){ if (type == "android") {
const androidPaths = fs.readdirSync(`dist/android/${projectName}`); const androidPaths = fs.readdirSync(`dist/android/${projectName}`);
const androidConfigFileName = androidPaths.find(path => path.indexOf('config') == 0); const androidConfigFileName = androidPaths.find(path => path.indexOf('config') == 0);
androidVersion = androidConfigFileName.split('.')[1]; androidVersion = androidConfigFileName.split('.')[1];
}else{ } else {
const iosPaths = fs.readdirSync(`dist/ios/${projectName}`); const iosPaths = fs.readdirSync(`dist/ios/${projectName}`);
const iosConfigFileName = iosPaths.find(path => path.indexOf('config') == 0); const iosConfigFileName = iosPaths.find(path => path.indexOf('config') == 0);
iosVersion = iosConfigFileName.split('.')[1]; iosVersion = iosConfigFileName.split('.')[1];
} }
} }
const config = { const config = {
"ios": { "ios": {
"sceneName": projectName, "sceneName": projectName,
...@@ -164,7 +164,7 @@ function createConfigFile (projectName, type) { ...@@ -164,7 +164,7 @@ function createConfigFile (projectName, type) {
fs.writeFileSync('dist/config.json', JSON.stringify(config)); fs.writeFileSync('dist/config.json', JSON.stringify(config));
} }
function compressAll (projectName) { function compressAll(projectName) {
const tarStream = new compressing.zip.Stream(); const tarStream = new compressing.zip.Stream();
tarStream.addEntry('dist/play'); tarStream.addEntry('dist/play');
tarStream.addEntry('dist/form'); tarStream.addEntry('dist/form');
...@@ -176,7 +176,7 @@ function compressAll (projectName) { ...@@ -176,7 +176,7 @@ function compressAll (projectName) {
tarStream.pipe(destStream); tarStream.pipe(destStream);
} }
function build_check () { function build_check() {
const dirNames = process.cwd().split(/\/|\\/); const dirNames = process.cwd().split(/\/|\\/);
const projectName = dirNames[dirNames.length - 1]; const projectName = dirNames[dirNames.length - 1];
const path = 'assets' const path = 'assets'
...@@ -211,58 +211,22 @@ function build_check () { ...@@ -211,58 +211,22 @@ function build_check () {
return projectName; return projectName;
} }
function changeSettingToWebDesktop () { function changeSettingToWebDesktop() {
const path = 'assets' const path = 'assets'
const folderName = getFolderName(path); const folderName = getFolderName(path);
editFolderMeta(path, folderName, false); editFolderMeta(path, folderName, false);
} }
function changeSettingsToBundle () { function changeSettingsToBundle() {
const path = 'assets' const path = 'assets'
const folderName = getFolderName(path); const folderName = getFolderName(path);
editFolderMeta(path, folderName, true); editFolderMeta(path, folderName, true);
} }
function replaceUuids () { async function replaceUuids() {
console.log('build_step_0 开始~!'); console.log('build_step_0 开始~!');
const path = 'assets'
function getFolderName(path) {
let folderName = '';
fs.readdirSync(path).find(fileName => {
const st = fs.statSync(`${path}/${fileName}`);
if (st.isDirectory()) {
folderName = fileName;
}
});
return folderName;
}
const folderName = getFolderName(path);
let oldFireUuid = '';
let oldJsUuid = '';
let oldJsShortUuid = '';
let oldJsId = '';
const fireMetaStr = fs.readFileSync(`assets/${folderName}/scene/${folderName}.fire.meta`);
if (fireMetaStr.indexOf('57ea7c61-9b8b-498a-b024-c98ee9124beb') > 0) {
// 老Cocos脚手架
oldFireUuid = '57ea7c61-9b8b-498a-b024-c98ee9124beb';
oldJsUuid = 'f4ede462-f8d7-4069-ba80-915611c058ca';
oldJsShortUuid = 'f4edeRi+NdAabqAkVYRwFjK';
oldJsId = 'e687yyoRBIzZAOVRL8Sseh';
}
if (fireMetaStr.indexOf('0737ce42-24f0-45c6-8e1a-8bdab4f74ba3') > 0) {
// 新Cocos脚手架
oldFireUuid = '0737ce42-24f0-45c6-8e1a-8bdab4f74ba3';
oldJsUuid = '408a67f8-65fa-4cf1-8cf2-83e20e1a0fd5';
oldJsShortUuid = '408a6f4ZfpM8Yzyg+IOGg/V';
oldJsId = 'eaTVUpqahPfZeO9+sUI7RP';
}
if (oldFireUuid === '') {
return;
}
function editFolderMeta(path, folderName) { function editFolderMeta(path, folderName) {
const metaPath = `${path}/${folderName}.meta`; const metaPath = `${path}/${folderName}.meta`;
const metaDataStr = fs.readFileSync(metaPath); const metaDataStr = fs.readFileSync(metaPath);
...@@ -274,7 +238,6 @@ function replaceUuids () { ...@@ -274,7 +238,6 @@ function replaceUuids () {
if (!fs.existsSync(path)) { if (!fs.existsSync(path)) {
return; return;
} }
const fileStr = fs.readFileSync(path); const fileStr = fs.readFileSync(path);
const newFileStr = fileStr.toString().replace(new RegExp(replaceStr.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), 'g'), newStr); const newFileStr = fileStr.toString().replace(new RegExp(replaceStr.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), 'g'), newStr);
fs.writeFileSync(path, newFileStr); fs.writeFileSync(path, newFileStr);
...@@ -284,26 +247,92 @@ function replaceUuids () { ...@@ -284,26 +247,92 @@ function replaceUuids () {
return uuid.substring(0, 5) + Base64.fromUint8Array(bytes).substring(2); return uuid.substring(0, 5) + Base64.fromUint8Array(bytes).substring(2);
} }
editFolderMeta(path, folderName); const path = 'assets'
function getFolderName(path) {
let folderName = '';
fs.readdirSync(path).find(fileName => {
const st = fs.statSync(`${path}/${fileName}`);
if (st.isDirectory()) {
folderName = fileName;
}
});
return folderName;
}
const newFireUuid = v4(); async function fileForEach(src, func) {
fileReplace(`assets/${folderName}/scene/${folderName}.fire.meta`, oldFireUuid, newFireUuid); //读取目录
fileReplace(`assets/${folderName}/scene/${folderName}.fire`, oldFireUuid, newFireUuid); const st = fs.statSync(src);
fileReplace('settings/builder.json', oldFireUuid, newFireUuid); if (st.isFile()) {
await func(src);
return;
}
const paths = fs.readdirSync(src);
for (let i = 0; i < paths.length; i++) {
let path = paths[i];
const newSrc = `${src}/${path}`;
const st = fs.statSync(newSrc);
if (st.isFile()) {
await func(newSrc);
} else if (st.isDirectory()) {
await fileForEach(newSrc, func);
}
}
}
function createUuidData(uuid) {
const shortUuid = getShortUuid(uuid);
const newUuid = v4();
const newShortUuid = getShortUuid(newUuid);
return {
oldUuid: uuid,
oldShortUuid: shortUuid,
newUuid: newUuid,
newShortUuid: newShortUuid,
};
}
const newJsUuid = v4(); const uuidList = [];
const newJsShortUuid = getShortUuid(newJsUuid); await fileForEach(path, (path) => {
const newJsId = v4().replace(/-/g, '').substring(0, oldJsId.length); const nameList = path.split('.');
fileReplace(`assets/${folderName}/scene/${folderName}.ts.meta`, oldJsUuid, newJsUuid); if (nameList[nameList.length - 1] == 'meta') {
fileReplace(`assets/${folderName}/scene/${folderName}.js.meta`, oldJsUuid, newJsUuid); const data = JSON.parse(fs.readFileSync(path));
fileReplace(`assets/${folderName}/scene/${folderName}.fire`, oldFireUuid, newFireUuid); uuidList.push(createUuidData(data.uuid));
fileReplace(`assets/${folderName}/scene/${folderName}.fire`, oldJsShortUuid, newJsShortUuid); if (data.subMetas) {
fileReplace(`assets/${folderName}/scene/${folderName}.fire`, oldJsId, newJsId); for (const key in data.subMetas) {
const subMet = data.subMetas[key];
if (subMet.uuid) {
uuidList.push(createUuidData(subMet.uuid));
}
}
}
}
});
const pathList = [path, 'settings', 'project.json'];
for (let i = 0; i < pathList.length; i++) {
const path = pathList[i];
await fileForEach(path, (path) => {
const nameList = path.split('.');
const expectNameList = ['png', 'jpg', 'mp3', 'wav'];
if (expectNameList.includes(nameList[nameList.length - 1])) {
return;
}
const data = fs.readFileSync(path);
uuidList.forEach(uuiddata => {
if (data.includes(uuiddata.oldUuid)) {
fileReplace(path, uuiddata.oldUuid, uuiddata.newUuid);
}
if (data.includes(uuiddata.oldShortUuid)) {
fileReplace(path, uuiddata.oldShortUuid, uuiddata.newShortUuid);
}
});
});
}
console.log('build_step_0 完成~!'); console.log('build_step_0 完成~!');
} }
function replaceIndexHtml () { function replaceIndexHtml() {
const data = fs.readFileSync('index.html'); const data = fs.readFileSync('index.html');
fs.writeFileSync('dist/play/index.html', data); fs.writeFileSync('dist/play/index.html', data);
} }
...@@ -313,63 +342,63 @@ module.exports = { ...@@ -313,63 +342,63 @@ module.exports = {
build: async function () { build: async function () {
const startTime = new Date().getTime(); const startTime = new Date().getTime();
// 构建前检查 // 构建前检查
const projectName = build_check(); const projectName = build_check();
// 清理旧文件 // 清理旧文件
// 构建form // 构建form
await removeDir('dist/form'); // await removeDir('dist/form');
await buildForm(); // await buildForm();
// 替换uuid // 替换uuid
replaceUuids(); await replaceUuids();
// 改设置为非bundle
changeSettingToWebDesktop();
// 构建play
await removeDir('dist/play');
await buildWebDesktop();
await copyDir('build/web-desktop', 'dist/play');
replaceIndexHtml();
console.log('构建 web desktop 成功!');
// 改设置为bundle
changeSettingsToBundle();
await removeDir('dist/android');
await buildAndroidBundle();
await copyDir('build_android/jsb-link/remote', 'dist/android');
console.log('构建 android bundle 成功!');
await removeDir('dist/ios');
await buildIosBundle();
await copyDir('build_ios/jsb-link/remote', 'dist/ios');
console.log('构建 ios bundle 成功!');
await removeDir('dist/web_desktop');
await buildWebBundle();
await copyDir(`build_web_desktop/web-desktop/assets/${projectName}`, 'dist/web_desktop');
console.log('构建 web bundle 成功!');
// 改设置为非bundle // 改设置为非bundle
changeSettingToWebDesktop(); // changeSettingToWebDesktop();
createConfigFile(projectName);
compressAll(projectName);
await removeDir('build'); // // 构建play
await removeDir('build_android'); // await removeDir('dist/play');
await removeDir('build_ios'); // await buildWebDesktop();
await removeDir('build_web_desktop'); // await copyDir('build/web-desktop', 'dist/play');
// replaceIndexHtml();
// console.log('构建 web desktop 成功!');
// // 改设置为bundle
// changeSettingsToBundle();
// await removeDir('dist/android');
// await buildAndroidBundle();
// await copyDir('build_android/jsb-link/remote', 'dist/android');
// console.log('构建 android bundle 成功!');
const endTime = new Date().getTime(); // await removeDir('dist/ios');
const duration = new Date(endTime - startTime); // await buildIosBundle();
console.log(`打包完成!`); // await copyDir('build_ios/jsb-link/remote', 'dist/ios');
console.log(`用时${duration.getMinutes()}${duration.getSeconds()}秒。`); // console.log('构建 ios bundle 成功!');
// await removeDir('dist/web_desktop');
// await buildWebBundle();
// await copyDir(`build_web_desktop/web-desktop/assets/${projectName}`, 'dist/web_desktop');
// console.log('构建 web bundle 成功!');
// // 改设置为非bundle
// changeSettingToWebDesktop();
// createConfigFile(projectName);
// compressAll(projectName);
// await removeDir('build');
// await removeDir('build_android');
// await removeDir('build_ios');
// await removeDir('build_web_desktop');
// const endTime = new Date().getTime();
// const duration = new Date(endTime - startTime);
// console.log(`打包完成!`);
// console.log(`用时${duration.getMinutes()}分${duration.getSeconds()}秒。`);
}, },
buildAndroid: async function () { buildAndroid: async function () {
...@@ -377,14 +406,14 @@ module.exports = { ...@@ -377,14 +406,14 @@ module.exports = {
// 构建前检查 // 构建前检查
const projectName = build_check(); const projectName = build_check();
// 替换uuid // 替换uuid
replaceUuids(); await replaceUuids();
// 改设置为bundle // 改设置为bundle
changeSettingsToBundle(); changeSettingsToBundle();
await removeDir('dist/android'); await removeDir('dist/android');
await buildAndroidBundle(); await buildAndroidBundle();
await copyDir('build_android/jsb-link/remote', 'dist/android'); await copyDir('build_android/jsb-link/remote', 'dist/android');
// 改设置为非bundle // 改设置为非bundle
changeSettingToWebDesktop(); changeSettingToWebDesktop();
createConfigFile(projectName, "android"); createConfigFile(projectName, "android");
...@@ -397,10 +426,10 @@ module.exports = { ...@@ -397,10 +426,10 @@ module.exports = {
// 构建前检查 // 构建前检查
const projectName = build_check(); const projectName = build_check();
// 替换uuid // 替换uuid
replaceUuids(); await replaceUuids();
// 改设置为bundle // 改设置为bundle
changeSettingsToBundle(); changeSettingsToBundle();
await removeDir('dist/ios'); await removeDir('dist/ios');
await buildIosBundle(); await buildIosBundle();
await copyDir('build_ios/jsb-link/remote', 'dist/ios'); await copyDir('build_ios/jsb-link/remote', 'dist/ios');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment