Commit b7e7522d authored by limingzhe's avatar limingzhe

fix: uuid

parent 2c654327
{ {"ver":"1.1.2","uuid":"6942433e-4084-45fe-8f8b-6e874d95c3ba","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
"ver": "1.1.2", \ No newline at end of file
"uuid": "551f3197-dce7-4bd2-a290-e784ab1d271a",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "cb9fa4ea-66ca-45af-ad31-e445c7b0ef32", "uuid": "90f13ec5-7206-4bce-b513-64fa335eae04",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "ee4ab879-bb2e-4351-887a-d63651305737", "uuid": "7bef2f7e-dfe7-467a-a68c-68181797ce28",
"downloadMode": 0, "downloadMode": 0,
"duration": 1.476, "duration": 1.476,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "98c9432f-962f-4d0a-8548-382b4e22b33e", "uuid": "c99a28ed-9e7e-498e-b7c0-74138b6a8057",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.168, "duration": 0.168,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "1.0.1", "ver": "1.0.1",
"uuid": "f05c5856-4bbf-4a16-86dc-42a999b85a10", "uuid": "a0c0dba1-06ee-47af-b82f-a11b971f77aa",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "616654f9-f059-4475-a5c8-c16f8ae28510", "uuid": "c440ea18-5294-4e3b-a53d-dca410747fa7",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.626939, "duration": 0.626939,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "8317732e-565e-4b5f-8021-190ff7ba427d", "uuid": "86bc383a-940b-41e5-a647-8e7b0621b001",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.365714, "duration": 0.365714,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "2cfe31da-7088-483a-b4a4-4c385f425896", "uuid": "32dbc067-86a2-4087-a812-0e7d9ed23f7b",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.972, "duration": 0.972,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "d7c7c1c2-b419-4848-b006-d53f8fb66071", "uuid": "a626ae3c-57f9-4e60-b493-c7a515f76615",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.864, "duration": 0.864,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "ac1c4f2f-b8a5-4276-ac02-328d57c329a5", "uuid": "da1d8111-44f5-44b3-88b0-16b0312aee0e",
"downloadMode": 0, "downloadMode": 0,
"duration": 1.188, "duration": 1.188,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "1.0.1", "ver": "1.0.1",
"uuid": "ddb7b5bb-8a40-4ba5-b16b-bae45b1da380", "uuid": "11ed8514-3230-4888-ac78-54bd2198de75",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "8e5dee94-edd4-44d5-bb05-798f0d436886", "uuid": "2d357d5c-0b68-4ce1-9f12-d543bceb13d6",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.365714, "duration": 0.365714,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "97ca1d92-03be-469f-adff-758682ad46ab", "uuid": "8e06cb5b-6844-4662-8157-0bb8e7f3ea74",
"downloadMode": 0, "downloadMode": 0,
"duration": 1.188, "duration": 1.188,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "7fc4afe9-9e57-42bd-a355-2f4143c11216", "uuid": "ec9d7116-66e1-4175-a8e8-b299ebc6c99e",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.936, "duration": 0.936,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "0853721c-3f55-4eb2-873d-e3081cfadd4b", "uuid": "3d02615c-30e0-4d69-9b13-140dc05569ee",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "6679e31f-b07a-4500-8c8d-a82c8493a4c4", "uuid": "a9550de0-62dd-48b5-a47f-2512db779aab",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.0.1", "ver": "1.0.1",
"uuid": "600b0af1-92f2-4139-8ae5-b53eb5cd9bec", "uuid": "e0192e0c-d68c-45ae-8c37-d39d017fe794",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "1.0.1", "ver": "1.0.1",
"uuid": "da99fa22-02ff-4d47-a6d2-34d0447f83db", "uuid": "dd381cea-1c16-4527-a09f-868f5cb00d48",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "bfb55d5d-2afe-468f-baf4-5190c9310f99", "uuid": "37ad4356-c17c-44c0-88f8-87f62928fb3c",
"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": "d0882ce3-0831-4bc1-befd-3856e5ba0ca7", "uuid": "c90cdec4-fee6-463a-99fa-55fe30125043",
"rawTextureUuid": "bfb55d5d-2afe-468f-baf4-5190c9310f99", "rawTextureUuid": "37ad4356-c17c-44c0-88f8-87f62928fb3c",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "de93dea6-de18-4f49-abf1-86bd2ea3662b", "uuid": "7067d668-4069-498b-9a0f-1cf982c48a6c",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.0.1", "ver": "1.0.1",
"uuid": "8549fef3-5ffa-4e88-9496-13fe5201e87d", "uuid": "f9a2ba81-f8f0-4298-b223-79002a7f0aae",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "1.0.1", "ver": "1.0.1",
"uuid": "27736c82-e8ad-4ec9-9aa8-93dd4278069b", "uuid": "a8c882e9-b7af-4160-bc64-1085db9e3689",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "c2512365-4d01-4adf-8d7f-8795350351bc", "uuid": "8085a20d-dc34-4a94-97c9-690b4d242b85",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"lion_tex": { "lion_tex": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "f2fec664-8c69-43fb-a0f1-d63abfebf8f0", "uuid": "f185bfff-c778-4067-a8d0-02b40e340299",
"rawTextureUuid": "c2512365-4d01-4adf-8d7f-8795350351bc", "rawTextureUuid": "8085a20d-dc34-4a94-97c9-690b4d242b85",
"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": "fb17df0a-b707-4b9b-95ff-4f9d245f9e24",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.1.0", "ver": "1.1.0",
"uuid": "e012dbb9-b2af-4912-928a-4c116ab481a2", "uuid": "d34d1cc2-9092-4be4-b457-8183ff72bad9",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "e8bd16b0-3804-45a9-a8ca-f52c02224f55", "uuid": "42749017-72ed-4da6-978b-afd79b0484c7",
"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": false, "autoReleaseAssets": false,
"_id": "c0ae4d78-ee2f-4c93-8923-048b80f19b07" "_id": "87dadb8f-29d6-454b-af49-024981a023ad"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -362,7 +362,7 @@ ...@@ -362,7 +362,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "d0478540-d5e5-49a2-bc19-ab35a9e6b403" "__uuid__": "259199b1-48d7-412c-915f-6bc8dc9a9e80"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -539,7 +539,7 @@ ...@@ -539,7 +539,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "372057e0-7d8d-4dac-b690-2bd98514ae7a" "__uuid__": "990c91bc-5fd9-40d4-b269-d66b83ff7a8c"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -912,7 +912,7 @@ ...@@ -912,7 +912,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "5bb2bddc-57f4-49fc-9ab4-0d4583cb903b" "__uuid__": "cfc52836-a3b4-4a9c-8315-39b6cbbce772"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -1207,7 +1207,7 @@ ...@@ -1207,7 +1207,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "34014b86-5854-4b25-81a5-7f74c9241368" "__uuid__": "5d7f014d-5053-405c-a568-047a6733cc50"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -1301,7 +1301,7 @@ ...@@ -1301,7 +1301,7 @@
"__id__": 2 "__id__": 2
}, },
"component": "", "component": "",
"_componentId": "8b0b7lMf15OlIK40chbxp64", "_componentId": "cc767V8tWlA26Rkr8a6W2XJ",
"handler": "onBtnReStart", "handler": "onBtnReStart",
"customEventData": "" "customEventData": ""
}, },
...@@ -1383,7 +1383,7 @@ ...@@ -1383,7 +1383,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "2b74a4ab-b3be-4c0d-b986-b99ec48ea911" "__uuid__": "988058a5-7365-4cd8-b755-13b71a1bdf5c"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -1635,7 +1635,7 @@ ...@@ -1635,7 +1635,7 @@
"__id__": 2 "__id__": 2
}, },
"component": "", "component": "",
"_componentId": "8b0b7lMf15OlIK40chbxp64", "_componentId": "cc767V8tWlA26Rkr8a6W2XJ",
"handler": "onBtnCheckCat", "handler": "onBtnCheckCat",
"customEventData": "" "customEventData": ""
}, },
...@@ -1658,7 +1658,7 @@ ...@@ -1658,7 +1658,7 @@
"_cacheMode": 0, "_cacheMode": 0,
"playTimes": -1, "playTimes": -1,
"premultipliedAlpha": false, "premultipliedAlpha": false,
"_armatureKey": "600b0af1-92f2-4139-8ae5-b53eb5cd9bec#da99fa22-02ff-4d47-a6d2-34d0447f83db", "_armatureKey": "e0192e0c-d68c-45ae-8c37-d39d017fe794#dd381cea-1c16-4527-a09f-868f5cb00d48",
"_accTime": 0, "_accTime": 0,
"_playCount": 0, "_playCount": 0,
"_frameCache": null, "_frameCache": null,
...@@ -1666,10 +1666,10 @@ ...@@ -1666,10 +1666,10 @@
"_playing": false, "_playing": false,
"_armatureCache": null, "_armatureCache": null,
"_N$dragonAsset": { "_N$dragonAsset": {
"__uuid__": "600b0af1-92f2-4139-8ae5-b53eb5cd9bec" "__uuid__": "e0192e0c-d68c-45ae-8c37-d39d017fe794"
}, },
"_N$dragonAtlasAsset": { "_N$dragonAtlasAsset": {
"__uuid__": "da99fa22-02ff-4d47-a6d2-34d0447f83db" "__uuid__": "dd381cea-1c16-4527-a09f-868f5cb00d48"
}, },
"_N$_defaultArmatureIndex": 0, "_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0, "_N$_animationIndex": 0,
...@@ -1871,7 +1871,7 @@ ...@@ -1871,7 +1871,7 @@
"_id": "27oJBo5bZCIpkH3vJkrEF7" "_id": "27oJBo5bZCIpkH3vJkrEF7"
}, },
{ {
"__type__": "ab520ccsGNNxY+Qe3caTQ5o", "__type__": "8b9dbDC0fpKa77RilKSAsi+",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
...@@ -1880,34 +1880,34 @@ ...@@ -1880,34 +1880,34 @@
"_enabled": true, "_enabled": true,
"eff_audio": [ "eff_audio": [
{ {
"__uuid__": "616654f9-f059-4475-a5c8-c16f8ae28510" "__uuid__": "c440ea18-5294-4e3b-a53d-dca410747fa7"
}, },
{ {
"__uuid__": "98c9432f-962f-4d0a-8548-382b4e22b33e" "__uuid__": "c99a28ed-9e7e-498e-b7c0-74138b6a8057"
}, },
{ {
"__uuid__": "ee4ab879-bb2e-4351-887a-d63651305737" "__uuid__": "7bef2f7e-dfe7-467a-a68c-68181797ce28"
}, },
{ {
"__uuid__": "ac1c4f2f-b8a5-4276-ac02-328d57c329a5" "__uuid__": "da1d8111-44f5-44b3-88b0-16b0312aee0e"
}, },
{ {
"__uuid__": "2cfe31da-7088-483a-b4a4-4c385f425896" "__uuid__": "32dbc067-86a2-4087-a812-0e7d9ed23f7b"
}, },
{ {
"__uuid__": "d7c7c1c2-b419-4848-b006-d53f8fb66071" "__uuid__": "a626ae3c-57f9-4e60-b493-c7a515f76615"
}, },
{ {
"__uuid__": "97ca1d92-03be-469f-adff-758682ad46ab" "__uuid__": "8e06cb5b-6844-4662-8157-0bb8e7f3ea74"
}, },
{ {
"__uuid__": "7fc4afe9-9e57-42bd-a355-2f4143c11216" "__uuid__": "ec9d7116-66e1-4175-a8e8-b299ebc6c99e"
}, },
{ {
"__uuid__": "8317732e-565e-4b5f-8021-190ff7ba427d" "__uuid__": "86bc383a-940b-41e5-a647-8e7b0621b001"
}, },
{ {
"__uuid__": "8e5dee94-edd4-44d5-bb05-798f0d436886" "__uuid__": "2d357d5c-0b68-4ce1-9f12-d543bceb13d6"
} }
], ],
"_id": "b6mbjgRkRFnaxtyq52WlFU" "_id": "b6mbjgRkRFnaxtyq52WlFU"
...@@ -2221,7 +2221,7 @@ ...@@ -2221,7 +2221,7 @@
"_lineHeight": 100, "_lineHeight": 100,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": { "_N$file": {
"__uuid__": "e012dbb9-b2af-4912-928a-4c116ab481a2" "__uuid__": "d34d1cc2-9092-4be4-b457-8183ff72bad9"
}, },
"_isSystemFontUsed": false, "_isSystemFontUsed": false,
"_spacingX": 0, "_spacingX": 0,
...@@ -2254,7 +2254,7 @@ ...@@ -2254,7 +2254,7 @@
"_id": "b1pyIp0vBLB4zIBXRBEiMT" "_id": "b1pyIp0vBLB4zIBXRBEiMT"
}, },
{ {
"__type__": "e729bOHnRpHpJ09B2/R3cNg", "__type__": "ef8f69j/S9PCKDbSvT6yTms",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
...@@ -2314,7 +2314,7 @@ ...@@ -2314,7 +2314,7 @@
"_id": "29zXboiXFBKoIV4PQ2liTe" "_id": "29zXboiXFBKoIV4PQ2liTe"
}, },
{ {
"__type__": "8b0b7lMf15OlIK40chbxp64", "__type__": "cc767V8tWlA26Rkr8a6W2XJ",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
...@@ -2348,7 +2348,7 @@ ...@@ -2348,7 +2348,7 @@
"_id": "81gKWTbrREiJRzfyjAWVUZ" "_id": "81gKWTbrREiJRzfyjAWVUZ"
}, },
{ {
"__type__": "0e963+p6iFJLqmukqM6jHRW", "__type__": "78b53WiEsZHvbtuZsQ7kyBw",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
...@@ -2372,7 +2372,7 @@ ...@@ -2372,7 +2372,7 @@
"_id": "5eOVDDzARGnoMLcNXyk5ml" "_id": "5eOVDDzARGnoMLcNXyk5ml"
}, },
{ {
"__type__": "0df3ats5ixH+KeRVgc97Mrt", "__type__": "5fc3cMmDDpCxYEaJiLltcbF",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
......
{ {
"ver": "1.2.9", "ver": "1.2.9",
"uuid": "c0ae4d78-ee2f-4c93-8923-048b80f19b07", "uuid": "87dadb8f-29d6-454b-af49-024981a023ad",
"asyncLoadAssets": false, "asyncLoadAssets": false,
"autoReleaseAssets": false, "autoReleaseAssets": false,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "8b0b794c-7f5e-4e94-82b8-d1c85bc69eb8", "uuid": "cc76757c-b569-40db-a464-afc6ba5b65c9",
"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": "5954bc55-549f-4c51-8a0b-2cda7f1f7f2c",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "5c5117fc-a35a-442f-b2f5-0c431572d3c2", "uuid": "83559c3c-c9dd-4881-b4ae-edcdafdf460c",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "a9bcccd1-c2b7-4db1-8744-3c0fcb95b824", "uuid": "bb19a84e-5e24-4a51-b89d-03187b679f35",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "872df374-a19c-4662-9d3d-1f85329b5d49", "uuid": "1904daf8-2118-416d-a51f-2cf892c50a2a",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "3cf09c30-536f-42ae-83bb-cbb3c5cd93eb", "uuid": "6f50b371-dda0-4594-a316-1e4b6b180e4f",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "0e963fa9-ea21-492e-a9ae-92a33a8c7456", "uuid": "78b535a2-12c6-47bd-bb6e-66c43b932070",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "39d2496b-65e0-4525-8411-51d9926950b8", "uuid": "d952f2ac-94c2-44a6-b710-8ad50b8cf49f",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "0df3ab6c-e62c-47f8-a791-56073deccaed", "uuid": "5fc3c326-0c3a-42c5-811a-2622e5b5c6c5",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "abd266cd-33d4-4036-8f6a-950c340d5fed", "uuid": "78a109cb-33be-49c0-b296-78fbf71bea71",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "ccc66642-cf0e-4b1b-ae3d-c4b18f4fe53a", "uuid": "42bf6796-b52e-42ac-9e41-48404510e6b6",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "3965d960-0cbf-4158-af67-3ddc4ae03225", "uuid": "12eb888c-243e-4dc3-a5d6-a0325e1f9f53",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "e729b387-9d1a-47a4-9d3d-076fd1ddc360", "uuid": "ef8f6f63-fd2f-4f08-a0db-4af4fac939ac",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "e5afe4a3-c16b-4f1d-acd8-c5eb68d573b3", "uuid": "49960dba-efad-4c9a-bf26-20b8a8136268",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "ab52071c-b063-4dc5-8f90-7b771a4d0e68", "uuid": "8b9db0c2-d1fa-4a6b-bed1-8a529202c8be",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "782b613f-5fb8-4c6f-83ca-c4db95389092", "uuid": "ba84c712-101b-4e88-b2f8-d7dbb9651595",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "91e03520-a8ad-4317-a914-1850e6e64926", "uuid": "8bd99b2e-930f-46cc-a6af-bf94cbc7419a",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "b8bf01c9-341f-4994-91ea-ff45a2f9d150", "uuid": "50b4dd1a-42f3-4fbe-9fcf-cdaf35f1e15f",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "0d515142-090e-49ac-aea8-19c7b34f8cb4", "uuid": "46950301-3530-448f-82f2-1b325f8552c2",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "7121d1fd-fef5-46f9-ae16-ffc9aa7f5e16", "uuid": "362ce23e-aff0-4096-88ff-8fc09aaa224f",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "fb034e6e-0e2d-4e5e-8a3a-b9a12ff90a0d", "uuid": "679cabd6-0c66-4307-bfca-c763cb1c33ab",
"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": "630b55a4-eaa6-4da8-9a94-61d9b39fd4ef",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "9e9e22fe-ddcb-47d7-87ee-8c1e96e3ed61", "uuid": "6d52ef23-ae10-4316-b90d-e6333da05d22",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_back": { "bg_back": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "d0478540-d5e5-49a2-bc19-ab35a9e6b403", "uuid": "259199b1-48d7-412c-915f-6bc8dc9a9e80",
"rawTextureUuid": "9e9e22fe-ddcb-47d7-87ee-8c1e96e3ed61", "rawTextureUuid": "6d52ef23-ae10-4316-b90d-e6333da05d22",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "405ffc19-1281-4e7b-94b4-d3e545448c7c", "uuid": "4a17d8f1-820a-4cd2-8b1b-8737e98e2c92",
"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": "34014b86-5854-4b25-81a5-7f74c9241368", "uuid": "5d7f014d-5053-405c-a568-047a6733cc50",
"rawTextureUuid": "405ffc19-1281-4e7b-94b4-d3e545448c7c", "rawTextureUuid": "4a17d8f1-820a-4cd2-8b1b-8737e98e2c92",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "5690531e-4183-4315-946a-8b5fd69d2852", "uuid": "13ccad53-de00-4911-b1e7-40c3fd164046",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_grass": { "bg_grass": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "372057e0-7d8d-4dac-b690-2bd98514ae7a", "uuid": "990c91bc-5fd9-40d4-b269-d66b83ff7a8c",
"rawTextureUuid": "5690531e-4183-4315-946a-8b5fd69d2852", "rawTextureUuid": "13ccad53-de00-4911-b1e7-40c3fd164046",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "f1e28ade-3c0d-48ae-b9ba-972b1aa98587", "uuid": "d4be6316-0337-44ac-ae01-8bb13e5aa1ab",
"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": "385776b9-f855-4540-859a-8c65eefbe71e", "uuid": "e3dcc06b-81d7-48c8-9dc4-acf7f06afdcd",
"rawTextureUuid": "f1e28ade-3c0d-48ae-b9ba-972b1aa98587", "rawTextureUuid": "d4be6316-0337-44ac-ae01-8bb13e5aa1ab",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "2d128bd0-c993-40d4-88bb-6272f67864e1", "uuid": "dee12e45-6ef9-4f2e-814e-a29eea1386b6",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"btn_restart": { "btn_restart": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "2b74a4ab-b3be-4c0d-b986-b99ec48ea911", "uuid": "988058a5-7365-4cd8-b755-13b71a1bdf5c",
"rawTextureUuid": "2d128bd0-c993-40d4-88bb-6272f67864e1", "rawTextureUuid": "dee12e45-6ef9-4f2e-814e-a29eea1386b6",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "a7899d99-5186-496b-a752-e1199d3b7525", "uuid": "0a0f950b-8d6d-4838-bd92-a59ec6a8496e",
"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": "f4e82313-4af3-40ea-9cd6-f68566a09f8e", "uuid": "e97d7c3c-fd3a-4a2c-be07-e3c5b4a41d5f",
"rawTextureUuid": "a7899d99-5186-496b-a752-e1199d3b7525", "rawTextureUuid": "0a0f950b-8d6d-4838-bd92-a59ec6a8496e",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "f6a58feb-5abb-444d-9028-f2abc03e98fc", "uuid": "92f23e87-dd79-46c0-bbfe-5f92b2786ab9",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"icon_apple": { "icon_apple": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "b00115bd-9e93-419a-86fb-0bf80f8e410b", "uuid": "dbcf671c-4913-4a88-9301-4c96d2eb70b0",
"rawTextureUuid": "f6a58feb-5abb-444d-9028-f2abc03e98fc", "rawTextureUuid": "92f23e87-dd79-46c0-bbfe-5f92b2786ab9",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "b928bd5f-c95f-4f22-ae3e-a3fa57b0c85f", "uuid": "78f80464-b6cf-498d-8168-ac88cde5c61a",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"icon_hand": { "icon_hand": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "5bb2bddc-57f4-49fc-9ab4-0d4583cb903b", "uuid": "cfc52836-a3b4-4a9c-8315-39b6cbbce772",
"rawTextureUuid": "b928bd5f-c95f-4f22-ae3e-a3fa57b0c85f", "rawTextureUuid": "78f80464-b6cf-498d-8168-ac88cde5c61a",
"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 = 'C:\\CocosDashboard_1.0.6\\resources\\.editors\\Creator\\2.4.5\\CocosCreator.exe'; let creatorBasePath = 'CocosCreator';
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);
}
}
}
const newJsUuid = v4(); function createUuidData(uuid) {
const newJsShortUuid = getShortUuid(newJsUuid); const shortUuid = getShortUuid(uuid);
const newJsId = v4().replace(/-/g, '').substring(0, oldJsId.length); const newUuid = v4();
fileReplace(`assets/${folderName}/scene/${folderName}.ts.meta`, oldJsUuid, newJsUuid); const newShortUuid = getShortUuid(newUuid);
fileReplace(`assets/${folderName}/scene/${folderName}.js.meta`, oldJsUuid, newJsUuid); return {
fileReplace(`assets/${folderName}/scene/${folderName}.fire`, oldFireUuid, newFireUuid); oldUuid: uuid,
fileReplace(`assets/${folderName}/scene/${folderName}.fire`, oldJsShortUuid, newJsShortUuid); oldShortUuid: shortUuid,
fileReplace(`assets/${folderName}/scene/${folderName}.fire`, oldJsId, newJsId); newUuid: newUuid,
newShortUuid: newShortUuid,
};
}
const uuidList = [];
await fileForEach(path, (path) => {
const nameList = path.split('.');
if (nameList[nameList.length - 1] == 'meta') {
const data = JSON.parse(fs.readFileSync(path));
uuidList.push(createUuidData(data.uuid));
if (data.subMetas) {
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,52 +342,52 @@ module.exports = { ...@@ -313,52 +342,52 @@ 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 // 改设置为非bundle
changeSettingToWebDesktop(); changeSettingToWebDesktop();
// 构建play // 构建play
await removeDir('dist/play'); await removeDir('dist/play');
await buildWebDesktop(); await buildWebDesktop();
await copyDir('build/web-desktop', 'dist/play'); await copyDir('build/web-desktop', 'dist/play');
replaceIndexHtml(); replaceIndexHtml();
console.log('构建 web desktop 成功!'); console.log('构建 web desktop 成功!');
// 改设置为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');
console.log('构建 android bundle 成功!'); console.log('构建 android bundle 成功!');
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');
console.log('构建 ios bundle 成功!'); console.log('构建 ios bundle 成功!');
await removeDir('dist/web_desktop'); await removeDir('dist/web_desktop');
await buildWebBundle(); await buildWebBundle();
await copyDir(`build_web_desktop/web-desktop/assets/${projectName}`, 'dist/web_desktop'); await copyDir(`build_web_desktop/web-desktop/assets/${projectName}`, 'dist/web_desktop');
console.log('构建 web bundle 成功!'); console.log('构建 web bundle 成功!');
// 改设置为非bundle // 改设置为非bundle
changeSettingToWebDesktop(); changeSettingToWebDesktop();
createConfigFile(projectName); createConfigFile(projectName);
compressAll(projectName); compressAll(projectName);
await removeDir('build'); await removeDir('build');
...@@ -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');
......
...@@ -1365,37 +1365,37 @@ ...@@ -1365,37 +1365,37 @@
} }
}, },
"@fortawesome/angular-fontawesome": { "@fortawesome/angular-fontawesome": {
"version": "0.6.1", "version": "0.6.0",
"resolved": "https://registry.npmjs.org/@fortawesome/angular-fontawesome/-/angular-fontawesome-0.6.1.tgz", "resolved": "https://registry.npmjs.org/@fortawesome/angular-fontawesome/-/angular-fontawesome-0.6.0.tgz",
"integrity": "sha512-ARQjtRuT+ZskzJDJKPwuiGO3+7nS0iyNLU/uHVJHfG4LwGJxwVIGldwg1SU957sra0Z0OtWEajHMhiS4vB9LwQ==" "integrity": "sha512-FcWwnEAshaLI8o1b08935OuXo8K3jSUInDDtkRwO+GtZy3VspOujpiOjxDU/gw6hNUEGsFDppqnRl2Prh6OWBw=="
}, },
"@fortawesome/fontawesome-common-types": { "@fortawesome/fontawesome-common-types": {
"version": "0.2.30", "version": "0.2.36",
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.30.tgz", "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.36.tgz",
"integrity": "sha512-TsRwpTuKwFNiPhk1UfKgw7zNPeV5RhNp2Uw3pws+9gDAkPGKrtjR1y2lI3SYn7+YzyfuNknflpBA1LRKjt7hMg==" "integrity": "sha512-a/7BiSgobHAgBWeN7N0w+lAhInrGxksn13uK7231n2m8EDPE3BMCl9NZLTGrj9ZXfCmC6LM0QLqXidIizVQ6yg=="
}, },
"@fortawesome/fontawesome-svg-core": { "@fortawesome/fontawesome-svg-core": {
"version": "1.2.30", "version": "1.2.27",
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-1.2.30.tgz", "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-1.2.27.tgz",
"integrity": "sha512-E3sAXATKCSVnT17HYmZjjbcmwihrNOCkoU7dVMlasrcwiJAHxSKeZ+4WN5O+ElgO/FaYgJmASl8p9N7/B/RttA==", "integrity": "sha512-sOD3DKynocnHYpuw2sLPnTunDj7rLk91LYhi2axUYwuGe9cPCw7Bsu9EWtVdNJP+IYgTCZIbyARKXuy5K/nv+Q==",
"requires": { "requires": {
"@fortawesome/fontawesome-common-types": "^0.2.30" "@fortawesome/fontawesome-common-types": "^0.2.27"
} }
}, },
"@fortawesome/free-regular-svg-icons": { "@fortawesome/free-regular-svg-icons": {
"version": "5.14.0", "version": "5.12.1",
"resolved": "https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-5.14.0.tgz", "resolved": "https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-5.12.1.tgz",
"integrity": "sha512-6LCFvjGSMPoUQbn3NVlgiG4CY5iIY8fOm+to/D6QS/GvdqhDt+xZklQeERdCvVRbnFa1ITc1rJHPRXqkX5wztQ==", "integrity": "sha512-bGda18seHXb+24K6DPUFzqn4kG7B+JViP/BscMcNUXvT00M86xNhdgP2TXSdflQXn53QWqymKjx/8rhaDOJyhA==",
"requires": { "requires": {
"@fortawesome/fontawesome-common-types": "^0.2.30" "@fortawesome/fontawesome-common-types": "^0.2.27"
} }
}, },
"@fortawesome/free-solid-svg-icons": { "@fortawesome/free-solid-svg-icons": {
"version": "5.14.0", "version": "5.12.1",
"resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-5.14.0.tgz", "resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-5.12.1.tgz",
"integrity": "sha512-M933RDM8cecaKMWDSk3FRYdnzWGW7kBBlGNGfvqLVwcwhUPNj9gcw+xZMrqBdRqxnSXdl3zWzTCNNGEtFUq67Q==", "integrity": "sha512-k3MwRFFUhyL4cuCJSaHDA0YNYMELDXX0h8JKtWYxO5XD3Dn+maXOMrVAAiNGooUyM2v/wz/TOaM0jxYVKeXX7g==",
"requires": { "requires": {
"@fortawesome/fontawesome-common-types": "^0.2.30" "@fortawesome/fontawesome-common-types": "^0.2.27"
} }
}, },
"@istanbuljs/schema": { "@istanbuljs/schema": {
......
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
"@angular/platform-browser": "~9.0.2", "@angular/platform-browser": "~9.0.2",
"@angular/platform-browser-dynamic": "~9.0.2", "@angular/platform-browser-dynamic": "~9.0.2",
"@angular/router": "~9.0.2", "@angular/router": "~9.0.2",
"@fortawesome/angular-fontawesome": "^0.6.0", "@fortawesome/angular-fontawesome": "0.6.0",
"@fortawesome/fontawesome-svg-core": "^1.2.27", "@fortawesome/fontawesome-svg-core": "1.2.27",
"@fortawesome/free-regular-svg-icons": "^5.12.1", "@fortawesome/free-regular-svg-icons": "5.12.1",
"@fortawesome/free-solid-svg-icons": "^5.12.1", "@fortawesome/free-solid-svg-icons": "5.12.1",
"@tweenjs/tween.js": "~18.5.0", "@tweenjs/tween.js": "~18.5.0",
"ali-oss": "^6.5.1", "ali-oss": "^6.5.1",
"compressing": "^1.5.0", "compressing": "^1.5.0",
......
{ {
"title": "play", "title": "play",
"packageName": "org.cocos2d.demo", "packageName": "org.cocos2d.demo",
"startScene": "c0ae4d78-ee2f-4c93-8923-048b80f19b07", "startScene": "87dadb8f-29d6-454b-af49-024981a023ad",
"excludeScenes": [], "excludeScenes": [],
"includeSDKBox": false, "includeSDKBox": false,
"orientation": { "orientation": {
......
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