From cdb311a5018bdaeaa7f8b68e8e96ab17d6bff3e0 Mon Sep 17 00:00:00 2001 From: Job Evers-Meltzer Date: Tue, 21 Jun 2016 00:19:40 -0500 Subject: [PATCH] build dmg from LBRY.app --- .travis.yml | 2 +- packaging/osx/lbry-osx-app/setup_app.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e1ad1140c..17b041f47 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,7 +42,7 @@ deploy: provider: releases file: - "${TRAVIS_BUILD_DIR}/`python setup.py --name`_`python setup.py -V`_amd64.deb" - - "${TRAVIS_BUILD_DIR}/packaging/osx/lbry-osx-app/LBRY.app" + - "${TRAVIS_BUILD_DIR}/packaging/osx/lbry-osx-app/`python setup.py --name`.`python setup.py -V`.dmg" skip_cleanup: true on: tags: true diff --git a/packaging/osx/lbry-osx-app/setup_app.sh b/packaging/osx/lbry-osx-app/setup_app.sh index b8c601522..1403a6d64 100755 --- a/packaging/osx/lbry-osx-app/setup_app.sh +++ b/packaging/osx/lbry-osx-app/setup_app.sh @@ -22,6 +22,8 @@ else cd ${TRAVIS_BUILD_DIR} LBRY=${TRAVIS_BUILD_DIR} fi +NAME=`python setup.py --name` +VERSION=`python setup.py -V` python setup.py install echo "Building URI Handler" @@ -71,3 +73,4 @@ codesign -vvvv "${DEST}/dist/LBRY.app" rm -rf $tmp mv dist/LBRY.app LBRY.app rm -rf dist +hdiutil create "${NAME}.${VERSION}.dmg" -volname lbry -srcfolder LBRY.app