Digital-Sapphire / PyUpdater

Pyinstaller auto-update library
https://www.pyupdater.org
459 stars 90 forks source link

mac-arm not adding platform to config.pyu #292

Closed ikhz closed 2 years ago

ikhz commented 3 years ago

On mac arm64 pyupdater pkg -p doesnt add platform 'mac-arm' to config.pyu, it adds arm64 build into 'mac' plaform section

ikhz commented 3 years ago

invalid regex in core/package_handler/package.py parse_platform function

fix: re_str = r"-(?P<platform>arm(64)?|mac(-arm)?|nix(64)?|win)-"

ikhz commented 3 years ago

also name_regex = re.compile(r"(?P<name>[\w -]+)-[arm|mac|nix|win]") should not be so greedy because it grabs 'mac' if 'mac-arm' in the file name fix: name_regex = re.compile(r"(?P<name>[\w -]+?)-(arm|mac|nix|win)")

ikhz commented 3 years ago

also in client/updates.py _overwrite and _restart if get_system() == "mac": should be changed to if "mac" in get_system(): because platform is 'mac-arm'