From ef5b630db00459c31aa17cda80f8bcb33ca04c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9lanie=20Bats?= Date: Fri, 18 Nov 2016 11:37:37 +0100 Subject: [PATCH] Create DMG for Mac bundle --- .travis.yml | 12 +++++++++++- prepare-deploy-local-dir.sh | 2 ++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 542dea283..6d35bcb42 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,9 @@ env: - ZULU_JDK_URL="http://cdn.azul.com/zulu/bin/$ZULU_JDK" -sudo: false +sudo: required +before_install: + - sudo apt-get install hfsprogs before_script: - gem install jekyll --version '= 1.5.1' - gem install RedCloth @@ -63,6 +65,14 @@ script: - mvn clean verify # Build uml designer products - mvn clean verify -f releng/org.obeonetwork.dsl.uml2.product.parent/pom.xml +# Build Mac DMG +- dd if=/dev/zero of=./UMLDesigner.dmg bs=1M count=330 +- mkfs.hfsplus -v UMLDesigner ./UMLDesigner.dmg +- sudo mkdir /mnt/foo +- sudo mount -o loop ./UMLDesigner.dmg /mnt/foo +- sudo cp -r packaging/org.obeonetwork.dsl.uml2.product/target/products/org.obeonetwork.dsl.uml2.branding.product/macosx/cocoa/x86_64/UMLDesigner.app /mnt/foo/ +- sudo umount /mnt/foo +- zip -r UMLDesigner-macosx.cocoa.x86_64.dmg.zip UMLDesigner.dmg # Prepare local dirs to deploy: copy repository, bundles and tp - chmod a+x prepare-deploy-local-dir.sh - echo "$TRAVIS_TAG" diff --git a/prepare-deploy-local-dir.sh b/prepare-deploy-local-dir.sh index 3bdf2b41f..36a7a746f 100755 --- a/prepare-deploy-local-dir.sh +++ b/prepare-deploy-local-dir.sh @@ -7,9 +7,11 @@ echo "Prepare deploy local dir = ${DEPLOY_LOCAL_DIR}" # Create nightly folder mkdir $DEPLOY_LOCAL_DIR # Copy update-site and target platform to deploy local dir +mv $TRAVIS_BUILD_DIR/UMLDesigner-macosx.cocoa.x86_64.dmg.zip $DEPLOY_LOCAL_DIR cp -r $UPDATE_SITE_DIR/repository $DEPLOY_LOCAL_DIR cp -r $UPDATE_SITE_DIR/*.zip $DEPLOY_LOCAL_DIR cp -r $TP $DEPLOY_LOCAL_DIR +cp -r UMLDesigner.zip $DEPLOY_LOCAL_DIR echo "ls ${DEPLOY_LOCAL_DIR}" ls $DEPLOY_LOCAL_DIR # Create bundles folder