Skip to content

Commit

Permalink
fix for lazy release fingers
Browse files Browse the repository at this point in the history
  • Loading branch information
kfix committed Mar 22, 2015
1 parent 140bf99 commit 56331ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,19 @@ tag:
$(ZIP): tag
git archive --format=zip --output=$@ v$(VERSION) *.py *.txt

ifneq ($(GITHUB_ACCESS_TOKEN),)
release: $(ZIP)
git push -f --tags
posturl=$$(curl --data $(GH_RELEASE_JSON) "https://api.github.com/repos/$(USER)/$(REPO)/releases?access_token=$(GITHUB_ACCESS_TOKEN)" | jq -r .upload_url | sed 's/[\{\}]//g') && \
dload=$$(curl --fail -X POST -H "Content-Type: application/gzip" --data-binary "@$(ZIP)" "$$posturl=$(ZIP)&access_token=$(GITHUB_ACCESS_TOKEN)" | jq -r .browser_download_url | sed 's/[\{\}]//g') && \
echo "Plugin now available for download at $$dload"
#update attachment @ http://www.mobileread.com/forums/showthread.php?p=2881112#post2881112
else
release:
@echo You need to export \$$GITHUB_ACCESS_TOKEN to make a release!
@exit 1
endif

clean:
-rm *.zip

Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def prints(p): print p
elif id_or_path == "install_deps":
if isosx:
if os.system("which brew >/dev/null") == 0:
os.system("brew install --with-djvu ghostscript; brew install poppler")
os.system("brew install --with-djvu ghostscript")
else:
print "Homebrew required. Please visit https://github.com/Homebrew/homebrew"
return False
Expand Down

0 comments on commit 56331ee

Please sign in to comment.