main.js 885 B

1234567891011121314151617181920212223242526
  1. let file = require('./util/file');
  2. // let uuid = UuidUtils.compressUuid('c9c49036-49ca-4334-a4bc-5916d0b107f5', false);
  3. // console.log('测试1:' + uuid + ' ' + uuid.length)
  4. // console.log('测试2:' + UuidUtils.decompressUuid('7335dmDEXxK3o/eMFR9rlyM'))
  5. // console.log('测试3:' + UuidUtils.uuidv1())
  6. // console.log('测试4:' + UuidUtils.isUuid('e5GCSOfC9HiKxCodlqmxZ1'))
  7. /**
  8. * meta 文件uuid 规则
  9. * "uuid": "156f93eb-ef91-49a7-baa9-a2481720af3f",
  10. * "rawTextureUuid": "156f93eb-ef91-49a7-baa9-a2481720af3f",
  11. * "textureUuid": "36a06f42-7f9f-4bc2-8ec7-0bab9774b86b",
  12. * "subMetas": {"num_1-2ren_out-11.png": {"rawTextureUuid": "1afa63e7-ba6f-42c5-9410-7e9260f3a922",
  13. *
  14. *
  15. */
  16. // E:\h5Project\h5_hall_athletics\hha_integral\assets
  17. var path = 'D:\\work\\google_upload\\Troy_project\\assets';
  18. file.createUUIDlist(path);
  19. file.replaceUUID(path);