Skip to content

Commit

Permalink
update release directory and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mweibel committed Jul 19, 2023
1 parent 143e973 commit b462ead
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# TAG reads git short SHA hash to be used as a version identifier
TAG?=$(shell git rev-parse --short=8 HEAD)
ESCAPED_TAG=$(subst .,_,$(TAG))

# Setting SHELL to bash allows bash commands to be executed by recipes.
# This is a requirement for 'setup-envtest.sh' in the test target.
Expand Down Expand Up @@ -38,7 +37,7 @@ run: ## Runs blender with addon

release:
rm helio-blender-addon-$(TAG).zip || true
mkdir helio-blender-addon-$(ESCAPED_TAG)
cp -R icons/ *.py *.txt *.md helio-blender-addon-$(ESCAPED_TAG)/
zip -r helio-blender-addon-$(TAG).zip helio-blender-addon-$(ESCAPED_TAG)/
rm -Rf helio-blender-addon-$(ESCAPED_TAG)/
mkdir helio-blender-addon
cp -R icons/ *.py *.txt *.md helio-blender-addon/
zip -r helio-blender-addon-$(TAG).zip helio-blender-addon/
rm -Rf helio-blender-addon/
5 changes: 4 additions & 1 deletion addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
log = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO,
format='%(levelname)8s %(message)s')
log.setLevel(logging.DEBUG)
if os.getenv("ADDON_DEBUG"):
log.setLevel(logging.DEBUG)
log.debug("debug log enabled")
addon_updater_ops.updater.verbose = True


@addon_updater_ops.make_annotations
Expand Down
4 changes: 2 additions & 2 deletions addon_updater_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def check_for_update(self, now):
# not match and have errors. Must be all lowercase and no spaces! Should also
# be unique among any other addons that could exist (using this updater code),
# to avoid clashes in operator registration.
updater.addon = "helio_addon_updater"
updater.addon = "helio_blender_addon"


# -----------------------------------------------------------------------------
Expand Down Expand Up @@ -1369,7 +1369,7 @@ def register(bl_info):

# Optional, consider turning off for production or allow as an option
# This will print out additional debugging info to the console
updater.verbose = True # make False for production default
updater.verbose = False # make False for production default

# Optional, customize where the addon updater processing subfolder is,
# essentially a staging folder used by the updater on its own
Expand Down

0 comments on commit b462ead

Please sign in to comment.