+ Experiment with snappy / snapcraft

This commit is contained in:
Reinhard Pointner 2016-06-08 01:33:39 +08:00
parent 277221c793
commit 0a1319a15b
2 changed files with 6 additions and 21 deletions

View File

@ -1,15 +1,7 @@
#!/bin/sh #!/bin/sh
if [ $SNAP_ARCH != amd64 ]; then
echo "CPU architecture not supported: $SNAP_ARCH"
exit 1
fi
export LANG=C.UTF-8 export LANG=C.UTF-8
export ARCH=x86_64-linux-gnu export ARCH=x86_64-linux-gnu
export JAVA_HOME=$SNAP/oracle-java export JAVA_HOME=$SNAP/oracle-java
export PATH=$JAVA_HOME/jre/bin:$PATH export PATH=$JAVA_HOME/jre/bin:$PATH
@ -50,4 +42,4 @@ export APP_DATA=$SNAP_USER_DATA/data
export APP_CACHE=$SNAP_USER_DATA/cache export APP_CACHE=$SNAP_USER_DATA/cache
export APP_PREFS=$SNAP_USER_DATA/prefs export APP_PREFS=$SNAP_USER_DATA/prefs
java -Djava.library.path="$LD_LIBRARY_PATH" -Djna.library.path="$LD_LIBRARY_PATH" -Dunixfs=false -DuseGVFS=true -DuseExtendedFileAttributes=true -DuseCreationDate=false -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Djava.net.useSystemProxies=true -Dapplication.update=skip -Dapplication.deployment=usc -Dnet.filebot.UserFiles.fileChooser=JavaFX -Dapplication.dir="$APP_DATA" -Dapplication.cache="$APP_CACHE/ehcache.disk.store" -Djava.io.tmpdir="$APP_CACHE/java.io.tmpdir" -Djava.util.prefs.userRoot="$APP_PREFS/user" -Djava.util.prefs.systemRoot="$APP_PREFS/system" -Dnet.filebot.AcoustID.fpcalc="$SNAP/usr/bin/fpcalc" $JAVA_OPTS -jar "$APP_ROOT/FileBot.jar" "$@" java -Duser.home="$SNAP_USER_DATA" -Djava.library.path="$LD_LIBRARY_PATH" -Djna.library.path="$LD_LIBRARY_PATH" -Dunixfs=false -DuseGVFS=true -DuseExtendedFileAttributes=true -DuseCreationDate=false -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Djava.net.useSystemProxies=true -Dapplication.update=skip -Dapplication.deployment=usc -Dnet.filebot.UserFiles.fileChooser=JavaFX -Dapplication.dir="$APP_DATA" -Dapplication.cache="$APP_CACHE/ehcache.disk.store" -Djava.io.tmpdir="$APP_CACHE/java.io.tmpdir" -Djava.util.prefs.userRoot="$APP_PREFS/user" -Djava.util.prefs.systemRoot="$APP_PREFS/system" -Dnet.filebot.AcoustID.fpcalc="$SNAP/usr/bin/fpcalc" $JAVA_OPTS -jar "$APP_ROOT/FileBot.jar" "$@"

View File

@ -3,21 +3,14 @@ version: 4.7
summary: The ultimate TV and Movie Renamer / Subtitle Downloader summary: The ultimate TV and Movie Renamer / Subtitle Downloader
description: 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: 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.
confinement: devmode confinement: strict
architectures: architectures: [amd64]
- amd64
apps: apps:
filebot: filebot:
command: bin/filebot command: bin/filebot
plugs: plugs: [home, network, network-bind, opengl, unity7]
- home
- network
- opengl
- unity7
- x11
parts: parts:
filebot: filebot:
@ -41,8 +34,8 @@ parts:
- gvfs - gvfs
- unity-gtk2-module - unity-gtk2-module
- overlay-scrollbar-gtk2 - overlay-scrollbar-gtk2
# - libmediainfo0v5 - libmediainfo0v5
# - libchromaprint-tools - libchromaprint-tools
loaders: loaders:
plugin: copy plugin: copy
files: files: