Skip to content

Commit

Permalink
Gradle: Add post/pre install MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
SonarSonic committed Sep 17, 2024
1 parent eb7520b commit 2415eb9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/resources/jpackage/postinstall.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh

chown root:wheel "INSTALL_LOCATION"
chmod a+rX "INSTALL_LOCATION"
chmod +r "APP_LOCATION/"*.jar

exit 0
8 changes: 8 additions & 0 deletions src/main/resources/jpackage/preinstall.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env sh

if [ ! -d "INSTALL_LOCATION" ]
then
mkdir -p "INSTALL_LOCATION"
fi

exit 0

0 comments on commit 2415eb9

Please sign in to comment.