You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build-installer.xml 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="DMDirc-installer" default="default" basedir=".">
  3. <description>Tasks to build the DMDirc installer.</description>
  4. <target name="-installer-build" if="has.bash">
  5. <exec executable="/bin/bash" dir="installer" resultproperty="installer.result">
  6. <arg value="release.sh"/>
  7. <arg value="this"/>
  8. </exec>
  9. <condition property="installer.success">
  10. <equals arg1="${installer.result}" arg2="0" />
  11. </condition>
  12. <echo message="Installer build finished."/>
  13. <echo message="Completed build files can be found in:"/>
  14. <echo message=" ${installer.output.dir}"/>
  15. <echo message=""/>
  16. </target>
  17. <target name="-installer-build-stable" if="has.bash">
  18. <exec executable="/bin/bash" dir="installer" resultproperty="installer.result">
  19. <arg value="release.sh"/>
  20. <arg value="-t"/>
  21. <arg value="-c"/>
  22. <arg value="STABLE"/>
  23. <arg value="--upload"/>
  24. </exec>
  25. <condition property="installer.success">
  26. <equals arg1="${installer.result}" arg2="0" />
  27. </condition>
  28. <echo message="Installer build finished."/>
  29. <echo message="Completed build files can be found in:"/>
  30. <echo message=" ${installer.output.dir}"/>
  31. <echo message=""/>
  32. </target>
  33. <target name="-installer-build-unstable" if="has.bash">
  34. <exec executable="/bin/bash" dir="installer" resultproperty="installer.result">
  35. <arg value="release.sh"/>
  36. <arg value="-t"/>
  37. <arg value="-c"/>
  38. <arg value="UNSTABLE"/>
  39. </exec>
  40. <condition property="installer.success">
  41. <equals arg1="${installer.result}" arg2="0" />
  42. </condition>
  43. <echo message="Installer build finished."/>
  44. <echo message="Completed build files can be found in:"/>
  45. <echo message=" ${installer.output.dir}"/>
  46. <echo message=""/>
  47. </target>
  48. <target name="-installer-nobuild" unless="has.bash">
  49. <echo message="This task only works on linux"/>
  50. </target>
  51. <target name="installer" depends="-installer-nobuild, -installer-build"
  52. description="Build the installer." />
  53. <target name="installer-stable" depends="-installer-nobuild, -installer-build-stable"
  54. description="Build the installer for a stable release." />
  55. <target name="installer-unstable" depends="-installer-nobuild, -installer-build-unstable"
  56. description="Build the installer for an unstable release." />
  57. </project>