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