mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-13 01:23:44 +00:00
Debian package
This commit is contained in:
BIN
ant-deb-0.0.1.jar
Normal file
BIN
ant-deb-0.0.1.jar
Normal file
Binary file not shown.
33
build.xml
33
build.xml
@@ -61,8 +61,37 @@
|
||||
|
||||
<property name="RUNPARAMS" value=""/>
|
||||
|
||||
<property name="website.upload.url" value="https://www.free-decompiler.com/flash/release.html?action=release" />
|
||||
<property name="website.version.url" value="https://www.free-decompiler.com/flash/release.html?action=versionid" />
|
||||
<property name="website.upload.url" value="https://www.free-decompiler.com/flash/release/release" />
|
||||
<property name="website.version.url" value="https://www.free-decompiler.com/flash/release/versionid" />
|
||||
|
||||
<property name="app.vendor.mail" value="flash@free-decompiler.com" />
|
||||
|
||||
<property name="app.osx.dir" value="FFDec" />
|
||||
<property name="app.deb.desktop.file" value="FFDec" />
|
||||
<property name="app.script" value="ffdec.sh" />
|
||||
<property name="app.package" value="ffdec" />
|
||||
<property name="app.package.depends" value="oracle-java8-jre" />
|
||||
|
||||
<property name="app.description.short" value="Decompiler and editor of Flash SWF files" />
|
||||
<property name="app.description">JPEXS Free Flash Decompiler (FFDec) is opensource flash SWF decompiler and editor. Extract resources, convert SWF to FLA, edit ActionScript, replace images, sounds, texts or fonts. Various output formats available. Works with Java on Windows, Linux or MacOS.
|
||||
|
||||
Key Features:
|
||||
- Exporting scripts, images, shapes, movies, sounds, fonts...
|
||||
- SWF to FLA conversion
|
||||
- SWF to XML export and import again
|
||||
- Various output formats like SVG or HTML5 Canvas
|
||||
- Displaying ActionScript source code.
|
||||
- Experimental direct editing of ActionScript source
|
||||
- Editing via assembler source
|
||||
- Both ActionScript 1/2 and AS3 support
|
||||
- Clicking decompiled source highlights P-code associated instruction and vice-versa
|
||||
- Replacing images, editing texts, fonts and other tags
|
||||
- Displaying SWF resources (shapes, sprites, fonts, buttons...)
|
||||
- Hexadecimal dump view with color hilighting also available
|
||||
- Built-in proxy server for editing SWF files which come through it
|
||||
- Java based code which supports multiple platforms
|
||||
- Multilanguage support (see language list)
|
||||
- Can decompile some kinds of obfuscated code too</property>
|
||||
|
||||
<import file="${basedir}/build_common.xml"/>
|
||||
</project>
|
||||
|
||||
@@ -29,6 +29,13 @@
|
||||
<pathelement location="${TESTLIBDIR}/emma_ant.jar"/>
|
||||
</path>
|
||||
<taskdef resource="emma_ant.properties" classpathref="emma.lib"/>
|
||||
|
||||
<path id="ant-deb.classpath">
|
||||
<pathelement location="${basedir}/ant-deb-0.0.1.jar"/>
|
||||
</path>
|
||||
|
||||
<taskdef name="deb" classname="com.googlecode.ant_deb_task.Deb" classpathref="ant-deb.classpath"/>
|
||||
<taskdef name="desktopentry" classname="com.googlecode.ant_deb_task.DesktopEntry" classpathref="ant-deb.classpath"/>
|
||||
|
||||
<target name="-loadversion" depends="-loadversion-prop,-loadversion-private">
|
||||
|
||||
@@ -186,17 +193,48 @@
|
||||
<target name="archive" depends="-loadversion,dist">
|
||||
<mkdir dir="${RELEASESDIR}"/>
|
||||
<property name="zip.file" value="${RELEASESDIR}/${PREFIXFILENAME}_${VERSION}${VERSIONSUFFIX}.zip" />
|
||||
<zip destfile="${zip.file}" basedir="${DISTRIBUTIONDIR}" excludes="ffdec.sh">
|
||||
<zipfileset dir="${DISTRIBUTIONDIR}" includes="ffdec.sh" fullpath="ffdec.sh" filemode="755"/>
|
||||
<zip destfile="${zip.file}" basedir="${DISTRIBUTIONDIR}" excludes="${app.script}">
|
||||
<zipfileset dir="${DISTRIBUTIONDIR}" includes="${app.script}" fullpath="${app.script}" filemode="755"/>
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
|
||||
|
||||
<target name="deb" depends="-loadversion,dist">
|
||||
<mkdir dir="${RELEASESDIR}"/>
|
||||
<tempfile property="app.deb.desktop.temp" deleteonexit="true" prefix="desktop"/>
|
||||
<desktopentry
|
||||
toFile="${app.deb.desktop.temp}"
|
||||
name="${PRODUCTNAME}"
|
||||
comment="${app.description.short}"
|
||||
exec="/usr/bin/${app.package}"
|
||||
icon="/usr/share/java/${app.package}/icon.png"
|
||||
categories="Development;Network;Utility;WebDevelopment;Java"
|
||||
/>
|
||||
<deb
|
||||
package="${app.package}"
|
||||
todir="${RELEASESDIR}"
|
||||
debFilenameProperty="deb.file"
|
||||
section="editors"
|
||||
depends="${app.package.depends}">
|
||||
<version upstream="${VERSION}" />
|
||||
<maintainer name="${VENDOR}" email="${app.vendor.mail}"/>
|
||||
<description synopsis="${app.description.short}">${app.description}</description>
|
||||
<tarfileset dir="${DISTRIBUTIONDIR}" prefix="usr/share/java/${app.package}">
|
||||
<include name="**"/>
|
||||
</tarfileset>
|
||||
<tarfileset file="${DISTRIBUTIONDIR}/${app.script}" fullpath="usr/bin/${app.package}" filemode="755" />
|
||||
<tarfileset file="${app.deb.desktop.temp}" fullpath="usr/share/applications/${app.deb.desktop.file}.desktop"/>
|
||||
</deb>
|
||||
<delete file="${app.deb.desktop.temp}" />
|
||||
</target>
|
||||
|
||||
<target name="osx-app-archive" depends="-loadversion,dist">
|
||||
<mkdir dir="${RELEASESDIR}"/>
|
||||
<property name="osx.zip.file" value="${RELEASESDIR}/${PREFIXFILENAME}_${VERSION}${VERSIONSUFFIX}_macosx.zip" />
|
||||
<tempfile property="app.script.temp" deleteonexit="true" />
|
||||
<echo file="${app.script.temp}">#!/bin/bash cd "$(dirname "$${BASH_SOURCE[0]}")" cd ../Resources ./ffdec.sh</echo>
|
||||
<tempfile property="app.info.temp" deleteonexit="true" />
|
||||
<tempfile property="app.script.temp" deleteonexit="true" prefix="appscript" />
|
||||
<echo file="${app.script.temp}">#!/bin/bash cd "$(dirname "$${BASH_SOURCE[0]}")" cd ../Resources ./${app.script}</echo>
|
||||
<tempfile property="app.info.temp" deleteonexit="true" prefix="appinfo" />
|
||||
<echo file="${app.info.temp}"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
@@ -225,10 +263,10 @@
|
||||
</plist>]]></echo>
|
||||
|
||||
<zip destfile="${osx.zip.file}">
|
||||
<zipfileset file="${app.script.temp}" fullpath="FFDec.app/Contents/MacOS/FFDec" filemode="755" />
|
||||
<zipfileset file="${app.info.temp}" fullpath="FFDec.app/Contents/Info.plist" />
|
||||
<zipfileset dir="${DISTRIBUTIONDIR}" excludes="ffdec.sh" prefix="FFDec.app/Contents/Resources/" />
|
||||
<zipfileset dir="${DISTRIBUTIONDIR}" includes="ffdec.sh" fullpath="FFDec.app/Contents/Resources/ffdec.sh" filemode="755" />
|
||||
<zipfileset file="${app.script.temp}" fullpath="${app.osx.dir}.app/Contents/MacOS/${app.osx.dir}" filemode="755" />
|
||||
<zipfileset file="${app.info.temp}" fullpath="${app.osx.dir}.app/Contents/Info.plist" />
|
||||
<zipfileset dir="${DISTRIBUTIONDIR}" excludes="${app.script}" prefix="${app.osx.dir}.app/Contents/Resources/" />
|
||||
<zipfileset dir="${DISTRIBUTIONDIR}" includes="${app.script}" fullpath="${app.osx.dir}.app/Contents/Resources/${app.script}" filemode="755" />
|
||||
</zip>
|
||||
<delete file="${app.script.temp}" />
|
||||
<delete file="${app.info.temp}" />
|
||||
@@ -329,7 +367,7 @@
|
||||
|
||||
</target>
|
||||
|
||||
<target name="release" depends="library,archive,osx-app-archive,installer,locales">
|
||||
<target name="release" depends="library,archive,deb,osx-app-archive,installer,locales">
|
||||
|
||||
</target>
|
||||
|
||||
@@ -413,6 +451,10 @@
|
||||
<arg value="-file" />
|
||||
<arg value="fileOSXZip" />
|
||||
<arg value="${osx.zip.file}" />
|
||||
|
||||
<arg value="-file" />
|
||||
<arg value="fileDeb" />
|
||||
<arg value="${deb.file}" />
|
||||
|
||||
<arg value="-file" />
|
||||
<arg value="fileLang" />
|
||||
@@ -747,5 +789,5 @@
|
||||
|
||||
<target name="upload-last" depends="all,-upload">
|
||||
|
||||
</target>
|
||||
</target>
|
||||
</project>
|
||||
|
||||
@@ -12,7 +12,7 @@ REQ_JVER4=0
|
||||
MEMORY=1024m
|
||||
|
||||
search_jar_file() {
|
||||
JAR_FILE_CANDIDATES='./ffdec.jar ../dist/ffdec.jar /usr/share/java/ffdec.jar /usr/share/java/jpexs-decompiler/ffdec.jar'
|
||||
JAR_FILE_CANDIDATES='./ffdec.jar ../dist/ffdec.jar /usr/share/java/ffdec.jar /user/share/java/ffdec/ffdec.jar /usr/share/java/jpexs-decompiler/ffdec.jar'
|
||||
for f in $JAR_FILE_CANDIDATES ; do
|
||||
[ -r "$f" ] && JAR_FILE="$f" && return 0
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user