2014-08-01 07:47:39 -04:00
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2015-05-18 03:03:05 -04:00
<project name= "filebot" default= "fatjar" xmlns:ivy= "antlib:org.apache.ivy.ant" >
2014-08-01 07:47:39 -04:00
<!-- include default inputs (optional) -->
<property file= "profile.properties" />
<!-- include application properties -->
<property file= "source/net/filebot/Settings.properties" />
<property name= "title" value= "${application.name}" />
<property name= "version" value= "${application.version}" />
<tstamp >
<format property= "today" pattern= "yyyy-MM-dd" />
</tstamp>
<!-- define source dirs -->
<property name= "dir.source" location= "${basedir}/source" />
<property name= "dir.test" location= "${basedir}/test" />
<property name= "dir.build" location= "${basedir}/build" />
<property name= "dir.dist" location= "${basedir}/dist" />
<property name= "dir.lib" location= "${basedir}/lib" />
<property name= "dir.website" location= "${basedir}/website" />
<property name= "dir.installer" location= "${basedir}/installer" />
<!-- define output paths -->
<property name= "path.fatjar" location= "${dir.dist}/${title}_${version}.jar" />
2015-05-29 05:23:01 -04:00
<property name= "path.appbundle.tar" location= "${dir.dist}/${title}_${version}-brew.tar.bz2" />
2014-08-01 07:47:39 -04:00
<property name= "path.source.zip" location= "${dir.dist}/filebot-${version}-src.zip" />
<property name= "basedir.release" location= "${basedir}/release" />
<property name= "dir.release" location= "${basedir.release}/${title}_${version}" />
<property name= "frs.release" value= "web.sourceforge.net:/home/frs/project/f/fi/filebot/filebot" />
<property name= "frs.website" value= "web.sourceforge.net:htdocs" />
2015-05-18 03:03:05 -04:00
<target name= "resolve" description= "Retrieve dependencies with Apache Ivy" >
<delete dir= "${dir.lib}/ivy" />
<ivy:retrieve pattern= "${dir.lib}/ivy/[type]/[artifact].[ext]" />
</target>
2015-05-18 03:44:04 -04:00
<path id= "jars.classpath" >
2015-05-18 04:51:11 -04:00
<fileset dir= "${dir.lib}" includes= "**/*.jar" excludes= "**/*-jdk14.jar" />
2015-05-18 03:03:05 -04:00
</path>
2014-08-01 07:47:39 -04:00
<target name= "jar" depends= "build" >
<!-- create dist dir -->
<mkdir dir= "${dir.dist}" />
<!-- main jar -->
<jar destfile= "${dir.dist}/filebot.jar" >
<manifest >
<attribute name= "Built-By" value= "${user.name}" />
<attribute name= "Built-Date" value= "${today}" />
<attribute name= "Built-Revision" value= "${svn.revision}" />
<attribute name= "Application-Name" value= "${title}" />
<attribute name= "Application-Version" value= "${version}" />
<attribute name= "Main-Class" value= "net.filebot.Main" />
</manifest>
<fileset dir= "${dir.build}" excludes= "**/*Test*" />
</jar>
<!-- extra jar containing all the unit tests -->
<jar destfile= "${dir.dist}/filebot-test.jar" >
<fileset dir= "${dir.build}" includes= "**/*Test*" />
</jar>
<!-- source as zip -->
<zip destfile= "${path.source.zip}" >
<fileset dir= "source" />
<fileset dir= "test" />
</zip>
</target>
2015-05-18 03:44:04 -04:00
<target name= "fatjar" depends= "resolve, jar" description= "Merge all class files into a single executable jar file" >
2014-08-01 07:47:39 -04:00
<jar destfile= "${path.fatjar}" filesetmanifest= "merge" duplicate= "fail" index= "yes" >
<!-- include main jar -->
<zipfileset src= "${dir.dist}/filebot.jar" />
<!-- include libs -->
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/bundle/json-simple.jar" >
2014-08-01 07:47:39 -04:00
<include name= "org/json/simple/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/json-io.jar" >
2014-08-01 07:47:39 -04:00
<include name= "com/cedarsoftware/util/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/glazedlists_java15.jar" >
2014-08-01 07:47:39 -04:00
<include name= "ca/odell/glazedlists/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/miglayout-core.jar" >
2014-08-01 07:47:39 -04:00
<include name= "net/miginfocom/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/miglayout-swing.jar" >
2014-08-01 07:47:39 -04:00
<include name= "net/miginfocom/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/rsyntaxtextarea.jar" >
2014-08-01 07:47:39 -04:00
<include name= "org/fife/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/jars/simmetrics.jar" >
2014-08-06 08:03:16 -04:00
<include name= "uk/ac/shef/wit/simmetrics/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/jars/xmlrpc.jar" >
2014-08-01 07:47:39 -04:00
<include name= "redstone/xmlrpc/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/bundle/args4j.jar" >
2014-08-01 07:47:39 -04:00
<include name= "org/kohsuke/args4j/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/xz.jar" >
2014-08-01 07:47:39 -04:00
<include name= "org/tukaani/xz/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/ehcache.jar" >
2014-08-01 07:47:39 -04:00
<include name= "META-INF/services/**" />
<include name= "net/sf/ehcache/**" />
<include name= "org/terracotta/**" />
<include name= "ehcache-failsafe.xml" />
<include name= "build-info.properties" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/slf4j-api.jar" >
2014-08-01 07:47:39 -04:00
<include name= "org/slf4j/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/slf4j-jdk14.jar" >
2014-08-01 07:47:39 -04:00
<include name= "org/slf4j/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/commons-io.jar" >
2014-08-01 07:47:39 -04:00
<include name= "org/apache/commons/io/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/icu4j.jar" >
2014-08-06 08:03:16 -04:00
<include name= "com/ibm/icu/**" />
2014-08-01 07:47:39 -04:00
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/jars/jacksum.jar" >
2014-08-06 08:03:16 -04:00
<include name= "jonelo/jacksum/adapt/**" />
<include name= "jonelo/jacksum/algorithm/**" />
<include name= "jonelo/sugar/util/**" />
2014-08-01 07:47:39 -04:00
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/groovy-all.jar" >
2014-08-01 07:47:39 -04:00
<include name= "groovy*/**" />
<include name= "org/codehaus/groovy/**" />
<include name= "META-INF/dgminfo" />
<include name= "META-INF/services/**" />
<include name= "META-INF/*.properties" />
<!-- filebot already includes it's own extension modules -->
<exclude name= "META-INF/services/org.codehaus.groovy.runtime.ExtensionModule" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/jars/sevenzipjbinding.jar" >
2014-08-06 08:03:16 -04:00
<include name= "net/sf/sevenzipjbinding/**" />
2014-08-01 07:47:39 -04:00
</zipfileset>
2015-05-18 04:39:05 -04:00
<zipfileset src= "${dir.lib}/jars/ObjCBridge.jar" >
2015-05-18 04:29:04 -04:00
<include name= "ca/weblite/**" />
2014-08-06 08:03:16 -04:00
<include name= "com/sun/jna/**" />
2014-08-01 07:47:39 -04:00
</zipfileset>
2014-08-06 08:03:16 -04:00
<!-- include classes and native libraries -->
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/jna.jar" >
2014-08-06 08:03:16 -04:00
<include name= "com/sun/jna/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/platform.jar" >
2014-08-06 08:03:16 -04:00
<include name= "com/sun/jna/platform/win32/**" />
2014-08-01 07:47:39 -04:00
</zipfileset>
2014-08-06 08:03:16 -04:00
<!-- libraries used in external scripts -->
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/jsoup.jar" >
2014-08-06 08:03:16 -04:00
<include name= "org/jsoup/**" />
2014-08-01 07:47:39 -04:00
</zipfileset>
<!-- Ivy for @Grapes automatic dependency management -->
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/ivy.jar" >
2014-08-01 07:47:39 -04:00
<include name= "org/apache/ivy/**" />
</zipfileset>
<!-- AntBuilder including dependencies for ant - javamail, ant - commons - net and ant - jsch -->
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/ant.jar" >
2014-08-01 07:47:39 -04:00
<include name= "org/apache/tools/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/ant-launcher.jar" >
2014-08-01 07:47:39 -04:00
<include name= "org/apache/tools/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/ant-commons-net.jar" >
2014-08-01 07:47:39 -04:00
<include name= "org/apache/tools/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/ant-jsch.jar" >
2014-08-01 07:47:39 -04:00
<include name= "org/apache/tools/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/ant-javamail.jar" >
2014-08-01 07:47:39 -04:00
<include name= "org/apache/tools/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/commons-net.jar" >
2014-08-01 07:47:39 -04:00
<include name= "org/apache/commons/net/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/jsch.jar" >
2014-08-01 07:47:39 -04:00
<include name= "com/jcraft/jsch/**" />
</zipfileset>
2015-05-18 03:44:04 -04:00
<zipfileset src= "${dir.lib}/ivy/jar/mail.jar" >
2014-08-01 07:47:39 -04:00
<include name= "javax/mail/**" />
<include name= "com/sun/mail/**" />
<include name= "META-INF/*mail*" />
</zipfileset>
</jar>
</target>
<target name= "appbundle" description= "Build an OSX application bundle" >
2015-05-18 03:44:04 -04:00
<taskdef name= "bundleapp" classname= "com.oracle.appbundler.AppBundlerTask" classpathref= "jars.classpath" />
2014-08-01 07:47:39 -04:00
2015-05-23 12:30:42 -04:00
<bundleapp minimumsystemversion= "10.8" outputdirectory= "${dir.dist}" name= "${title}" displayname= "${title}" shortversion= "${version}" identifier= "net.sourceforge.FileBot" mainclassname= "net.filebot.Main" icon= "${dir.installer}/appbundle/filebot.icns" copyright= "2015 Reinhard Pointner" applicationcategory= "public.app-category.productivity" highresolutioncapable= "true" supportsautomaticgraphicsswitching= "true" >
2014-08-01 07:47:39 -04:00
<classpath file= "${path.fatjar}" />
<librarypath dir= "${dir.lib}/native/mac-x86_64" />
2014-10-10 16:14:59 -04:00
<arch name= "x86_64" />
2015-05-10 03:29:54 -04:00
<option value= "-Dnet.filebot.UserFiles.fileChooser=COCOA" />
2014-08-01 07:47:39 -04:00
<option value= "-Dapplication.deployment=app" />
<option value= "-Dapplication.update=auto" />
<option value= "-Dunixfs=false" />
<option value= "-DuseExtendedFileAttributes=true" />
<option value= "-DuseCreationDate=false" />
<option value= "-Djava.net.useSystemProxies=true" />
<option value= "-Dsun.net.client.defaultConnectTimeout=10000" />
<option value= "-Dsun.net.client.defaultReadTimeout=60000" />
<option value= "-Dfile.encoding=UTF-8" />
2014-08-01 13:41:31 -04:00
<option value= "-Djna.nosys=true" />
2014-08-01 07:47:39 -04:00
<option value= "-Djna.library.path=$APP_ROOT/Contents/MacOS" />
<option value= "-Djava.library.path=$APP_ROOT/Contents/MacOS" />
<option value= "-Dnet.filebot.AcoustID.fpcalc=$APP_ROOT/Contents/MacOS/fpcalc" />
<option value= "-Xdock:name=${title}" />
<option value= "-Xdock:icon=Contents/Resources/filebot.icns" />
<option value= "-Dapple.laf.useScreenMenuBar=true" />
</bundleapp>
2015-05-22 02:37:43 -04:00
<!-- application bundle folder as .tar -->
<tar destfile= "${path.appbundle.tar}" compression= "bzip2" longfile= "gnu" >
2014-08-01 07:47:39 -04:00
<tarfileset dir= "${dir.dist}" includes= "${title}.app/**" excludes= "**/MacOS/**" />
<tarfileset dir= "${dir.dist}" includes= "${title}.app/**/**.dylib" />
<!-- IMPORTANT application stub must be executable!! -->
<tarfileset dir= "${dir.dist}" includes= "${title}.app/**/**Launcher" filemode= "755" />
<tarfileset dir= "${dir.dist}" includes= "${title}.app/**/fpcalc" filemode= "755" />
<tarfileset prefix= "${title}.app/Contents/MacOS" dir= "${dir.installer}/appbundle" includes= "*.sh" filemode= "755" />
</tar>
<!-- print SHA256 since we manually need to update brew cask filebot -->
2015-05-22 02:37:43 -04:00
<checksum file= "${path.appbundle.tar}" algorithm= "SHA-256" fileext= ".sha256" />
2014-08-01 07:47:39 -04:00
</target>
<target name= "appbundle-maspkg" depends= "svn-update, fatjar" >
2015-05-18 03:44:04 -04:00
<taskdef name= "bundleapp" classname= "com.oracle.appbundler.AppBundlerTask" classpathref= "jars.classpath" />
2014-08-01 07:47:39 -04:00
2015-05-04 11:40:46 -04:00
<property name= "jre.version" value= "jdk1.8.0_45.jdk" />
2014-08-21 07:48:14 -04:00
<property name= "jre.path" value= "/Library/Java/JavaVirtualMachines/${jre.version}/Contents/Home" />
2015-05-07 10:26:23 -04:00
<bundleapp minimumsystemversion= "10.8" executablename= "FileBotAppLauncher" version= "${svn.revision}" outputdirectory= "${dir.dist}" name= "${title}" displayname= "${title}" shortversion= "${version}" identifier= "net.filebot.FileBot" mainclassname= "net.filebot.Main" icon= "${dir.installer}/appbundle/filebot.icns" copyright= "2015 Reinhard Pointner" applicationcategory= "public.app-category.productivity" highresolutioncapable= "true" supportsautomaticgraphicsswitching= "true" >
2014-08-01 07:47:39 -04:00
<classpath file= "${path.fatjar}" />
<librarypath dir= "${dir.lib}/native/mac-x86_64" />
<arch name= "x86_64" />
2014-08-21 07:48:14 -04:00
<runtime dir= "${jre.path}" />
2014-08-01 07:47:39 -04:00
<!-- WORKING_DIR is sandbox data folder -->
<option value= "-Dapplication.dir=./Library/Application Support/User Data" />
<option value= "-Dapplication.cache=./Library/Caches/ehcache.disk.store" />
<option value= "-Djava.io.tmpdir=./Library/Caches/java.io.tmpdir" />
2014-11-07 08:26:54 -05:00
<option value= "-Dnet.filebot.UserFiles.fileChooser=COCOA" />
2014-08-01 07:47:39 -04:00
<option value= "-Dapplication.deployment=mas" />
<option value= "-Dapplication.update=skip" />
<option value= "-Dunixfs=false" />
<option value= "-DuseExtendedFileAttributes=true" />
<option value= "-DuseCreationDate=false" />
<option value= "-Djava.net.useSystemProxies=true" />
<option value= "-Dsun.net.client.defaultConnectTimeout=10000" />
<option value= "-Dsun.net.client.defaultReadTimeout=60000" />
<option value= "-Dfile.encoding=UTF-8" />
2014-08-01 13:41:31 -04:00
<option value= "-Djna.nosys=true" />
2014-08-01 07:47:39 -04:00
<option value= "-Djna.nounpack=true" />
2014-08-01 13:41:31 -04:00
<option value= "-Djna.boot.library.name=jnidispatch" />
<option value= "-Djna.boot.library.path=$APP_ROOT/Contents/MacOS" />
2014-08-01 07:47:39 -04:00
<option value= "-Djna.library.path=$APP_ROOT/Contents/MacOS" />
<option value= "-Djava.library.path=$APP_ROOT/Contents/MacOS" />
<option value= "-Dnet.filebot.AcoustID.fpcalc=$APP_ROOT/Contents/MacOS/fpcalc" />
<option value= "-Xdock:name=${title}" />
<option value= "-Xdock:icon=Contents/Resources/filebot.icns" />
<option value= "-Dapple.laf.useScreenMenuBar=true" />
2015-05-07 10:26:23 -04:00
2015-05-05 10:27:55 -04:00
<!-- enable logging by default -->
<argument value= "--log-file" />
2015-05-05 10:31:49 -04:00
<argument value= "filebot.log" />
2015-05-05 10:27:55 -04:00
<argument value= "--log-lock" />
<argument value= "false" />
2014-08-01 07:47:39 -04:00
</bundleapp>
2014-08-21 07:48:14 -04:00
<!-- fix code signing and submission issues -->
2014-10-11 12:22:44 -04:00
<delete verbose= "yes" >
<fileset dir= "${dir.dist}/FileBot.app/Contents/PlugIns" >
2015-05-23 14:57:09 -04:00
<include name= "**/libjfxmedia_qtkit.dylib" />
2014-10-11 12:22:44 -04:00
<include name= "**/Contents/Info.plist" />
<include name= "**/Contents/MacOS/libjli.dylib" />
</fileset>
2014-08-21 07:53:56 -04:00
</delete>
2014-10-11 12:22:44 -04:00
<copy verbose= "yes" failonerror= "yes" overwrite= "yes" file= "/Library/Java/JavaVirtualMachines/${jre.version}/Contents/Info.plist" tofile= "${dir.dist}/FileBot.app/Contents/PlugIns/${jre.version}/Contents/Info.plist" />
<copy verbose= "yes" failonerror= "yes" overwrite= "yes" file= "/Library/Java/JavaVirtualMachines/${jre.version}/Contents/MacOS/libjli.dylib" tofile= "${dir.dist}/FileBot.app/Contents/PlugIns/${jre.version}/Contents/MacOS/libjli.dylib" />
2014-08-01 07:47:39 -04:00
<!-- fix permissions -->
2014-10-11 12:22:44 -04:00
<chmod verbose= "yes" dir= "${dir.dist}" includes= "**/fpcalc" perm= "755" />
<chmod verbose= "yes" dir= "${dir.dist}/FileBot.app/Contents/PlugIns" perm= "+rw" />
2014-08-01 07:47:39 -04:00
2014-08-01 16:35:57 -04:00
<!-- JRE sign all jars, dylibs and executables -->
2015-05-25 13:15:41 -04:00
<property name= "path.pkg" value= "FileBot_${version}_r${svn.revision}.pkg" />
2015-05-16 17:55:44 -04:00
<property name= "codesign.opts" value= "--verbose=4 --force --sign '3rd Party Mac Developer Application: Point Planck Limited'" />
<property name= "codesign.entitlements" value= "--entitlements '${dir.installer}/appbundle/FileBot.entitlements'" />
<property name= "codesign.entitlements.inherit" value= "--entitlements '${dir.installer}/appbundle/inherit.entitlements'" />
2014-08-01 16:35:57 -04:00
<apply executable= "codesign" >
2015-05-16 17:55:44 -04:00
<arg line= "${codesign.opts} ${codesign.entitlements.inherit}" />
2014-08-01 16:35:57 -04:00
<srcfile />
<fileset dir= "${dir.dist}/FileBot.app/Contents/PlugIns" >
<include name= "**/jspawnhelper" />
<include name= "**/*.dylib" />
<include name= "**/*.jar" />
</fileset>
</apply>
2014-08-01 13:41:31 -04:00
2014-08-01 07:47:39 -04:00
<!-- sign cmdline tool first -->
2014-08-01 16:35:57 -04:00
<exec dir= "${dir.dist}/FileBot.app" executable= "codesign" >
2015-05-16 17:55:44 -04:00
<arg line= "${codesign.opts} ${codesign.entitlements.inherit} Contents/MacOS/fpcalc" />
2014-08-01 07:47:39 -04:00
</exec>
2014-08-01 16:35:57 -04:00
<!-- APP sign all jars, dylibs and executables -->
<apply executable= "codesign" >
2015-05-16 17:55:44 -04:00
<arg line= "${codesign.opts} ${codesign.entitlements}" />
2014-08-01 16:35:57 -04:00
<srcfile />
<fileset dir= "${dir.dist}/FileBot.app/Contents" >
2014-08-01 17:19:27 -04:00
<include name= "MacOS/*.dylib" />
2014-08-01 16:35:57 -04:00
<include name= "Java/*.jar" />
</fileset>
</apply>
2014-08-01 07:47:39 -04:00
<!-- sign app with entitlements -->
2014-08-01 13:41:31 -04:00
<exec dir= "${dir.dist}" executable= "codesign" >
2015-05-16 17:55:44 -04:00
<arg line= "${codesign.opts} ${codesign.entitlements} FileBot.app/Contents/PlugIns/${jre.version}" />
2014-08-01 13:41:31 -04:00
</exec>
2014-08-01 07:47:39 -04:00
<exec dir= "${dir.dist}" executable= "codesign" >
2015-05-16 17:55:44 -04:00
<arg line= "${codesign.opts} ${codesign.entitlements} FileBot.app" />
2014-08-01 07:47:39 -04:00
</exec>
<!-- verify signature & build pkg -->
2014-08-01 13:41:31 -04:00
<exec dir= "${dir.dist}" executable= "codesign" failonerror= "on" >
2014-08-21 07:48:14 -04:00
<arg line= "--verify FileBot.app/Contents/PlugIns/${jre.version}" />
2014-08-01 13:41:31 -04:00
</exec>
2014-08-01 07:47:39 -04:00
<exec dir= "${dir.dist}" executable= "codesign" failonerror= "on" >
2014-08-01 16:35:57 -04:00
<arg line= "--verify FileBot.app" />
2014-08-01 07:47:39 -04:00
</exec>
<exec dir= "${dir.dist}" executable= "productbuild" failonerror= "on" >
2015-05-25 13:15:41 -04:00
<arg line= "--component FileBot.app /Applications --sign '3rd Party Mac Developer Installer: Point Planck Limited' ${path.pkg}" />
2014-08-01 07:47:39 -04:00
</exec>
<!-- store this build in releases -->
<mkdir dir= "${dir.release}" />
2015-05-25 13:15:41 -04:00
<copy todir= "${dir.release}" file= "${dir.dist}/${path.pkg}" verbose= "yes" />
2014-08-01 07:47:39 -04:00
</target>
2014-12-22 16:35:14 -05:00
<target name= "ubuntu-debsrc" depends= "svn-update, fatjar" >
2015-05-04 11:45:47 -04:00
<property name= "jre.version" value= "jdk-8u45" />
2014-08-21 08:12:15 -04:00
<property name= "jre.dir" value= "${basedir}/jre" />
2015-05-05 09:48:16 -04:00
2015-05-25 13:15:41 -04:00
<property name= "path.tarbin" location= "${dir.dist}/filebot-${version}-r${svn.revision}-tarbin.tar.gz" />
<property name= "path.debsrc" location= "${dir.dist}/filebot-${version}-r${svn.revision}-debsrc.tar.gz" />
2014-12-22 16:35:14 -05:00
<property name= "dir.debsrc" location= "${dir.dist}/debian-source-package/filebot/filebot-${version}" />
<!-- collect binary content -->
<tar destfile= "${path.tarbin}" compression= "gzip" longfile= "gnu" >
2014-10-30 05:03:05 -04:00
<tarfileset fullpath= "i386/filebot/FileBot.jar" file= "${path.fatjar}" />
<tarfileset fullpath= "amd64/filebot/FileBot.jar" file= "${path.fatjar}" />
2014-08-01 07:47:39 -04:00
2014-10-30 05:03:05 -04:00
<tarfileset prefix= "i386/filebot" dir= "${dir.lib}/native/linux-i686" includes= "*.so" />
<tarfileset prefix= "amd64/filebot" dir= "${dir.lib}/native/linux-amd64" includes= "*.so" />
2014-08-01 07:47:39 -04:00
2014-10-30 05:03:05 -04:00
<tarfileset prefix= "i386/filebot/bin" file= "${dir.installer}/ubuntu/filebot.sh" filemode= "755" />
<tarfileset prefix= "amd64/filebot/bin" file= "${dir.installer}/ubuntu/filebot.sh" filemode= "755" />
2014-08-01 07:47:39 -04:00
2014-10-30 05:03:05 -04:00
<tarfileset prefix= "i386/filebot" dir= "${dir.lib}/native/linux-i686" includes= "fpcalc" filemode= "755" />
<tarfileset prefix= "amd64/filebot" dir= "${dir.lib}/native/linux-amd64" includes= "fpcalc" filemode= "755" />
2014-08-01 07:47:39 -04:00
2014-10-30 05:03:05 -04:00
<tarfileset fullpath= "i386/filebot/filebot.desktop" file= "${dir.installer}/ubuntu/filebot.desktop" />
<tarfileset fullpath= "amd64/filebot/filebot.desktop" file= "${dir.installer}/ubuntu/filebot.desktop" />
<tarfileset fullpath= "i386/filebot/filebot.svg" file= "${dir.installer}/icons/icon.svg" />
<tarfileset fullpath= "amd64/filebot/filebot.svg" file= "${dir.installer}/icons/icon.svg" />
2014-08-01 07:47:39 -04:00
<!-- Include Java 8 JRE -->
2014-10-30 05:03:05 -04:00
<tarfileset prefix= "i386/filebot/jre" dir= "${jre.dir}/${jre.version}-linux-i586/jre" excludes= "bin/**" />
<tarfileset prefix= "i386/filebot/jre" dir= "${jre.dir}/${jre.version}-linux-i586/jre" includes= "bin/java" filemode= "755" />
<tarfileset prefix= "amd64/filebot/jre" dir= "${jre.dir}/${jre.version}-linux-x64/jre" excludes= "bin/**" />
<tarfileset prefix= "amd64/filebot/jre" dir= "${jre.dir}/${jre.version}-linux-x64/jre" includes= "bin/java" filemode= "755" />
2014-08-01 07:47:39 -04:00
</tar>
2014-12-22 16:35:14 -05:00
<!-- build debian source package for application binaries -->
<copy todir= "${dir.debsrc}" >
<fileset dir= "${dir.installer}/ubuntu" includes= "debian/**" />
</copy>
<untar src= "${path.tarbin}" dest= "${dir.debsrc}" compression= "gzip" />
2014-12-29 09:00:34 -05:00
<!-- restore permissions -->
<chmod perm= "755" type= "file" >
<fileset dir= "${dir.debsrc}" >
<include name= "**/bin/**" />
2015-01-23 14:40:35 -05:00
<include name= "**/fpcalc" />
2014-12-29 09:00:34 -05:00
</fileset>
</chmod>
2014-12-22 16:35:14 -05:00
<!-- debuild - S -->
2014-12-29 08:24:31 -05:00
<exec dir= "${dir.debsrc}" executable= "debuild" />
2015-01-02 03:49:59 -05:00
2014-12-22 16:35:14 -05:00
<!-- tar cvzf filebot - 4.5.2 - debsrc.tar.gz *.dsc *.changes *.tar.gz -->
<tar destfile= "${path.debsrc}" compression= "gzip" >
2015-05-22 02:37:43 -04:00
<tarfileset dir= "${dir.debsrc}/.." includes= "*.dsc, *.changes, *.tar.*" />
2014-12-22 16:35:14 -05:00
</tar>
2014-08-01 07:47:39 -04:00
<!-- store this build in releases -->
<mkdir dir= "${dir.release}" />
2014-12-22 16:35:14 -05:00
<copy todir= "${dir.release}" file= "${path.debsrc}" verbose= "yes" />
2014-08-01 07:47:39 -04:00
</target>
2014-10-07 13:33:04 -04:00
<target name= "deb" description= "Build debian package for i686 and amd64" >
2015-05-18 03:44:04 -04:00
<taskdef name= "deb" classname= "com.googlecode.ant_deb_task.Deb" classpathref= "jars.classpath" />
2014-08-01 07:47:39 -04:00
<antcall target= "deb-arch" >
2014-10-07 13:33:04 -04:00
<param name= "arch" value= "i686" />
<!-- arch i686 not allowed by deb specification, must be i386 for 32 - bit x86 systems -->
<param name= "deb.arch" value= "i386" />
2014-08-01 07:47:39 -04:00
</antcall>
<antcall target= "deb-arch" >
<param name= "arch" value= "amd64" />
2014-10-07 13:33:04 -04:00
<param name= "deb.arch" value= "amd64" />
2014-08-01 07:47:39 -04:00
</antcall>
</target>
2015-05-22 02:37:43 -04:00
2014-08-01 07:47:39 -04:00
<target name= "deb-arch" >
2014-10-07 14:00:48 -04:00
<!-- stage created .deb files in a temporary folder -->
<property name= "deb.staging" location= "${dir.dist}/deb" />
<mkdir dir= "${deb.staging}" />
2015-05-11 14:20:32 -04:00
<deb debfilenameproperty= "staging.file.deb" todir= "${deb.staging}" package= "filebot" version= "${version}" architecture= "${deb.arch}" section= "misc" homepage= "http://www.filebot.net/" priority= "optional" postinst= "${dir.installer}/deb/postinst.sh" prerm= "${dir.installer}/deb/prerm.sh" >
2015-05-22 02:37:43 -04:00
<maintainer name= "Reinhard Pointner" email= "maintainer@filebot.net" />
2014-08-01 07:47:39 -04:00
<description synopsis= "The ultimate TV and Movie Renamer" > FileBot is the ultimate tool for renaming your movies, tv shows or anime and even downloading subtitles. It's smart, streamlined for simplicity and just works. Putting the super-efficient UI aside, it's also got a full-featured command-line interface and scripting engine for all sorts of automation. Anything is possible.</description>
<tarfileset fullpath= "usr/share/filebot/FileBot.jar" file= "${path.fatjar}" />
<tarfileset prefix= "usr/share/filebot" dir= "${dir.lib}/native/linux-${arch}" includes= "*.so" />
<tarfileset prefix= "usr/share/filebot" file= "${dir.lib}/native/linux-${arch}/fpcalc" filemode= "755" />
<tarfileset prefix= "usr/share/filebot" file= "${dir.installer}/icons/icon.svg" />
<tarfileset prefix= "usr/share/filebot/bin" file= "${dir.installer}/deb/filebot.sh" filemode= "755" />
<tarfileset prefix= "usr/share/applications" file= "${dir.installer}/deb/FileBot.desktop" />
</deb>
2014-10-24 13:40:09 -04:00
<move tofile= "${dir.dist}/filebot_${version}_${deb.arch}.deb" file= "${staging.file.deb}" overwrite= "no" failonerror= "yes" />
2014-10-07 14:00:48 -04:00
<delete dir= "${deb.staging}" />
2014-08-01 07:47:39 -04:00
</target>
2015-04-05 03:15:43 -04:00
<target name= "ipkg" description= "Build ipkg package" >
2015-05-18 03:44:04 -04:00
<taskdef name= "deb" classname= "com.googlecode.ant_deb_task.Deb" classpathref= "jars.classpath" />
2014-08-01 07:47:39 -04:00
<!-- stage created .deb files in a temporary folder -->
<property name= "ipkg.staging" location= "${dir.dist}/deb-ipkg" />
<mkdir dir= "${ipkg.staging}" />
2015-05-11 14:20:32 -04:00
<deb debfilenameproperty= "staging.file.deb" todir= "${ipkg.staging}" package= "filebot" version= "${version}" architecture= "noarch" section= "misc" homepage= "http://www.filebot.net/" priority= "optional" postinst= "${dir.installer}/ipkg/postinst.sh" prerm= "${dir.installer}/ipkg/prerm.sh" >
2015-05-22 02:37:43 -04:00
<maintainer name= "Reinhard Pointner" email= "maintainer@filebot.net" />
2014-08-01 07:47:39 -04:00
<description synopsis= "The ultimate TV and Movie Renamer" > FileBot is the ultimate tool for renaming your movies, tv shows or anime and even downloading subtitles. It's smart, streamlined for simplicity and just works. Putting the super-efficient UI aside, it's also got a full-featured command-line interface and scripting engine for all sorts of automation. Anything is possible.</description>
<tarfileset fullpath= "opt/share/filebot/FileBot.jar" file= "${path.fatjar}" />
<tarfileset prefix= "opt/share/filebot/bin" file= "${dir.installer}/ipkg/filebot.sh" filemode= "755" />
</deb>
2015-04-05 03:15:43 -04:00
<move tofile= "${dir.dist}/filebot_${version}_noarch.ipk" file= "${staging.file.deb}" overwrite= "no" failonerror= "yes" />
2014-08-01 07:47:39 -04:00
<delete dir= "${ipkg.staging}" />
</target>
<target name= "msi" description= "Build Windows Installer for x86 and x64" >
<antcall target= "msi-arch" >
<param name= "arch" value= "x86" />
<param name= "libgcc_name" value= "mingwm10.dll" />
</antcall>
<antcall target= "msi-arch" >
<param name= "arch" value= "x64" />
<param name= "libgcc_name" value= "libgcc_s_sjlj-1.dll" />
</antcall>
</target>
2015-04-05 03:15:43 -04:00
2014-08-01 07:47:39 -04:00
<target name= "msi-arch" >
<property name= "jnidispatch" location= "${dir.lib}/native/win32-${arch}/jnidispatch.dll" />
<property name= "mediainfo" location= "${dir.lib}/native/win32-${arch}/MediaInfo.dll" />
<property name= "lib7z_binding" location= "${dir.lib}/native/win32-${arch}/7-Zip-JBinding.dll" />
<property name= "libgcc_path" location= "${dir.lib}/native/win32-${arch}/${libgcc_name}" />
<property name= "fpcalc_path" location= "${dir.lib}/native/win32-${arch}/fpcalc.exe" />
<property name= "installer" location= "${dir.dist}/FileBot_${version}_${arch}.msi" />
<exec executable= "candle.exe" dir= "${dir.installer}/msi" failonerror= "true" >
<arg line= "filebot-wix.xml -out ${dir.dist}/msi.wixobj -darch=${arch} -dreleaseversion=${version} -dfatjar=${path.fatjar} -djnidispatch=${jnidispatch} -dmediainfo=${mediainfo} -dlib7z_binding=${lib7z_binding} -dlibgcc_name=${libgcc_name} -dlibgcc_path=${libgcc_path} -dfpcalc_path=${fpcalc_path}" />
</exec>
<exec executable= "light.exe" dir= "${dir.installer}/msi" failonerror= "true" >
<arg line= "${dir.dist}/msi.wixobj -sval -ext WixUIExtension -out ${installer}" />
</exec>
</target>
<target name= "portable" description= "Portable application package" >
<mkdir dir= "${dir.dist}/portable" />
<copy file= "${path.fatjar}" tofile= "${dir.dist}/portable/FileBot.jar" />
<copy todir= "${dir.dist}/portable" >
<fileset dir= "${dir.installer}/portable" includes= "*.exe, *.ini, *.cmd, *.sh" />
</copy>
<zip destfile= "${dir.dist}/FileBot_${version}-portable.zip" >
<zipfileset dir= "${dir.dist}/portable" includes= "*.jar, *.exe, *.ini, *.cmd" />
<zipfileset dir= "${dir.dist}/portable" includes= "*.sh" filemode= "755" />
</zip>
</target>
<target name= "spk" description= "Synology NAS package" >
2015-05-18 03:44:04 -04:00
<taskdef name= "spk" classname= "net.filebot.ant.spk.PackageTask" classpathref= "jars.classpath" />
2014-08-01 07:47:39 -04:00
<spk destdir= "${dir.dist}" name= "filebot" version= "${version}" arch= "noarch" >
<info name= "displayname" value= "FileBot" />
<info name= "description" value= "FileBot is the ultimate tool for organizing and renaming your movies, TV shows or anime, as well as downloading subtitles and artwork. It's smart and just works." />
<info name= "maintainer" value= "rednoah" />
2015-05-20 05:52:11 -04:00
<info name= "maintainer_url" value= "http://www.filebot.net/" />
2014-08-01 07:47:39 -04:00
<info name= "distributor" value= "FileBot" />
<info name= "distributor_url" value= "http://www.filebot.net/" />
2015-05-20 15:00:16 -04:00
<info name= "support_url" value= "https://www.filebot.net/forums/viewforum.php?f=13" />
2014-08-01 07:47:39 -04:00
<info name= "helpurl" value= "http://www.filebot.net/cli.html" />
2015-05-16 00:52:25 -04:00
<info name= "firmware" value= "5.0-4360" />
<info name= "startable" value= "no" />
<info name= "silent_install" value= "yes" />
<info name= "silent_uninstall" value= "yes" />
<info name= "silent_upgrade" value= "yes" />
<info name= "thirdparty" value= "yes" />
<info name= "start_dep_services" value= "ssh" />
2014-08-01 07:47:39 -04:00
<icon size= "72" file= "${dir.installer}/icons/icon72.png" />
2015-05-03 11:57:56 -04:00
<icon size= "256" file= "${dir.installer}/icons/icon256.png" />
2015-05-05 09:48:16 -04:00
2014-08-01 07:47:39 -04:00
<scripts dir= "${dir.installer}/spk/scripts" filemode= "755" />
2015-05-16 01:35:51 -04:00
<package dir= "${dir.installer}/spk/package" includes= "*.sh" filemode= "755" />
<package file= "${path.fatjar}" fullpath= "FileBot.jar" />
2015-05-16 09:05:59 -04:00
<codesign keyid= "${gpg.key}" password= "${gpg.pwd}" pubring= "${dir.installer}/gpg/pubring.gpg" secring= "${dir.installer}/gpg/secring.gpg" />
2014-08-01 07:47:39 -04:00
</spk>
</target>
<target name= "webstart" depends= "jar" description= "Build and compress jars used for webstart deployment" >
<!-- create dirs -->
<mkdir dir= "${dir.dist}/webstart" />
<!-- copy jnlp descriptors and icons -->
<copy todir= "${dir.dist}/webstart" >
<fileset dir= "${dir.installer}/webstart" />
<fileset dir= "${dir.installer}/icons" />
</copy>
<!-- copy jars -->
<copy todir= "${dir.dist}/webstart" >
<fileset dir= "${dir.lib}" includes= "*.jar" excludes= "jna.jar" />
</copy>
<!-- copy jna.jar without native libs -->
<jar destfile= "${dir.dist}/webstart/jna.jar" >
<zipfileset src= "${dir.lib}/jna.jar" includes= "**/*.class" />
</jar>
<!-- create mediainfo jar as seperate jar and use as trigger for lazy loading the native libs -->
<jar destfile= "${dir.dist}/webstart/mediainfo.jar" >
<fileset dir= "${dir.build}" includes= "net/filebot/mediainfo/**" />
</jar>
<!-- create indexed main jar -->
<jar destfile= "${dir.dist}/webstart/filebot.jar" index= "yes" >
<fileset dir= "${dir.build}" excludes= "**/*Test*, net/filebot/mediainfo/**" />
<indexjars >
<!-- IMPORTANT if groovy is indexed things break during runtime!! -->
<fileset dir= "${dir.dist}/webstart" includes= "**/*.jar" excludes= "filebot.jar, groovy.jar" />
</indexjars>
</jar>
<!-- create native lib jars -->
<antcall target= "webstart-nativelib" >
<param name= "arch" value= "win32-x86" />
</antcall>
<antcall target= "webstart-nativelib" >
<param name= "arch" value= "win32-x64" />
</antcall>
<antcall target= "webstart-nativelib" >
2014-10-07 13:06:37 -04:00
<param name= "arch" value= "linux-i386" />
2014-08-01 07:47:39 -04:00
</antcall>
<antcall target= "webstart-nativelib" >
<param name= "arch" value= "linux-amd64" />
</antcall>
<antcall target= "webstart-nativelib" >
<param name= "arch" value= "mac-x86_64" />
</antcall>
<!-- sign all jars -->
<apply executable= "pack200" >
<!-- workaround for bug 6575373, see http://bugs.sun.com/view_bug.do?bug_id=6575373 -->
<arg line= "--segment-limit=-1" />
<arg line= "--repack" />
<srcfile />
<fileset dir= "${dir.dist}/webstart" includes= "**/*.jar" />
</apply>
<signjar alias= "filebot" keystore= "filebot.keystore" storepass= "secret" >
<fileset id= "signjar" dir= "${dir.dist}/webstart" includes= "**/*.jar" />
</signjar>
<!-- pack200 all jars -->
<apply executable= "pack200" dest= "${dir.dist}/webstart" >
<!-- workaround for bug 6575373, see http://bugs.sun.com/view_bug.do?bug_id=6575373 -->
<arg line= "--segment-limit=-1" />
<targetfile />
<srcfile />
<fileset dir= "${dir.dist}/webstart" includes= "*.jar" />
<mapper type= "glob" from= "*.jar" to= "*.jar.pack.gz" />
</apply>
</target>
<target name= "webstart-nativelib" >
<!-- create temp dir -->
<mkdir dir= "${dir.dist}/webstart/native/${arch}" />
<!-- copy native libs to temp dir -->
<copy todir= "${dir.dist}/webstart/native/${arch}" flatten= "true" >
<zipfileset src= "${dir.lib}/jna.jar" includes= "com/sun/jna/${arch}/*" />
<fileset dir= "${dir.lib}/native" >
<include name= "${arch}/**.dll" />
<include name= "${arch}/**.dylib" />
<include name= "${arch}/**.so" />
</fileset>
</copy>
<!-- create native lib jar -->
<jar destfile= "${dir.dist}/webstart/native/${arch}.jar" basedir= "${dir.dist}/webstart/native/${arch}" />
<!-- delete temp dir -->
<delete dir= "${dir.dist}/webstart/native/${arch}" />
</target>
<target name= "genkey" >
<genkey alias= "filebot" keystore= "filebot.keystore" storepass= "secret" validity= "3650" dname= "CN=${user.name}" />
</target>
<target name= "build" >
<!-- create build dir -->
<mkdir dir= "${dir.build}" />
<!-- compile -->
<javac srcdir= "${dir.source}:${dir.test}" destdir= "${dir.build}" target= "1.8" source= "1.8" encoding= "utf-8" debug= "true" debuglevel= "lines,vars,source" includeAntRuntime= "false" >
<classpath >
2014-10-09 09:37:15 -04:00
<fileset dir= "${dir.lib}" includes= "**/*.jar" />
2014-08-01 07:47:39 -04:00
</classpath>
</javac>
<!-- copy resources -->
<copy todir= "${dir.build}" >
<fileset dir= "${dir.source}" >
<exclude name= "**/*.java" />
</fileset>
</copy>
<!-- update application properties -->
<replace dir= "${dir.build}" encoding= "utf-8" summary= "yes" >
<include name= "**/*.properties" />
<replacefilter token= "@{svn.revision}" value= "${svn.revision}" />
<replacefilter token= "@{version}" value= "${version}" />
</replace>
</target>
<target name= "clean" >
<delete dir= "${dir.dist}" />
<delete dir= "${dir.build}" />
</target>
<target name= "test" depends= "jar" >
<junit printsummary= "yes" fork= "true" >
<classpath >
<fileset dir= "${dir.dist}" includes= "*.jar" />
2015-05-18 03:44:04 -04:00
<fileset dir= "${dir.lib}" includes= "**/*.jar" />
2014-08-01 07:47:39 -04:00
</classpath>
<formatter type= "plain" />
<test name= "net.filebot.AllTests" outfile= "test-report" />
</junit>
</target>
<target name= "test-fatjar" depends= "fatjar" >
2015-05-18 03:44:04 -04:00
<junit printsummary= "yes" fork= "true" includeantruntime= "true" newenvironment= "true" >
2014-08-01 07:47:39 -04:00
<classpath >
<pathelement location= "${path.fatjar}" />
<pathelement location= "${dir.dist}/filebot-test.jar" />
2015-05-18 03:44:04 -04:00
<pathelement location= "${dir.lib}/ivy/jar/ant-junit.jar" />
<pathelement location= "${dir.lib}/ivy/jar/junit.jar" />
<pathelement location= "${dir.lib}/ivy/jar/hamcrest-core.jar" />
2014-08-01 07:47:39 -04:00
</classpath>
<formatter type= "plain" />
<test name= "net.filebot.AllTests" outfile= "test-report" />
</junit>
</target>
<target name= "svn-update" >
2015-05-18 03:44:04 -04:00
<taskdef name= "groovy" classname= "org.codehaus.groovy.ant.Groovy" classpathref= "jars.classpath" />
2014-08-01 07:47:39 -04:00
<groovy outputproperty= "svn.revision" fork= "yes" failonerror= "yes" >
print 'svn update'.execute().text.split(/\D+/).last().toInteger()
</groovy>
<echo > Revision: ${svn.revision}</echo>
</target>
2015-05-18 03:53:55 -04:00
<target name= "stage-release" depends= "resolve, svn-update, fatjar, portable, spk, ipkg, deb, msi, appbundle" >
2014-08-01 07:47:39 -04:00
<delete dir= "${dir.release}" />
<mkdir dir= "${dir.release}" />
<!-- prepare release packages -->
<copy todir= "${dir.release}" preservelastmodified= "yes" verbose= "yes" >
<path path= "${path.fatjar}" />
<fileset dir= "${dir.dist}" >
2015-05-25 07:05:41 -04:00
<include name= "*.tar.bz2" />
2014-08-01 07:47:39 -04:00
<include name= "*.deb" />
<include name= "*.ipk" />
<include name= "*.msi" />
<include name= "*.spk" />
<include name= "*-portable.zip" />
</fileset>
</copy>
</target>
<target name= "deploy-release" depends= "stage-release, login" description= "Upload to SourceForge.net FRS" >
<scp todir= "${sf.user}:${sf.password}@${frs.release}" trust= "yes" verbose= "true" sftp= "true" >
<!-- upload starting with parent folders so scp will create the release folder for us -->
<fileset dir= "${basedir.release}" >
<date datetime= "${today}" pattern= "yyyy-MM-dd" when= "after" />
</fileset>
</scp>
</target>
<target name= "deploy-website" depends= "login" >
2015-05-20 05:52:11 -04:00
<taskdef name= "package-source" classname= "net.filebot.ant.spk.RepositoryTask" classpathref= "jars.classpath" />
2015-05-10 03:29:54 -04:00
<!-- copy static website resources -->
2014-08-01 07:47:39 -04:00
<copy todir= "${dir.dist}/website" >
<fileset dir= "${dir.website}" >
2015-05-10 03:29:54 -04:00
<include name= "*.html" />
<include name= "*.php" />
2014-08-01 07:47:39 -04:00
<include name= "*.json" />
<include name= "*.xml" />
<include name= "*.css" />
<include name= "*.js" />
<include name= "*.png" />
<include name= "*.ico" />
2014-10-07 11:16:46 -04:00
<include name= "*.txt" />
2014-08-01 07:47:39 -04:00
<include name= ".htaccess" />
<include name= "syno/**" />
2014-12-22 11:10:07 -05:00
<include name= "images/**" />
<include name= "screenshots/**" />
2015-05-09 05:56:35 -04:00
<include name= "getting-started/**" />
2014-08-01 07:47:39 -04:00
</fileset>
</copy>
2015-05-16 00:52:25 -04:00
2015-05-10 03:29:54 -04:00
<!-- copy files and resolve ant variables -->
<echo message= "Replace Ant variables" />
<copy todir= "${dir.dist}/website" overwrite= "yes" encoding= "UTF-8" verbose= "true" >
<fileset dir= "${dir.website}" >
<include name= "*.html" />
<include name= "*.php" />
</fileset>
<filterset begintoken= "@{" endtoken= "}" >
<propertyset >
<propertyref builtin= "all" />
</propertyset>
</filterset>
</copy>
2014-08-01 07:47:39 -04:00
2015-05-20 05:52:11 -04:00
<!-- build synology package index -->
<property prefix= "filebot-node" url= "https://raw.githubusercontent.com/filebot/filebot-node/master/package.properties" />
<package-source file= "${dir.dist}/website/syno/index.json" >
<keyring file= "${dir.installer}/gpg/FileBot.pub" />
2015-05-21 06:05:06 -04:00
<spk file= "${dir.build}/package-source/filebot-${version}-noarch.spk" url= "http://downloads.sourceforge.net/project/filebot/filebot/FileBot_${version}/filebot-${version}-noarch.spk" >
2015-05-20 15:41:18 -04:00
<thumbnail url= "http://app.filebot.net/syno/filebot-thumbnail.png" />
<snapshot url= "http://app.filebot.net/syno/filebot-snapshot.png" />
2015-05-20 05:52:11 -04:00
</spk>
2015-05-21 06:05:06 -04:00
<spk file= "${dir.build}/package-source/filebot-node-${filebot-node.version}-noarch.spk" url= "http://downloads.sourceforge.net/project/filebot/filebot/HEAD/filebot-node/filebot-node-${filebot-node.version}-noarch.spk" >
2015-05-20 15:41:18 -04:00
<thumbnail url= "http://app.filebot.net/syno/filebot-node-thumbnail.png" />
<snapshot url= "http://app.filebot.net/syno/filebot-node-snapshot.png" />
2015-05-20 05:52:11 -04:00
</spk>
</package-source>
2014-08-01 07:47:39 -04:00
<!-- upload -->
<scp todir= "${sf.user}:${sf.password}@${frs.website}" trust= "yes" verbose= "true" sftp= "true" >
<fileset dir= "${dir.dist}/website" />
</scp>
</target>
<target name= "chocolatey-push" description= "chocolatey package" >
<copy todir= "${dir.dist}/chocolatey" >
<fileset dir= "${dir.installer}/chocolatey" />
</copy>
<!-- replace variables for new release -->
<replace dir= "${dir.dist}/chocolatey" encoding= "utf-8" summary= "yes" >
<include name= "**/*.ps1" />
<include name= "**/*.nuspec" />
<replacefilter token= "@{version}" value= "${version}" />
</replace>
<!-- chocolatey pack -->
2014-11-07 02:48:12 -05:00
<exec executable= "chocolatey.exe" dir= "${dir.dist}\chocolatey" failonerror= "true" >
2014-08-01 07:47:39 -04:00
<arg line= "pack" />
</exec>
2014-11-07 02:48:12 -05:00
<exec executable= "chocolatey.exe" dir= "${dir.dist}\chocolatey" failonerror= "true" >
2014-08-01 07:47:39 -04:00
<arg line= "push ${dir.dist}\chocolatey\filebot.${version}.nupkg" />
</exec>
</target>
2014-08-07 04:51:05 -04:00
<target name= "upload-data" depends= "login" >
2014-08-01 07:47:39 -04:00
<scp todir= "${sf.user}:${sf.password}@${frs.website}" trust= "yes" verbose= "true" sftp= "true" >
<fileset dir= "${dir.website}" >
<include name= "data/.htaccess" />
<include name= "data/*.txt" />
<include name= "data/*.xz" />
</fileset>
</scp>
</target>
2015-05-18 03:53:55 -04:00
<target name= "deploy-beta-jar" depends= "resolve, svn-update, fatjar, login" description= "Build and deploy fatjar for the latest revision" >
2014-08-01 07:47:39 -04:00
<!-- deploy fatjar -->
<input message= "Mark:" addproperty= "mark" />
<scp file= "${path.fatjar}" remoteTofile= "${sf.user}:${sf.password}@${frs.release}/HEAD/filebot-${version}-r${svn.revision}-${mark}.jar" trust= "yes" verbose= "true" sftp= "true" />
<scp file= "${path.fatjar}" remoteTofile= "${sf.user}:${sf.password}@${frs.release}/HEAD/FileBot.jar" trust= "yes" verbose= "true" sftp= "true" />
</target>
2014-11-07 03:24:51 -05:00
<target name= "deploy-beta-release" >
2014-08-01 07:47:39 -04:00
<input message= "Mark:" addproperty= "mark" />
<antcall target= "deploy-release" >
<param name= "dir.release" location= "${basedir.release}/HEAD/${title}_${version}_${mark}" />
</antcall>
</target>
<target name= "login" >
<!-- ask for sourceforge password -->
<input message= "Please enter sourceforge username:" addproperty= "sf.user" />
<input message= "Please enter sourceforge password:" addproperty= "sf.password" />
</target>
2015-05-18 03:03:05 -04:00
2014-08-01 07:47:39 -04:00
</project>