Skip to content

Commit

Permalink
Fix: Auto updater .zip file link - v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroalmeida415 committed May 29, 2023
1 parent d8b9c3d commit 8db0f78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
10 changes: 5 additions & 5 deletions addon_updater_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8db0f78

Please sign in to comment.