Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions LittlePaimon/utils/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def check_resource():
len(list((RESOURCE_BASE_PATH / 'LittlePaimon').rglob('*'))) >= 50):
try:
await aiorequests.download(
url=f'{config.github_proxy}https://github.com/CMHopeSunshine/LittlePaimonRes/raw/main/resources.zip',
url=f'{config.github_proxy}https://github.com/CMHopeSunshine/LittlePaimonRes/releases/download/Resources-V1.0/resources.zip',
save_path=RESOURCE_BASE_PATH / '小派蒙基础资源.zip')
zipfile.ZipFile(RESOURCE_BASE_PATH / '小派蒙基础资源.zip').extractall(RESOURCE_BASE_PATH)
(RESOURCE_BASE_PATH / '小派蒙基础资源.zip').unlink()
Expand All @@ -110,7 +110,7 @@ async def check_resource():
if not (RESOURCE_BASE_PATH / 'LittlePaimon' / 'star_rail').is_dir():
try:
await aiorequests.download(
url=f'{config.github_proxy}https://github.com/CMHopeSunshine/LittlePaimonRes/raw/main/star_rail.zip',
url=f'{config.github_proxy}https://github.com/CMHopeSunshine/LittlePaimonRes/releases/download/Resources-V1.0/star_rail.zip',
save_path=RESOURCE_BASE_PATH / 'star_rail.zip')
zipfile.ZipFile(RESOURCE_BASE_PATH / 'star_rail.zip').extractall(RESOURCE_BASE_PATH / 'LittlePaimon' / 'star_rail')
(RESOURCE_BASE_PATH / 'star_rail.zip').unlink()
Expand Down