Skip to content

Commit

Permalink
[build] Configure jpackage OSX resources
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Feb 22, 2022
1 parent 414f704 commit 1bb330e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions jreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ assemble:
packageName: JReleaser
packageIdentifier: org.jreleaser.cli
icon: 'src/media/jreleaser.icns'
resourceDir: 'src/jpackage/osx'
linux:
types: [deb,rpm]
maintainer: jreleaser@kordamp.org
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/jpackage/osx/jreleaser-background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/jpackage/osx/postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env sh

TARGET_DIR="/usr/local/bin"

if [ ! -d $TARGET_DIR ]
then
mkdir -p $TARGET_DIR
fi

ln -Ffs "$2/jreleaser.app/Contents/MacOS/jreleaser" "$TARGET_DIR/jreleaser"

exit 0

0 comments on commit 1bb330e

Please sign in to comment.