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.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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="-c -t"/>
  21. </exec>
  22. <condition property="installer.success">
  23. <equals arg1="${installer.result}" arg2="0" />
  24. </condition>
  25. <echo message="Installer build finished."/>
  26. <echo message="Completed build files can be found in:"/>
  27. <echo message=" ${installer.output.dir}"/>
  28. <echo message=""/>
  29. </target>
  30. <target name="-installer-build-unstable" if="has.bash">
  31. <exec executable="/bin/bash" dir="installer" resultproperty="installer.result">
  32. <arg value="release.sh"/>
  33. <arg value="-c UNSTABLE -t"/>
  34. </exec>
  35. <condition property="installer.success">
  36. <equals arg1="${installer.result}" arg2="0" />
  37. </condition>
  38. <echo message="Installer build finished."/>
  39. <echo message="Completed build files can be found in:"/>
  40. <echo message=" ${installer.output.dir}"/>
  41. <echo message=""/>
  42. </target>
  43. <target name="-installer-nobuild" unless="has.bash">
  44. <echo message="This task only works on linux"/>
  45. </target>
  46. <target name="installer" depends="-installer-nobuild, -installer-build"
  47. description="Build the installer." />
  48. <target name="installer-stable" depends="-installer-nobuild, -installer-build-stable"
  49. description="Build the installer for a stable release." />
  50. <target name="installer-unstable" depends="-installer-nobuild, -installer-build-unstable"
  51. description="Build the installer for an unstable release." />
  52. </project>