Added new ant task to build .deb binary distribution package

This commit is contained in:
Kyle Feuz
2014-07-17 11:06:11 -07:00
parent cde6050277
commit 708a69e6d6
3 changed files with 80 additions and 2 deletions
+62 -2
View File
@@ -696,7 +696,7 @@
<exec executable="./processing" dir="linux/work" spawn="true"/>
</target>
<target name="linux-dist" depends="linux-build"
<target name="linux-dist-tar" depends="linux-build"
description="Build .tar.gz of linux version">
<!--
@@ -730,7 +730,67 @@
</echo>
</target>
<target name="linux-dist" depends="linux-dist-tar"
description="Build .deb of linux version">
<!-- setup the file structure -->
<mkdir dir="linux/debian/opt" />
<mkdir dir="linux/debian/usr/share/applications/" />
<mkdir dir="linux/debian/usr/share/mime/packages/" />
<mkdir dir="linux/debian/DEBIAN" />
<!-- rename the work folder temporarily -->
<move file="linux/work" tofile="linux/debian/opt/processing" />
<!-- place .desktop and .sharedmimeinfo file -->
<copy file="linux/processing.desktop" tofile="linux/debian/usr/share/applications/processing.desktop" />
<copy file="linux/processing.sharedmimeinfo" tofile="linux/debian/usr/share/mime/packages/processing.xml" />
<!-- Set properties for DEBIAN/control file -->
<property name="linux.dist" value="linux/processing-${version}-linux${sun.arch.data.model}.deb" />
<condition property="deb.arch" value="i386">
<equals arg1="${sun.arch.data.model}" arg2="32" />
</condition>
<condition property="deb.arch" value="amd64">
<equals arg1="${sun.arch.data.model}" arg2="64" />
</condition>
<!-- Create DEBIAN/control file. The spacing matters.-->
<echo file="linux/debian/DEBIAN/control" >Package: processing
Version: ${version}
Section: base
Priority: optional
Architecture: ${deb.arch}
Maintainer: Kyle Feuz &lt;kylefeuz@weber.edu&gt;
Description: Processing programming language and IDE
Processing is a programming language, development environment, and online community. Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology. Initially created to serve as a software sketchbook and to teach computer programming fundamentals within a visual context, Processing evolved into a development tool for professionals. Today, there are tens of thousands of students, artists, designers, researchers, and hobbyists who use Processing for learning, prototyping, and production.
</echo>
<!-- Create .deb file -->
<exec executable="fakeroot" dir="linux" failonerror="true">
<arg value="dpkg-deb" />
<arg value="--build" />
<arg value="debian" />
<arg value="../${linux.dist}" />
</exec>
<!-- put... the candle... back -->
<!-- (rename the debian processing version to work) -->
<move file="linux/debian/opt/processing" tofile="linux/work" />
<!-- cleanup -->
<delete dir="linux/debian" />
<echo>
=======================================================
Processing for Linux was built. Grab the deb from
${linux.dist}
=======================================================
</echo>
</target>
<!-- - - - - - - - -->
<!-- Windows -->
<!-- - - - - - - - -->
+10
View File
@@ -0,0 +1,10 @@
[Desktop Entry]
Version=2.1
Name=Processing
Comment=graphics and animation language
Exec=processing %F
Icon=/opt/processing/lib/icons/pde-256.png
Terminal=false
Type=Application
Categories=AudioVideo;Video;Graphics;Developer;
StartupWMClass=Processing
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="text/x-processing">
<comment>Processing source code</comment>
<sub-class-of type="text/x-csrc"/>
<glob pattern="*.pde"/>
</mime-type>
</mime-info>