Bind mount application /app on Snap

parent 5265f9fe
......@@ -14,8 +14,4 @@ sources:
- kind: git
url: https://gitlab.com/freedesktop-sdk/freedesktop-sdk
track: master
ref: 892c16710a6141c251a5c13e43db767dc400a96e
- kind: patch
path: patches/fdo-sdk-nss.patch
- kind: patch
path: patches/fdo-sdk-nspr.patch
ref: f23f863d0066cbefe03a63b28448940a4edd7fd5
kind: import
sources:
- kind: local
directory: app/meta/gui
directory: meta/gui
path: files/snap/firefox.desktop
kind: compose
depends:
- filename: firefox.bst
type: build
config:
exclude:
- debug
- devel
kind: script
depends:
- filename: bootstrap-import.bst
junction: freedesktop-sdk.bst
type: build
- filename: snap/firefox-composed.bst
type: build
config:
layout:
- element: bootstrap-import.bst
destination: /
- element: snap/firefox-composed.bst
destination: /import
commands:
- |
mkdir -p "%{install-root}"
cp -rp /import/app "%{install-root}/app"
......@@ -2,4 +2,3 @@ kind: import
sources:
- kind: local
path: files/snap/firefox-wrapper
directory: app
......@@ -11,11 +11,7 @@ variables:
snap_arch: "amd64"
config:
directory: "%{prefix}"
exclude:
- debug
- devel
directory: "/"
metadata:
name: firefox
version: "%{firefox-version}"
......@@ -35,9 +31,12 @@ config:
- opengl
- wayland
- desktop
layout:
/app:
bind: $SNAP/app
depends:
- filename: firefox.bst
- filename: snap/firefox-extracted.bst
type: build
- filename: snap/firefox-wrapper.bst
type: build
......
#!/bin/sh
export PATH="$SNAP/bin"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$SNAP/lib"
export FONTCONFIG_PATH="$SNAP/etc/fonts"
exec "$SNAP/bin/firefox" "[email protected]"
export PATH="/app/bin:/usr/bin"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}${LD_LIBRARY_PATH:+:}/app/lib"
exec "/app/bin/firefox" "[email protected]"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment