141 строк · 5 КиБ
code/crates/chl-epic/tests/fixtures/sample.expected.json
| 1 | { |
| 2 | "chunks": [ |
| 3 | { |
| 4 | "file_size": 500000, |
| 5 | "group_num": 99, |
| 6 | "guid_num": "22685491133344441733072379273554445380", |
| 7 | "guid_str": "11111111-22222222-33333333-44444444", |
| 8 | "hash": "81985529216486895", |
| 9 | "path": "ChunksV4/99/0123456789ABCDEF_11111111222222223333333344444444.chunk", |
| 10 | "sha_hash": "0b37f06e1e4de222c37559722129bb4063e180b7", |
| 11 | "window_size": 1048576 |
| 12 | }, |
| 13 | { |
| 14 | "file_size": 250000, |
| 15 | "group_num": 38, |
| 16 | "guid_num": "226943873916985484998469264927970929339", |
| 17 | "guid_str": "aabbccdd-00112233-44556677-8899aabb", |
| 18 | "hash": "18364758544493064720", |
| 19 | "path": "ChunksV4/38/FEDCBA9876543210_AABBCCDD00112233445566778899AABB.chunk", |
| 20 | "sha_hash": "1157ef466b539fee9361c3a1e886476f4066c0a3", |
| 21 | "window_size": 1048576 |
| 22 | }, |
| 23 | { |
| 24 | "file_size": 131072, |
| 25 | "group_num": 91, |
| 26 | "guid_num": "79228162551157825753847955460", |
| 27 | "guid_str": "00000001-00000002-00000003-00000004", |
| 28 | "hash": "1", |
| 29 | "path": "ChunksV4/91/0000000000000001_00000001000000020000000300000004.chunk", |
| 30 | "sha_hash": "840b6c095d5cf1f17b64f8a38aeb8f0851d74c8a", |
| 31 | "window_size": 1048576 |
| 32 | } |
| 33 | ], |
| 34 | "custom_fields": { |
| 35 | "CloudSaveFolder": "{appdata}/TestGame/Saves", |
| 36 | "FolderName": "TestGame" |
| 37 | }, |
| 38 | "files": [ |
| 39 | { |
| 40 | "chunk_parts": [ |
| 41 | { |
| 42 | "file_offset": 0, |
| 43 | "guid_num": "22685491133344441733072379273554445380", |
| 44 | "guid_str": "11111111-22222222-33333333-44444444", |
| 45 | "offset": 0, |
| 46 | "size": 300000 |
| 47 | }, |
| 48 | { |
| 49 | "file_offset": 300000, |
| 50 | "guid_num": "226943873916985484998469264927970929339", |
| 51 | "guid_str": "aabbccdd-00112233-44556677-8899aabb", |
| 52 | "offset": 1000, |
| 53 | "size": 200000 |
| 54 | } |
| 55 | ], |
| 56 | "compressed": false, |
| 57 | "executable": true, |
| 58 | "file_size": 500000, |
| 59 | "filename": "Binaries/Win64/TestGame.exe", |
| 60 | "flags": 4, |
| 61 | "hash": "03ec0a849462925eeec122919301d29a0691aa77", |
| 62 | "hash_md5": "98e83379d45538379c2ac4e47c3be81d", |
| 63 | "hash_sha256": "5e4d77af88acfe2fe004c5ac5c642e638b801f6f6eab11bf3e5497b9605ec5fb", |
| 64 | "install_tags": [ |
| 65 | "base" |
| 66 | ], |
| 67 | "mime_type": "application/x-msdownload", |
| 68 | "read_only": false, |
| 69 | "symlink_target": "" |
| 70 | }, |
| 71 | { |
| 72 | "chunk_parts": [ |
| 73 | { |
| 74 | "file_offset": 0, |
| 75 | "guid_num": "79228162551157825753847955460", |
| 76 | "guid_str": "00000001-00000002-00000003-00000004", |
| 77 | "offset": 0, |
| 78 | "size": 4096 |
| 79 | } |
| 80 | ], |
| 81 | "compressed": false, |
| 82 | "executable": false, |
| 83 | "file_size": 4096, |
| 84 | "filename": "Content/Тексты/описание.txt", |
| 85 | "flags": 1, |
| 86 | "hash": "322bb8f0d1eca641e7f4f85b6f0cf8c009a216d2", |
| 87 | "hash_md5": "", |
| 88 | "hash_sha256": "b6ec4b64bc4012104c5c4759bc3426cc36440d05853ba902a3198706006753be", |
| 89 | "install_tags": [], |
| 90 | "mime_type": "text/plain", |
| 91 | "read_only": true, |
| 92 | "symlink_target": "" |
| 93 | }, |
| 94 | { |
| 95 | "chunk_parts": [ |
| 96 | { |
| 97 | "file_offset": 0, |
| 98 | "guid_num": "79228162551157825753847955460", |
| 99 | "guid_str": "00000001-00000002-00000003-00000004", |
| 100 | "offset": 4096, |
| 101 | "size": 8192 |
| 102 | } |
| 103 | ], |
| 104 | "compressed": false, |
| 105 | "executable": false, |
| 106 | "file_size": 8192, |
| 107 | "filename": "Engine/lib/libfoo.so", |
| 108 | "flags": 0, |
| 109 | "hash": "6ea0c949775d5f87c090fd6c0f8c63406445a400", |
| 110 | "hash_md5": "", |
| 111 | "hash_sha256": "a0bb0d0aae30d9e2e2986728458a9efe24ada8ddf3d3474541156ab299bd4319", |
| 112 | "install_tags": [ |
| 113 | "base", |
| 114 | "extra" |
| 115 | ], |
| 116 | "mime_type": "", |
| 117 | "read_only": false, |
| 118 | "symlink_target": "libfoo.so.1" |
| 119 | } |
| 120 | ], |
| 121 | "meta": { |
| 122 | "app_id": 4242, |
| 123 | "app_name": "TestGame", |
| 124 | "build_id": "X784HO2Sn1AAKbs1HPP7x6bOzqw", |
| 125 | "build_version": "1.2.3-Windows", |
| 126 | "data_version": 2, |
| 127 | "feature_level": 21, |
| 128 | "is_file_data": false, |
| 129 | "launch_command": "-nosplash", |
| 130 | "launch_exe": "Binaries/Win64/TestGame.exe", |
| 131 | "prereq_args": "/quiet", |
| 132 | "prereq_ids": [ |
| 133 | "prereq-one", |
| 134 | "prereq-two" |
| 135 | ], |
| 136 | "prereq_name": "Visual C++ Redist", |
| 137 | "prereq_path": "Redist/vcredist.exe", |
| 138 | "uninstall_action_args": "/S", |
| 139 | "uninstall_action_path": "Redist/uninstall.exe" |
| 140 | } |
| 141 | } |