Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

build-installer.xml 2.5KB

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