Skip to content

Commit

Permalink
Create DMG for Mac bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
mbats committed Nov 18, 2016
1 parent 9a31505 commit ef5b630
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions prepare-deploy-local-dir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef5b630

Please sign in to comment.