From 6e33ebb8f111e825124f70e8296094faecbdd254 Mon Sep 17 00:00:00 2001 From: berry120 Date: Wed, 7 Feb 2024 17:26:11 +0000 Subject: [PATCH] Snapcraft debug --- Quelea/launch.sh | 2 +- snap/snapcraft.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/Quelea/launch.sh b/Quelea/launch.sh index e76d0df39..8d398ffcc 100644 --- a/Quelea/launch.sh +++ b/Quelea/launch.sh @@ -3,4 +3,4 @@ cd $SNAP/jar export GST_PLUGIN_PATH=$SNAP/usr/lib/x86_64-linux-gnu/gstreamer-1.0 export GST_PLUGIN_SCANNER=$SNAP/usr/lib/x86_64-linux-gnu/gstreamer-1.0/gst-plugin-scanner export G_FILENAME_ENCODING=UTF-8 -jvm/bin/java --add-exports=javafx.graphics/com.sun.javafx.css=ALL-UNNAMED --add-exports=javafx.base/com.sun.javafx.runtime=ALL-UNNAMED --add-exports=javafx.base/com.sun.javafx.event=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens javafx.controls/javafx.scene.control=ALL-UNNAMED -Djdk.gtk.verbose=true -Djdk.gtk.version=2 -DVLCJ_INITX=no -Duser.dir=$SNAP/jar -Dfile.encoding=UTF-8 -Dprism.dirtyopts=false -Djavafx.cachedir=$SNAP_USER_COMMON -jar $SNAP/jar/Quelea.jar --userhome=$SNAP_USER_COMMON \ No newline at end of file +jvm/bin/java --add-exports=javafx.graphics/com.sun.javafx.css=ALL-UNNAMED --add-exports=javafx.base/com.sun.javafx.runtime=ALL-UNNAMED --add-exports=javafx.base/com.sun.javafx.event=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens javafx.controls/javafx.scene.control=ALL-UNNAMED -Djdk.gtk.verbose=true -DVLCJ_INITX=no -Duser.dir=$SNAP/jar -Dfile.encoding=UTF-8 -Dprism.dirtyopts=false -Djavafx.cachedir=$SNAP_USER_COMMON -jar $SNAP/jar/Quelea.jar --userhome=$SNAP_USER_COMMON \ No newline at end of file diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 9ced79b02..5eca5c23b 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -20,9 +20,36 @@ architectures: apps: quelea: command: jar/launch.sh + command-chain: [bin/desktop-launch] plugs: [home, mount-observe, network-control, network, network-bind, x11, wayland, unity7, opengl, optical-drive, alsa, pulseaudio, desktop, desktop-legacy, removable-media, gsettings, account-control] parts: + desktop-gtk3: + source: https://github.com/ubuntu/snapcraft-desktop-helpers.git + source-type: git + source-subdir: gtk + plugin: make + make-parameters: [ "FLAVOR=gtk3" ] + build-packages: + - libgtk-3-dev + stage-packages: + - libxkbcommon0 # XKB_CONFIG_ROOT + - ttf-ubuntu-font-family + - dmz-cursor-theme + - light-themes + - adwaita-icon-theme + - gnome-themes-standard + - shared-mime-info + - libgtk-3-0 + - libgdk-pixbuf2.0-0 + - libglib2.0-bin + - libgtk-3-bin + - unity-gtk3-module + - libappindicator3-1 + - locales-all + - xdg-user-dirs + - ibus-gtk3 + - libibus-1.0-5 quelea: plugin: nil source: Quelea