Skip to content

Commit

Permalink
Fixed executable permissions in Mac DMG
Browse files Browse the repository at this point in the history
  • Loading branch information
gungwald committed Sep 27, 2023
1 parent c28b653 commit 6c10090
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .idea/ant.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,13 @@ because they are sandboxed and therefore can't access /usr/bin/mkfs.
<include name="Rune.app/**"/>
</fileset>
</copy>
<!-- Ant's 'copy' command drops permissions so, they need to be reset after each copy. -->
<chmod perm="a+rx" verbose="true">
<fileset file="${build.dir}/dmg-mount/Rune.app/Contents/MacOS/rune"/>
<fileset file="${build.dir}/dmg-mount/Rune.app/Contents/MacOS/rune-debug.sh"/>
<fileset file="${build.dir}/dmg-mount/Rune.app/Contents/MacOS/rune-out-of-mem-err-handler.sh"/>
</chmod>

<exec dir="${build.dir}" executable="sudo" failonerror="true">
<arg value="umount"/>
<arg value="--verbose"/>
Expand Down Expand Up @@ -287,10 +294,10 @@ because they are sandboxed and therefore can't access /usr/bin/mkfs.
installerType="standard"
inheritAll="true"
basedir="${izpack.root}"
compression="default"/>
/>
</target>

<target name="all" depends="dmg,izpack"/>
<target name="all" depends="dmg"/>

<target name="test" depends="all">
<java jar="${build.dir}/rune-install.jar" fork="true"/>
Expand Down

0 comments on commit 6c10090

Please sign in to comment.