Commit bdc1f103 by Tobias

added configuration to build deb-packages

1 parent 1a6e0f72
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>stegosuite</groupId>
<groupId>org.stegosuite</groupId>
<artifactId>stegosuite</artifactId>
<version>0.9-SNAPSHOT</version>
<name>Stegosuite</name>
<description>A free steganography and steganlysis tool to hide information in image files.</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
......@@ -41,6 +43,8 @@
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<finalName>${project.artifactId}-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<archive>
<manifest>
<mainClass>org.stegosuite.Stegosuite</mainClass>
......@@ -67,6 +71,66 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>jdeb</artifactId>
<groupId>org.vafer</groupId>
<version>1.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jdeb</goal>
</goals>
<configuration>
<dataSet>
<data>
<src>${project.build.directory}/${project.build.finalName}.jar</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/usr/share/stegosuite</prefix>
</mapper>
</data>
<data>
<src>${project.basedir}/src/deb/data/stegosuite</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/usr/bin/</prefix>
<user>root</user>
<group>root</group>
<filemode>755</filemode>
</mapper>
</data>
<data>
<src>${project.basedir}/src/deb/data/stegosuite.desktop</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/usr/share/applications/</prefix>
<user>root</user>
<group>root</group>
<filemode>755</filemode>
</mapper>
</data>
<data>
<src>${project.basedir}/src/deb/data/stegosuite.png</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/usr/share/stegosuite/icons/</prefix>
<user>root</user>
<group>root</group>
<filemode>755</filemode>
</mapper>
</data>
</dataSet>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
......
Package: [[name]]
Version: [[version]]
Section: graphics
Priority: optional
Architecture: amd64
Description: [[description]]
Maintainer: Stegosuite Developers
\ No newline at end of file
#!/bin/bash
DIRNAME="/usr/share/stegosuite"
STEGOSUITEJAR=$(echo $DIRNAME/stegosuite-*.jar)
# Setup the classpath
if [ ! -f "$STEGOSUITEJAR" ]; then
die "Missing required file: $STEGOSUITEJAR"
fi
STEGOSUITE_CLASSPATH="$STEGOSUITEJAR"
java -jar $STEGOSUITE_CLASSPATH $@
[Desktop Entry]
Name=Stegosuite
Categories=Graphics;
Comment=A steganography and steganalysis tool
Encoding=UTF-8
Exec=stegosuite
Icon=/usr/share/stegosuite/icons/stegosuite.png
MimeType=
Terminal=false
Type=Application
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!