mirror of
https://github.com/borgbase/vorta
synced 2024-12-22 15:57:34 +00:00
63 lines
2.2 KiB
Makefile
63 lines
2.2 KiB
Makefile
export VORTA_SRC := src/vorta
|
|
export QT_SELECT=5
|
|
|
|
.PHONY : help
|
|
.DEFAULT_GOAL := help
|
|
|
|
icon-resources: ## Compile SVG icons to importable resource files.
|
|
pyrcc5 -o src/vorta/views/dark/collection_rc.py src/vorta/assets/icons/dark/collection.qrc
|
|
pyrcc5 -o src/vorta/views/light/collection_rc.py src/vorta/assets/icons/light/collection.qrc
|
|
|
|
Vorta.app: translations-to-qm
|
|
pyinstaller --clean --noconfirm vorta.spec
|
|
cp -R bin/darwin/Sparkle.framework dist/Vorta.app/Contents/Frameworks/
|
|
cd dist; codesign --deep --sign 'Developer ID Application: Manuel Riel (CNMSCAXT48)' Vorta.app
|
|
|
|
Vorta.dmg: Vorta.app
|
|
# sleep 2; cd dist; zip -9rq vorta-0.6.19.zip Vorta.app
|
|
rm -rf dist/vorta-0.6.19.dmg
|
|
sleep 2; appdmg appdmg.json dist/vorta-0.6.19.dmg
|
|
|
|
github-release: Vorta.dmg
|
|
hub release create --attach=dist/vorta-0.6.19.dmg v0.6.19
|
|
git checkout gh-pages
|
|
git commit -m 'rebuild pages' --allow-empty
|
|
git push upstream gh-pages
|
|
git checkout master
|
|
|
|
pypi-release: translations-to-qm
|
|
python setup.py sdist
|
|
twine upload dist/vorta-0.6.19.tar.gz
|
|
|
|
bump-version: ## Add new version tag and push to upstream repo.
|
|
bumpversion patch
|
|
#bumpversion minor
|
|
git push upstream
|
|
|
|
travis-debug: ## Prepare connecting to Travis instance via SSH.
|
|
curl -s -X POST \
|
|
-H "Content-Type: application/json" \
|
|
-H "Accept: application/json" \
|
|
-H "Travis-API-Version: 3" \
|
|
-H "Authorization: token ${TRAVIS_TOKEN}" \
|
|
-d '{ "quiet": true }' \
|
|
https://api.travis-ci.org/job/${TRAVIS_JOB_ID}/debug
|
|
|
|
translations-from-source: ## Extract strings from source code / UI files, merge into .ts.
|
|
pylupdate5 -verbose -translate-function trans_late \
|
|
$$VORTA_SRC/*.py $$VORTA_SRC/views/*.py $$VORTA_SRC/borg/*.py \
|
|
$$VORTA_SRC/assets/UI/*.ui \
|
|
-ts $$VORTA_SRC/i18n/ts/vorta.en_US.ts
|
|
|
|
translations-push: translations-from-source ## Upload .ts to Transifex.
|
|
tx push -s
|
|
|
|
translations-pull: ## Download .ts from Transifex.
|
|
tx pull -a
|
|
|
|
translations-to-qm: ## Compile .ts text files to binary .qm files.
|
|
for f in $$(ls $$VORTA_SRC/i18n/ts/vorta.*.ts); do lrelease $$f -qm $$VORTA_SRC/i18n/qm/$$(basename $$f .ts).qm; done
|
|
|
|
|
|
help:
|
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|