mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-08 12:28:04 -05:00
REVERT to confinement: strict
and use last known working state of the snap build and then F*CK snapcraft (snap is just a really bad idea for GUI apps)
This commit is contained in:
parent
746ee1faa6
commit
f1371b09f4
@ -1,8 +1,14 @@
|
||||
#!/bin/sh
|
||||
export LANG="en_US.UTF-8"
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
|
||||
export JAVA_HOME="$SNAP/usr/lib/jvm/java-8-openjdk-$SNAP_ARCH"
|
||||
export PATH="$JAVA_HOME/jre/bin:$PATH"
|
||||
|
||||
export APP_ROOT="$SNAP/filebot"
|
||||
|
||||
export APP_DATA="$SNAP_USER_DATA/data"
|
||||
export APP_CACHE="$SNAP_USER_DATA/cache"
|
||||
export APP_PREFS="$SNAP_USER_DATA/prefs"
|
||||
|
||||
"$SNAP/usr/lib/jvm/java-8-openjdk-$SNAP_ARCH/jre/bin/java" -Djdk.gtk.version=2 @{java.application.options} -Dapplication.deployment=snap -Dapplication.update=skip -Dapplication.help=show -Djava.library.path="$APP_ROOT/lib" -Djna.library.path="$APP_ROOT/lib" -Djna.boot.library.path="$APP_ROOT/lib" -Dfile.encoding="UTF-8" -Dsun.jnu.encoding="UTF-8" -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dnet.filebot.UserFiles.fileChooser=JavaFX -DuseGVFS=true -Dnet.filebot.gio.GVFS="/run/user/$(id -u)/gvfs" -Duser.home="$SNAP_USER_DATA" -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="$APP_ROOT/lib/fpcalc" $JAVA_OPTS -classpath "$APP_ROOT/jar/*" @{main.class} "$@"
|
||||
java -Djdk.gtk.version=2 @{java.application.options} -Dapplication.deployment=snap -Dapplication.update=skip -Dapplication.help=ask -Djava.library.path="$APP_ROOT/lib" -Djna.library.path="$APP_ROOT/lib" -Djna.boot.library.path="$APP_ROOT/lib" -Dfile.encoding="UTF-8" -Dsun.jnu.encoding="UTF-8" -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dnet.filebot.UserFiles.fileChooser=JavaFX -DuseGVFS=true -Dnet.filebot.gio.GVFS="/run/user/$(id -u)/gvfs" -Duser.home="$SNAP_USER_DATA" -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="$APP_ROOT/lib/fpcalc" $JAVA_OPTS -classpath "$APP_ROOT/jar/*" @{main.class} "$@"
|
||||
|
@ -3,18 +3,24 @@ version: @{application.version}
|
||||
summary: @{package.synopsis}
|
||||
description: @{package.description}
|
||||
|
||||
confinement: classic
|
||||
confinement: strict
|
||||
grade: stable
|
||||
|
||||
architectures: [amd64]
|
||||
|
||||
apps:
|
||||
filebot:
|
||||
command: bin/filebot.sh
|
||||
command: desktop-launch $SNAP/bin/filebot.sh
|
||||
plugs: [unity7, opengl, x11, home, removable-media, network, network-bind, pulseaudio, gsettings]
|
||||
|
||||
parts:
|
||||
filebot:
|
||||
plugin: dump
|
||||
source: root
|
||||
stage-packages: [openjdk-8-jre, openjfx, jayatana, libmediainfo0v5, libchromaprint-tools]
|
||||
java:
|
||||
plugin: nil
|
||||
stage-packages: [openjdk-8-jre, openjfx, jayatana]
|
||||
after: [desktop-gtk2]
|
||||
mediainfo:
|
||||
plugin: nil
|
||||
stage-packages: [libmediainfo0v5, libchromaprint-tools, curl]
|
||||
|
Loading…
Reference in New Issue
Block a user