Commit graph

292 commits

Author SHA1 Message Date
32b0c39444
🚧 Some more possible decryption fixes 2018-07-08 22:32:08 +02:00
ddeb9f190f
🚧 Possible fix to decryption errors 2018-07-08 22:29:03 +02:00
f14be006be
🚧 Possible fix to decryption errors 2018-07-08 22:25:58 +02:00
e355f6979a
🗑 Remove uneeded code 2018-07-08 22:24:06 +02:00
4d5e0d403a
🚧 Test enabling decompression again 2018-07-08 22:19:32 +02:00
d3fa6d7c29
🎨 Use buffers instead of DataView since Node.js is unstable with dv 2018-07-08 22:16:33 +02:00
e6d42844f5
🎨 Improve debug output 2018-07-08 22:11:52 +02:00
4827292e9a
🐛 2MiB is a valid piece length, e.g. assets_swtor_main_0to100 2018-07-08 22:09:10 +02:00
dd9df23a5e
🚑 Fix not waiting for read to be complete 2018-07-08 22:06:11 +02:00
0a23394b56
🚧 Add debug output 2018-07-08 22:04:01 +02:00
09fb2eed85
🚧 Add debug output 2018-07-08 22:02:27 +02:00
ab1280d46c
♻ Extract waiting for stream to be readable 2018-07-08 21:58:42 +02:00
0122104f4c
🎨 Improve error message 2018-07-08 21:48:17 +02:00
747c6a4c15
🎨 Improve error message 2018-07-08 21:47:12 +02:00
c76d5035bd
🐛 Fix solidpkg url for retailclient 2018-07-08 21:38:18 +02:00
25d8994593
🐛 Fix dependencies check in patchmanifest verification 2018-07-08 21:34:51 +02:00
5574da3189
🐛 Fix patchmanifest verification 2018-07-08 21:23:01 +02:00
625b2af601
Improve manifest verification 2018-07-08 21:16:31 +02:00
7b027e9c69
🎨 Improve error message in patchmanifest verification 2018-07-08 21:04:54 +02:00
7ee70e8a2b
🐛 Fix length of encryption header 2018-07-08 20:55:52 +02:00
4c9270d59c
🐛 Fix skipping of encryption header 2018-07-08 20:54:59 +02:00
4192fc6e19
♻ Move skipping of encryption header out of decryption 2018-07-08 20:45:19 +02:00
6dc6aa8844
🚑 Fix build 2018-07-08 20:27:09 +02:00
7b5cdd5498
🚧 Change streamToArraybuffer to return Buffer for better debuggin 2018-07-08 20:26:17 +02:00
695ee74e72
🚧 Test decompression 2018-07-08 20:23:54 +02:00
285078fbe6
🗑 Remove streamSetMaxLength 2018-07-08 20:22:54 +02:00
ac8bb8b236
🚑 Fix function argument 2018-07-08 20:18:44 +02:00
4d8a631db4
♻ Read local file header separately 2018-07-08 20:18:04 +02:00
843314e475
🚧 Add debug output 2018-07-08 19:56:50 +02:00
338813223c
🚧 Temporarily skip decompression again 2018-07-08 19:56:19 +02:00
7987581216
🗑 Remove unneeded code 2018-07-08 19:55:26 +02:00
9ab326dfe9
🎨 Enable compression again 2018-07-08 19:50:44 +02:00
04ca2c69a8
🐛 Remove streamSetMaxLength since that is handled by getFileFromDisks 2018-07-08 19:48:48 +02:00
79412cefa0
🐛 Close file stream if end has been reached 2018-07-08 19:45:11 +02:00
03128a2920
🚑 Fix typo 2018-07-08 19:39:14 +02:00
a6de035101
🚧 Only skip decompression for disks 2018-07-08 19:38:25 +02:00
4e41a46006
🚧 Temporarily remove decompression for debugging 2018-07-08 19:34:34 +02:00
228f167711
🎨 Improve debug output 2018-07-08 19:32:04 +02:00
f6eb334602
🐛 End file read stream if EOF is reached 2018-07-08 19:30:27 +02:00
db3b303e6c
🗑 Remove debug output 2018-07-08 19:15:41 +02:00
82693ba3b0
🐎 Improve perf by not storing chunk write status 2018-07-08 19:11:28 +02:00
8b1ad6f7e2
🐛 Fix race condition in file download 2018-07-08 19:09:31 +02:00
662c2d5f43
🎨 Improve error output 2018-07-08 18:33:53 +02:00
6f6f168192
🚑 Fix file name 2018-07-08 18:12:08 +02:00
96ed471afe
Use local cache instead of always downloading files 2018-07-08 18:10:41 +02:00
0b5348e819
🚧 Speed up development by caching downloaded files 2018-07-08 16:07:28 +02:00
50b815f9f2
🗑 Remove debug output 2018-07-06 02:57:35 +02:00
ddbe9f4b36
🎨 Improve waiting for file to be written to disk 2018-07-06 00:33:36 +02:00
253e22b9d6
🚧 Do not read from disk until files have been written 2018-07-06 00:05:19 +02:00
e206280de1
🚧 Ignore length when reading from disk 2018-07-06 00:02:03 +02:00
06809ad8ed
🚧 Add more debug info 2018-07-05 23:51:29 +02:00
f284119bf1
🚧 Add some debugging info 2018-07-05 23:48:25 +02:00
74b312953d
🐛 Fix reading of local file header 2018-07-05 23:42:42 +02:00
e84e5bd3d7
🚑 Fix local file header reading for arraybuffer-based streams 2018-07-05 23:02:08 +02:00
0c8bc4d732
🚑 Wait for local file header reading to be complete 2018-07-05 23:00:10 +02:00
07de050588
🐛 Wait with reading local file header until stream is ready 2018-07-05 22:58:41 +02:00
86ba51731c
🐛 Add error message to getFileFromdisks 2018-07-05 22:18:19 +02:00
099fecce98
🐛 Duplex ➡ PassThrough 2018-07-05 21:39:16 +02:00
1c91b51686
🐛 Fix getFileFromDisks returning null due to not waiting for readable event 2018-07-05 21:36:26 +02:00
89d1b9e644
🐛 Found error why .read() returns null; need to wait for readable event 2018-07-05 21:17:07 +02:00
6d6c673556
Finish getFileFromDisks 2018-07-05 20:57:42 +02:00
f849744ac8
♻ Some refactoring to prepare for patch processing 2018-07-05 20:50:23 +02:00
60fe546d31
🎨 Reliable-id can be 2 2018-07-05 20:27:58 +02:00
bdcb7faabe
🐛 Piece length can also be 1 MiB 2018-07-05 18:43:53 +02:00
68348b3673
🐛 Fix end of file reached error 2018-07-05 18:41:24 +02:00
5c915776aa
Update solidpkg to use streams instead of buffers 2018-07-05 18:36:37 +02:00
28c0fdecf4
🗑 Remove debugging output 2018-07-05 18:24:20 +02:00
9994dffed2
🐛 Fix decrypt chunk 2018-07-05 18:22:20 +02:00
602b4b12d4
🗑 Remove unneeded code 2018-07-05 17:06:02 +02:00
f0cba0e955
🐛 Remove dataview from decryptChunk 2018-07-05 17:03:56 +02:00
c620a9f55e
🚧 Add debugging output 2018-07-05 16:42:04 +02:00
9c7f23ada0
Revert "🐛 Use UTF-16LE encoding for manifest XML files"
This reverts commit 4d3666d4c7.
2018-07-05 16:00:47 +02:00
4d3666d4c7
🐛 Use UTF-16LE encoding for manifest XML files 2018-07-05 15:54:14 +02:00
d03355c61a
👷 Fix sourcemaps to include ts code 2018-07-05 15:32:05 +02:00
7dfe0176ab
🐛 Do not reuse TextDecoder for multiple stream decodes 2018-07-05 13:24:47 +02:00
66d14a1d5b
🎨 Improve streamToString performance 2018-07-05 13:13:05 +02:00
eab9a27fa6
🗑 Don't set max length a 2nd time 2018-07-05 12:41:28 +02:00
7cb458dfc5
♻ Rewrite decrypt transform 2018-07-05 11:39:39 +02:00
8755fda1e3
🐛 Fix decrypt transform 2018-07-05 11:37:23 +02:00
933134eb35
♻ Convert decrypt stream into transform 2018-07-05 11:32:29 +02:00
9688c12797
🎨 Minor function signature change 2018-07-05 03:32:54 +02:00
09de4b663b
♻ Rewrite decryptChunk 2018-07-05 03:30:13 +02:00
1230330ce1
🐛 Fix compressed size (it already includes the encryption header) 2018-07-05 03:13:51 +02:00
02f4d3ecb5
🐛 Do not skip encryption header in decryptChunk 2018-07-05 03:03:26 +02:00
213fcf91f7
🐛 Fix decrypt chunk 2018-07-05 03:01:45 +02:00
dac2e9286c
🐛 Update decryption keys 2018-07-05 02:55:18 +02:00
3e9f4843f8
🐛 Fix compressed size calculation, do not change original decryption keys 2018-07-05 02:50:47 +02:00
5ca48459c1
🐛 Fix compressed length; it must include the encryption header 2018-07-05 02:45:14 +02:00
050f82b382
🐛 Do not read beyond stream in decryptor 2018-07-05 02:39:17 +02:00
26467816f0
🎨 Replace new Buffer() by Buffer.alloc() 2018-07-05 02:37:00 +02:00
1d1b8930cf
🚑 Fix chunk decryption 2018-07-05 02:35:37 +02:00
4f0adf8931
🚑 Fix reading of local file header 2018-07-05 02:33:21 +02:00
520f9c2e39
🚑 Do not decode buffers to string 2018-07-05 02:21:19 +02:00
e952f714df
🚑 Fix reading of local file header 2018-07-05 02:18:47 +02:00
4fb3d1322c
🐛 Do not read beyond arraybuffer bounds 2018-07-05 02:17:28 +02:00
397e1fd172
🐛 Allow for 256kb piece lengths 2018-07-05 02:09:26 +02:00
58963160c2
🚑 Fix utility scripts 2018-07-05 02:06:19 +02:00
d79e7d289c
🚀 Use streams instead of arraybuffers 2018-07-05 01:58:01 +02:00
27afb62d49
🚑 Fix name of import in index.ts 2018-07-05 00:59:42 +02:00
ae2ac6d278
🚧 Partial switch to streams, and add utility endpoints 2018-07-05 00:58:40 +02:00
e14a8db179
♻ Extract patch verification into separate file 2018-07-04 22:24:24 +02:00
6ac41fcc48
🚑 Fix download file name 2018-07-04 22:10:59 +02:00
34a4372183
🚑 Do not throw error if file too large in download module 2018-07-04 22:10:15 +02:00
e4d906e48c
🚧 Write large files to disk instead of to memory 2018-07-04 22:07:23 +02:00
94047006ec
🎨 Fix typos 2018-07-04 20:11:04 +02:00
14e73367c6
🎨 Fix typos 2018-07-04 20:04:16 +02:00
a3bff814ef
🗑 Remove debug message 2018-07-04 19:57:55 +02:00
c821327a6e
♻ Extract response handler 2018-07-04 19:51:20 +02:00
e4c2754493
⚠ Add error message if file too large 2018-07-04 19:36:25 +02:00
d843ce1200
🎨 Minor code quality improvements 2018-07-04 19:25:22 +02:00
2743ccb6e1
📓 Update documentation 2018-07-04 16:29:28 +02:00
e03f28f654
🔐 Fix release path to verify from >= 0 2018-07-04 15:48:34 +02:00
7ce5a177ec
♻ Move files into subdirectories 2018-06-24 10:10:00 +02:00
05d721171a
🎨 Improve debug output 2018-06-24 02:31:06 +02:00
6709315b68
🐛 Allow piece length of 512 KiB 2018-06-24 02:28:04 +02:00
42db8d36a6
🐛 Allow reliable-id to be 1 2018-06-24 02:24:13 +02:00
52157f544c
🐛 Fix length calculation during decryption 2018-06-24 02:15:46 +02:00
589f7fe786
🎨 Do not overwrite buffer during decryption 2018-06-24 02:13:10 +02:00
2456eae91a
♻ Allow 16-bit and 32-bit reads in ByteReader 2018-06-24 02:06:49 +02:00
590dc39f84
🎨 Add debug output to trace zlib error 2018-06-24 01:37:10 +02:00
beb2d351da
🎨 Minor code quality improvement in decryptFile 2018-06-24 00:56:14 +02:00
a2044887e8
♻ Extract updateKeys into separate file 2018-06-24 00:53:03 +02:00
145e2ca2cb
🚨 Allow output to console for now 2018-06-24 00:26:41 +02:00
5fd25d1095
💡 Add reminder to check downloaded patch files for correctness 2018-06-24 00:08:48 +02:00
57d45b942b
💡 Improve comments and code quality 2018-06-23 23:40:22 +02:00
b87236a435
🎨 Improve debug output 2018-06-23 23:32:17 +02:00
e9ba519db3
🎨 Improve error handling 2018-06-23 23:30:45 +02:00
16fb98e1aa
✔ Check for only full files in release from -1 2018-06-23 23:11:04 +02:00
8f5547222c
♻ Move ByteReader class into separate file 2018-06-23 22:51:33 +02:00
523f306ab3
🐛 Check for error after zlib uncompression 2018-06-23 22:48:17 +02:00
f40a097b81
🐛 Fix reading of diffSourceLength in SSN files 2018-06-23 22:45:35 +02:00
2a9d191e5b
🚑 Fix import statements 2018-06-23 22:42:33 +02:00
a416d86dbe
🐛 Fix patcher to ignore unchanged & deleted files 2018-06-23 22:39:34 +02:00
6e292106e3
🚑 Fix SSN file reader 2018-06-23 22:28:26 +02:00
a48956f504
🐛 Fix check for piece length 2018-06-23 22:21:12 +02:00
968e581d70
🐛 Fix check for announce URL 2018-06-23 22:18:26 +02:00
3ee23f6445
🚧 Add preliminary patch downloader 2018-06-23 22:14:55 +02:00
57c99b88fe
🎨 Improved code quality of manifest parser 2018-06-23 21:52:36 +02:00
62ed08c6c3
🚑 Fix crash since -1 release does not exist 2018-06-23 21:37:31 +02:00
33175d9dbe
🎨 Improve patchmanifest JSON format 2018-06-23 21:36:29 +02:00
82804f6657
Parse manifest.xml into JSON 2018-06-23 21:33:35 +02:00
77e039901a
Add patch manifest verifier 2018-06-23 21:20:08 +02:00
f01a880ae6
Add XML parser 2018-06-23 20:20:03 +02:00
2d55189248
🚚 Renaming releasePaths 2018-06-22 18:27:20 +02:00
fc88c410a1
⚠ Add warning in code comment 2018-06-22 18:25:31 +02:00
22dfac4828
🔒 Verify input to releasePaths 2018-06-22 18:22:28 +02:00
053714bf10
🔒 Verify input to releasePaths 2018-06-22 18:21:27 +02:00
620cb8bb1d
Add release path module 2018-06-22 18:16:59 +02:00
ee3fd0a60f
💡 Update comments for release path search 2018-06-22 17:59:22 +02:00
07caf282d8
♻ Refactor files returned by solidpkg reader^ 2018-06-22 17:38:53 +02:00