Skip to content

Commit

Permalink
Preliminary support for *.ankiaddon builds
Browse files Browse the repository at this point in the history
  • Loading branch information
glutanimate committed Apr 14, 2019
1 parent a090e1e commit 85a5f30
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ buildrelease:
git archive --format tar $(VERSION) | tar -x -C build/dist/
cp -r build/dist/* build/dist21
rm -rf "build/dist/$(ADDONDIR)/forms5" "build/dist21/forms4"
cd build/dist && \
PYENV_VERSION=anki20tools ../../tools/build_ui.sh "$(ADDONDIR)" 4 &&\
cd src && \
zip -r "../../../$(ADDON)-release-$(VERSION)-anki20.zip" "$(ADDONDIR)" *.py
# cd build/dist && \
# PYENV_VERSION=anki20tools ../../tools/build_ui.sh "$(ADDONDIR)" 4 &&\
# cd src && \
# zip -r "../../../$(ADDON)-release-$(VERSION)-anki20.zip" "$(ADDONDIR)" *.py
cd build/dist21 && \
PYENV_VERSION=anki21tools ../../tools/build_ui.sh "$(ADDONDIR)" 5 &&\
cd src/"$(ADDONDIR)" && \
zip -r "../../../../$(ADDON)-release-$(VERSION)-anki21.zip" *
zip -r "../../../../$(ADDON)-release-$(VERSION)-anki21-ankiweb.zip" * && \
zip -r "../../../../$(ADDON)-release-$(VERSION)-anki21.ankiaddon" *
rm -rf build

0 comments on commit 85a5f30

Please sign in to comment.