mirror of
https://github.com/borgbase/vorta
synced 2025-01-02 21:25:48 +00:00
Add Makefile to enable building macOS app package.
This commit is contained in:
parent
7fe2ab2f01
commit
175a00726f
3 changed files with 34 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,7 +7,6 @@ docs/
|
|||
bin/macosx64/Sparkle.framework
|
||||
bin/macosx64/borg
|
||||
__pycache__
|
||||
Makefile
|
||||
.eggs
|
||||
vorta.egg-info
|
||||
.coverage
|
||||
|
|
29
Makefile
Normal file
29
Makefile
Normal file
|
@ -0,0 +1,29 @@
|
|||
|
||||
Vorta.app:
|
||||
#pyrcc5 -o src/vorta/views/collection_rc.py src/vorta/assets/icons/collection.qrc
|
||||
pyinstaller --clean --noconfirm vorta.spec
|
||||
cp -R bin/macosx64/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.4.1.zip Vorta.app
|
||||
rm -rf dist/vorta-0.4.1.dmg
|
||||
sleep 2; appdmg appdmg.json dist/vorta-0.4.1.dmg
|
||||
|
||||
github-release: Vorta.dmg
|
||||
pytest
|
||||
hub release create --prerelease --attach=dist/vorta-0.4.1.dmg v0.4.1
|
||||
|
||||
pypi-release:
|
||||
pytest
|
||||
python setup.py sdist
|
||||
twine upload dist/vorta-0.4.1.tar.gz
|
||||
|
||||
travis-debug:
|
||||
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
|
10
README.md
10
README.md
|
@ -48,7 +48,7 @@ Install in development/editable mode while in the repo:
|
|||
$ pip install -e .
|
||||
```
|
||||
|
||||
Then run via
|
||||
Then run as Python script:
|
||||
```
|
||||
$ vorta
|
||||
```
|
||||
|
@ -64,10 +64,10 @@ $ brew cask install qt-creator
|
|||
$ brew install qt
|
||||
```
|
||||
|
||||
To build a binary package:
|
||||
```
|
||||
$ pyinstaller --clean --noconfirm vorta.spec
|
||||
```
|
||||
To build a macOS app package:
|
||||
- add `Sparkle.framework` from [here](https://github.com/sparkle-project/Sparkle) and `borg` from [here](https://github.com/borgbackup/borg/releases) in `bin/macosx64`
|
||||
- then uncomment or change the Apple signing profile to be used in `Makefile`
|
||||
- finally run to `$ make Vorta.app` to build the app into the `dist` folder.
|
||||
|
||||
### Testing (work in progress)
|
||||
|
||||
|
|
Loading…
Reference in a new issue