Commit Graph

93 Commits

Author SHA1 Message Date
tretrauit fba2063bce chore: bump to 2.2.21 2023-11-08 16:22:48 +07:00
tretrauit 78df1d242a fix(installer): wrap rename in try/except
So it won't fail I guess, because we failed anyway.
2023-11-08 16:22:30 +07:00
tretrauit f1eb1fe2c6 fix: voicepack detection 2023-06-20 22:35:33 +07:00
tretrauit f549166e2e fix: workaround around merged parts 2023-06-20 22:11:10 +07:00
tretrauit efc7ff2be9 fix: implement segments download
michos don't fucking do breaking changes in the API fuck you.
2023-06-20 18:14:44 +07:00
tretrauit 5e46b23752 chore: delete files first to save space 2023-05-25 13:03:05 +07:00
tretrauit 973ae2a5e6 fix: actually delete files in deletefiles.txt 2023-05-25 13:01:04 +07:00
tretrauit aa4fe4d5ed chore: bump to 2.2.19 2023-05-25 10:42:14 +07:00
tretrauit 836c843b2e fix: str -> Path 2023-05-25 10:41:51 +07:00
tretrauit 0af4c4f2df chore: bump 2023-05-25 10:39:59 +07:00
tretrauit a6600cf573 fix: wrong blueReporter path 2023-05-25 10:39:40 +07:00
tretrauit 305021d8b7 chore: bump to 2.2.17 2023-05-25 10:38:25 +07:00
tretrauit 2d5c75109a fix: add blueReporter to revert list 2023-05-25 10:29:24 +07:00
tretrauit 45006ef4b5 fix: telemetry.dll rename 2023-05-25 10:28:17 +07:00
tretrauit 5a6f8e39af feat: add blueReporter 2023-05-25 10:26:08 +07:00
tretrauit d99760422d fix: voicepack detection & 2.2.16 2023-05-25 10:12:01 +07:00
tretrauit 3c6d44d983 fix: --from-vo-ver doesn't set vo version 2023-03-01 20:22:04 +07:00
tretrauit 1de9c42c1f misc: remove comment 2023-03-01 17:33:48 +07:00
Nguyễn Thế Hưng cc6f3996af fix: only do 8 jobs at once in update & verify
Prevent lag which can lead to unusable system (especially when using hdiffpatch)

Also print more
2023-03-01 17:32:07 +07:00
tretrauit 1957f8265b fix: fix 2023-01-18 13:39:34 +07:00
tretrauit 820bc70e9d feat: hdiff in voiceover update 2023-01-18 12:38:43 +07:00
tretrauit 089b799a5f fix: RuntimeWarning: coroutine 'Installer.get_voiceover_archive_language' was never awaited 2023-01-18 12:25:12 +07:00
tretrauit f46902879a fix: aiohttp.client_exceptions.ClientPayloadError: Response payload is not completed 2023-01-18 11:45:40 +07:00
tretrauit 95dccf7241 feat: --download-chunk
Also bump to 2.2.9
2023-01-18 11:28:33 +07:00
tretrauit 178f513e52
updater: change the returncode check
Signed-off-by: tretrauit <tretrauit@gmail.com>
2022-12-07 13:04:48 +07:00
tretrauit 98898827e9
updater: more logs
Signed-off-by: tretrauit <tretrauit@gmail.com>
2022-12-07 13:03:19 +07:00
tretrauit 95f21e6d2a
updater: do not continue if file extraction failed
Signed-off-by: tretrauit <tretrauit@gmail.com>
2022-12-07 12:55:03 +07:00
tretrauit e55d6cafd6
updater: do not delete directory
I took a look at deletefiles.txt again and realized that they're all files, so we don't need to delete the entire directory

Signed-off-by: tretrauit <tretrauit@gmail.com>
2022-11-03 17:44:54 +07:00
tretrauit 727b7e9b44
updater: fix deleting the game root directory lmao 2022-11-02 12:56:53 +07:00
tretrauit 0b51be1649
updater: remove directory in deletefiles.txt too 2022-11-02 12:26:37 +07:00
tretrauit abdf19bc16
patcher: switch to Krock branch 2022-09-29 12:11:32 +07:00
tretrauit e0f3fadc9d
fix: don't use 7zip
Providing that it doesn't provide any benefits than ZipFile
2022-09-28 22:53:12 +07:00
tretrauit cd2aabea60
hack: workaround over Windows path 2022-09-28 22:00:23 +07:00
tretrauit 1830081cb0
fix: use 7z to extract game file 2022-09-28 21:19:20 +07:00
tretrauit f54c2f432b
fix: handle FileExistsError 2022-09-28 12:51:27 +07:00
tretrauit e3045f5150
fix: do not await is_file() 2022-09-28 12:26:54 +07:00
tretrauit 184e96fa2d
patcher: add option to specify predefined patch url
This option adds patch_provider to Patcher class, currently you can choose either y0soro or Krock (by default it uses y0soro for latest 3.0.0 patch)
2022-08-24 20:14:38 +07:00
tretrauit 8449c104d9
patch: switch to y0soro repository for testing patch 2022-08-24 20:06:02 +07:00
tretrauit 9e00e58938
fix: catch TypeError 2022-08-24 09:51:31 +07:00
tretrauit 04dc922230
feat: support pre-downloading game & voicepacks 2022-08-23 17:02:20 +07:00
tretrauit 34a8ab6d99
fix: remove printing debug raw message 2022-08-17 02:12:39 +07:00
tretrauit 2b9951dcaa
fix: self._installer.get_game_version() in update_voiceover 2022-08-17 02:08:28 +07:00
tretrauit 5066a4e2b3
fix: update game & voiceover now works properly. 2022-07-13 13:52:57 +07:00
tretrauit efc2abf858
feat: add -Swp option
perf: tar.extractall wrapped in asyncio.to_thread
2022-06-27 04:09:47 +07:00
tretrauit aa147792e6
fix: calculate_md5 will return "" for nonexistent files 2022-06-26 01:56:14 +07:00
tretrauit 23980276ee
fix: patcher.py properly disable crash reporters.
fix: revert_patch now works correctly.
It was because of me forgetting to merge the game data name with the game directory
I hope my crash log wasn't uploaded to mHY since I blocked their hosts...
2022-06-26 01:53:37 +07:00
tretrauit d4773bc38d
fix: _ask won't automatically think the answer is yes.
I am dumb
2022-06-25 02:09:26 +07:00
tretrauit a5659f7ff3
refactor: convert all task-intensive functions to async.
chore: rename gui.py to cli.py
fix: internal downloader can resume download now.
feat: add verify_game, verify_from_pkg_version, clear_cache to installer.py.
feat: add clear_cache to patcher.py.
fix: linux now check for pkexec before executing it.
fix: add get_name to voicepack.py, latest.py, diff.py to get name from path (since the developer didn't set a name to these files in the sdk url)
chore: remove deprecation message in read_version_from_config in installer.py
misc: use chunk from self._download_chunk instead of being hardcoded to 8192.
fix: is_telemetry_blocked will only wait 15s for a connection.
chore: move appdirs to constants.py

This commit refactor almost all functions to be compatible with asyncio, also restructured CLI to use asyncio.run on main function instead of executing it randomly.
Also prioritize the use of asyncio.gather, sometimes making tasks faster
2022-06-25 01:13:47 +07:00
tretrauit 8b2d0cad8f
Remove game version check in download_full_game()
Fix remote archive name detection (because archive.game.latest.name doesn't contain it anymore)

Signed-off-by: tretrauit <tretrauit@gmail.com>
2022-04-01 09:43:33 +07:00
tretrauit b18da4e495
Remove game version check in download_full_game()
Fix remote archive name detection (because archive.game.latest.name doesn't contain it anymore)

Signed-off-by: tretrauit <tretrauit@gmail.com>
2022-04-01 09:27:03 +07:00