+ experimental support for automated build of synology spk packages
This commit is contained in:
parent
a451de436b
commit
39892fae16
33
build.xml
33
build.xml
|
@ -365,6 +365,30 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
<target name="spk" depends="fatjar" description="Synology NAS package">
|
||||||
|
<taskdef name="spk" classname="net.filebot.ant.spk.SpkTask" classpath="D:\workspace\ant-spk-task\dist\ant-spk.jar" />
|
||||||
|
|
||||||
|
<spk destdir="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" />
|
||||||
|
<info name="distributor" value="FileBot" />
|
||||||
|
<info name="distributor_url" value="http://www.filebot.net/" />
|
||||||
|
<info name="support_url" value="http://www.filebot.net/forums/" />
|
||||||
|
<info name="firmware" value="5.0" />
|
||||||
|
<info name="startable" value="no" />
|
||||||
|
<info name="helpurl" value="http://www.filebot.net/cli.html" />
|
||||||
|
|
||||||
|
<icon size="72" file="${dir.installer}/icons/icon72.png" />
|
||||||
|
<icon size="120" file="${dir.installer}/icons/icon120.png" />
|
||||||
|
|
||||||
|
<package dir="${dir.installer}/spk/package" includes="*.sh" filemode="755" />
|
||||||
|
<package file="${path.fatjar}" fullpath="FileBot.jar" />
|
||||||
|
<scripts dir="${dir.installer}/spk/scripts" filemode="755" />
|
||||||
|
</spk>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<target name="webstart" depends="jar" description="Build and compress jars used for webstart deployment">
|
<target name="webstart" depends="jar" description="Build and compress jars used for webstart deployment">
|
||||||
<!-- create dirs -->
|
<!-- create dirs -->
|
||||||
<mkdir dir="${dir.dist}/webstart" />
|
<mkdir dir="${dir.dist}/webstart" />
|
||||||
|
@ -538,7 +562,7 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<target name="deploy-release" depends="svn-update, fatjar, appbundle, deb, ipkg, msi, portable, webstart, login">
|
<target name="deploy-release" depends="svn-update, fatjar, appbundle, deb, ipkg, msi, portable, spk, webstart, login">
|
||||||
<mkdir dir="${dir.dist}/release" />
|
<mkdir dir="${dir.dist}/release" />
|
||||||
|
|
||||||
<!-- prepare release packages -->
|
<!-- prepare release packages -->
|
||||||
|
@ -551,6 +575,7 @@
|
||||||
<copy todir="${dir.dist}/release/${title}_${version}" file="${dir.dist}/FileBot_${version}_x86.msi" />
|
<copy todir="${dir.dist}/release/${title}_${version}" file="${dir.dist}/FileBot_${version}_x86.msi" />
|
||||||
<copy todir="${dir.dist}/release/${title}_${version}" file="${dir.dist}/FileBot_${version}_x64.msi" />
|
<copy todir="${dir.dist}/release/${title}_${version}" file="${dir.dist}/FileBot_${version}_x64.msi" />
|
||||||
<copy todir="${dir.dist}/release/${title}_${version}" file="${dir.dist}/FileBot_${version}-portable.zip" />
|
<copy todir="${dir.dist}/release/${title}_${version}" file="${dir.dist}/FileBot_${version}-portable.zip" />
|
||||||
|
<copy todir="${dir.dist}/release/${title}_${version}" file="${dir.dist}/filebot_${version}-noarch.spk" />
|
||||||
|
|
||||||
<!-- deploy fatjar -->
|
<!-- deploy fatjar -->
|
||||||
<sleep seconds="5" />
|
<sleep seconds="5" />
|
||||||
|
@ -564,6 +589,12 @@
|
||||||
<fileset dir="${dir.dist}/release" includes="**/*-portable.zip" />
|
<fileset dir="${dir.dist}/release" includes="**/*-portable.zip" />
|
||||||
</scp>
|
</scp>
|
||||||
|
|
||||||
|
<!-- deploy spk packages -->
|
||||||
|
<sleep seconds="5" />
|
||||||
|
<scp todir="${sf.user}:${sf.password}@${deploy.release}" trust="yes" verbose="true" sftp="true">
|
||||||
|
<fileset dir="${dir.dist}/release" includes="**/*.spk" />
|
||||||
|
</scp>
|
||||||
|
|
||||||
<!-- deploy windows installers -->
|
<!-- deploy windows installers -->
|
||||||
<sleep seconds="5" />
|
<sleep seconds="5" />
|
||||||
<scp todir="${sf.user}:${sf.password}@${deploy.release}" trust="yes" verbose="true" sftp="true">
|
<scp todir="${sf.user}:${sf.password}@${deploy.release}" trust="yes" verbose="true" sftp="true">
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 5.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/sh
|
||||||
|
PRG="$0"
|
||||||
|
|
||||||
|
# resolve relative symlinks
|
||||||
|
while [ -h "$PRG" ] ; do
|
||||||
|
ls=`ls -ld "$PRG"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
PRG="$link"
|
||||||
|
else
|
||||||
|
PRG="`dirname "$PRG"`/$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# make it fully qualified
|
||||||
|
WORKING_DIR=`pwd`
|
||||||
|
PRG_DIR=`dirname "$PRG"`
|
||||||
|
APP_ROOT=`cd "$PRG_DIR" && pwd`
|
||||||
|
|
||||||
|
# restore original working dir
|
||||||
|
cd "$WORKING_DIR"
|
||||||
|
|
||||||
|
|
||||||
|
# force JVM language and encoding settings
|
||||||
|
export LANG=en_US.utf8
|
||||||
|
|
||||||
|
java -Djava.awt.headless=true -Dunixfs=false -DuseGVFS=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Dfile.encoding=UTF-8 -Djava.net.useSystemProxies=true -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Djna.nosys=true -Dapplication.deployment=spk -Dapplication.analytics=true -Dnet.filebot.AcoustID.fpcalc=fpcalc "-Dapplication.dir=$APP_ROOT" "-Djava.io.tmpdir=$APP_ROOT/temp" "-Duser.home=$APP_ROOT" "-Djna.library.path=$APP_ROOT" "-Djava.library.path=$APP_ROOT" -Djava.util.prefs.PreferencesFactory=net.filebot.util.prefs.FilePreferencesFactory "-Dnet.filebot.util.prefs.file=$APP_ROOT/prefs.properties" -jar "$APP_ROOT/FileBot.jar" "$@"
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# allow read/write in application home folder
|
||||||
|
chown -R admin.users "$SYNOPKG_PKGDEST"
|
||||||
|
|
||||||
|
# create /bin symlink
|
||||||
|
ln -s -f "$SYNOPKG_PKGDEST/filebot.sh" /usr/syno/bin/filebot
|
||||||
|
|
||||||
|
# end
|
||||||
|
exit 0
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exit 0
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exit 0
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exit 0
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# remove /bin symlink
|
||||||
|
rm -f /usr/syno/bin/filebot
|
||||||
|
|
||||||
|
exit 0
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exit 0
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exit 0
|
Binary file not shown.
Loading…
Reference in New Issue