fix 资源包更新Bug
This commit is contained in:
parent
f345d94009
commit
aaa1b80edf
@ -55,7 +55,7 @@ class ResourceHelper(metaclass=Singleton):
|
||||
target = resource.get("target")
|
||||
version = resource.get("version")
|
||||
# 判断平台
|
||||
if platform and platform != SystemUtils.platform:
|
||||
if platform and platform != SystemUtils.platform():
|
||||
continue
|
||||
# 判断本地是否存在
|
||||
local_path = self._base_dir / target / rname
|
||||
|
@ -71,8 +71,8 @@ class SystemUtils:
|
||||
"""
|
||||
return True if platform.machine() == 'aarch64' else False
|
||||
|
||||
@property
|
||||
def platform(self) -> str:
|
||||
@staticmethod
|
||||
def platform() -> str:
|
||||
"""
|
||||
获取系统平台
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user