diff --git a/__init__.py b/__init__.py index cea3257..9f24333 100644 --- a/__init__.py +++ b/__init__.py @@ -54,6 +54,8 @@ def register(): def unregister(): - for module in modulesNames: + addon_updater_ops.unregister() + + for module in reversed(modulesNames): if hasattr(globals()[module], "unregister"): globals()[module].unregister() diff --git a/addon_updater_ops.py b/addon_updater_ops.py index 389095a..3964c01 100644 --- a/addon_updater_ops.py +++ b/addon_updater_ops.py @@ -1303,8 +1303,8 @@ def select_link_function(self, tag): link = tag["zipball_url"] # -- Example: select the first (or only) asset instead source code -- - # if "assets" in tag and "browser_download_url" in tag["assets"][0]: - # link = tag["assets"][0]["browser_download_url"] + if "assets" in tag and "browser_download_url" in tag["assets"][0]: + link = tag["assets"][0]["browser_download_url"] # -- Example: select asset based on OS, where multiple builds exist -- # # not tested/no error checking, modify to fit your own needs! @@ -1448,13 +1448,13 @@ def register(bl_info): # but the user has the option from user preferences to directly # update to the master branch or any other branches specified using # the "install {branch}/older version" operator. - updater.include_branches = True + updater.include_branches = False # (GitHub only) This options allows using "releases" instead of "tags", # which enables pulling down release logs/notes, as well as installs update # from release-attached zips (instead of the auto-packaged code generated # with a release/tag). Setting has no impact on BitBucket or GitLab repos. - updater.use_releases = False + updater.use_releases = True # Note: Releases always have a tag, but a tag may not always be a release. # Therefore, setting True above will filter out any non-annotated tags. # Note 2: Using this option will also display (and filter by) the release @@ -1490,7 +1490,7 @@ def register(bl_info): # Set the min and max versions allowed to install. # Optional, default None # min install (>=) will install this and higher - updater.version_min_update = (0, 0, 0) + updater.version_min_update = (0, 1, 0) # updater.version_min_update = None # None or default for no minimum. # Max install (<) will install strictly anything lower than this version