Attempting to run the program on macOS systematically returns the following error:
Traceback (most recent call last):
File "video-dl/gui.py", line 357, in <module>
Updater().update_app()
File "video-dl/updater.py", line 28, in __init__
self.app_bin_name = get_name_for_platform()
File "video-dl/gen_new_version.py", line 169, in get_name_for_platform
raise RuntimeError
RuntimeError
After some digging, two places would need some minor adjustments:
in gen_new_version.py, in the get_name_for_platform function, adding a conditional for "Darwin" (macOS' platform name), the extension could be .dmg.
in updater.py, in the _new_version_available method of the Updater class, testing if the platform is in the dictionary to avoid a KeyError. If it isn't, we can set self.latest_version to APP_VERSION to emulate being on the latest version.
Description
Attempting to run the program on macOS systematically returns the following error:
After some digging, two places would need some minor adjustments:
gen_new_version.py
, in theget_name_for_platform
function, adding a conditional for"Darwin"
(macOS' platform name), the extension could be.dmg
.updater.py
, in the_new_version_available
method of theUpdater
class, testing if the platform is in the dictionary to avoid aKeyError
. If it isn't, we can setself.latest_version
toAPP_VERSION
to emulate being on the latest version.