Skip to content

Commit

Permalink
Added .dmg build
Browse files Browse the repository at this point in the history
  • Loading branch information
mappum committed Mar 1, 2015
1 parent fe6ae0c commit e7e4f53
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Binary file added build/app.dmg
Binary file not shown.
14 changes: 13 additions & 1 deletion build/app.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
#!/bin/sh

# build .app
APP_OUTPUT="target/Mercury Wallet.app"
cp -r build/app.app "$APP_OUTPUT"
cp "target/$1" "$APP_OUTPUT/Contents/Resources/Jars"
cp "target/$1.jar" "$APP_OUTPUT/Contents/Resources/Jars"

# build .dmg
DMG_TEMP="target/temp.dmg"
DMG_OUTPUT="target/$1.dmg"
cp build/app.dmg "$DMG_TEMP"
hdiutil attach "$DMG_TEMP"
MOUNT_PATH="/Volumes/Mercury Wallet"
cp -r "$APP_OUTPUT" "$MOUNT_PATH"
hdiutil detach "$MOUNT_PATH"
hdiutil convert "$DMG_TEMP" -format UDZO -imagekey zlib-level=9 -o "$DMG_OUTPUT"
rm "$DMG_TEMP"
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.coinswap</groupId>
<artifactId>mercury</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.1</version>
<name>Mercury Wallet</name>

<properties>
Expand Down Expand Up @@ -114,7 +114,7 @@
<configuration>
<executable>build/app.sh</executable>
<arguments>
<argument>${build.filename}.jar</argument>
<argument>${build.filename}</argument>
</arguments>
</configuration>
</plugin>
Expand Down

0 comments on commit e7e4f53

Please sign in to comment.