update permission, include shell script to archive

This commit is contained in:
Anthony Calosa
2024-10-21 20:35:24 +08:00
committed by Chris H
parent 9a36808611
commit ec9209ceb6
2 changed files with 11 additions and 3 deletions

View File

@@ -160,6 +160,7 @@
<!-- Windows/Linux archive -->
<mkdir dir="${project.build.directory}/${project.build.finalName}" />
<copy todir="${project.build.directory}/${project.build.finalName}">
<fileset dir="${project.build.directory}/../../forge-gui-desktop/target" includes="forge.sh" />
<fileset dir="${project.build.directory}/../../forge-gui-desktop/target" includes="forge.command" />
<fileset dir="${project.build.directory}/../../forge-gui-desktop/target" includes="forge.cmd" />
<fileset dir="${basedir}/../forge-gui/" includes="forge.profile.properties.example" />
@@ -179,10 +180,12 @@
<fileset dir="${project.build.directory}/../../forge-gui-desktop/target" includes="forge.exe" />
<fileset dir="${project.build.directory}/../../adventure-editor/tools" includes="gdx-particle-editor.jar" />
<fileset dir="${project.build.directory}/../../adventure-editor/target" includes="adventure-editor.exe" />
<fileset dir="${project.build.directory}/../../adventure-editor/target" includes="adventure-editor.sh" />
<fileset dir="${project.build.directory}/../../adventure-editor/target" includes="adventure-editor.command" />
<fileset dir="${project.build.directory}/../../adventure-editor/target" includes="adventure-editor.cmd" />
<fileset dir="${project.build.directory}/../../adventure-editor/target" includes="adventure-editor-jar-with-dependencies.jar" />
<fileset dir="${project.build.directory}/../../forge-gui-mobile-dev/target" includes="forge-adventure.exe" />
<fileset dir="${project.build.directory}/../../forge-gui-mobile-dev/target" includes="forge-adventure.sh" />
<fileset dir="${project.build.directory}/../../forge-gui-mobile-dev/target" includes="forge-adventure.command" />
<fileset dir="${project.build.directory}/../../forge-gui-mobile-dev/target" includes="forge-adventure.cmd" />
<fileset dir="${project.build.directory}/../../forge-gui-mobile-dev/target" includes="forge-gui-mobile-dev-${project.version}-jar-with-dependencies.jar" />
@@ -190,10 +193,13 @@
</copy>
<mkdir dir="${project.build.directory}/${project.build.finalName}/res/cardsfolder" />
<zip destfile="${project.build.directory}/${project.build.finalName}/res/cardsfolder/cardsfolder.zip" basedir="${basedir}/../forge-gui/res/cardsfolder" level="1" />
<chmod file="${project.build.directory}/${project.build.finalName}/forge.sh" perm="a+rx" />
<chmod file="${project.build.directory}/${project.build.finalName}/forge.command" perm="a+rx" />
<chmod file="${project.build.directory}/${project.build.finalName}/forge.cmd" perm="a+rx" />
<chmod file="${project.build.directory}/${project.build.finalName}/forge-adventure.sh" perm="a+rx" />
<chmod file="${project.build.directory}/${project.build.finalName}/forge-adventure.command" perm="a+rx" />
<chmod file="${project.build.directory}/${project.build.finalName}/forge-adventure.cmd" perm="a+rx" />
<chmod file="${project.build.directory}/${project.build.finalName}/adventure-editor.sh" perm="a+rx" />
<chmod file="${project.build.directory}/${project.build.finalName}/adventure-editor.command" perm="a+rx" />
<chmod file="${project.build.directory}/${project.build.finalName}/adventure-editor.cmd" perm="a+rx" />
<chmod file="${project.build.directory}/${project.build.finalName}/forge.exe" perm="a+rx" />
@@ -209,15 +215,15 @@
<chmod file="${basedir}/target/adventure-editor.sh" perm="a+rx" />
<tar destfile="${basedir}/target/${project.build.finalName}.tar.bz2" compression="bzip2">
<tarfileset filemode="755" dir="${project.build.directory}/${project.build.finalName}">
<exclude name="forge.sh" />
<include name="forge.sh" />
<include name="forge.command" />
<include name="forge.cmd" />
<include name="forge.exe" />
<exclude name="forge-adventure.sh" />
<include name="forge-adventure.sh" />
<include name="forge-adventure.command" />
<include name="forge-adventure.cmd" />
<include name="forge-adventure.exe" />
<exclude name="adventure-editor.sh" />
<include name="adventure-editor.sh" />
<include name="adventure-editor.command" />
<include name="adventure-editor.cmd" />
<include name="adventure-editor.exe" />