Skip to content

Instantly share code, notes, and snippets.

@rgov
Last active October 6, 2023 22:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgov/9f3b4ee00d84b1878a70b07803166ad2 to your computer and use it in GitHub Desktop.
Save rgov/9f3b4ee00d84b1878a70b07803166ad2 to your computer and use it in GitHub Desktop.
INCOMPLETE - Flatpak manifest for Foxglove Studio
# Based on https://github.com/flathub/com.nordpass.NordPass by @FakeShemp
# wget https://raw.githubusercontent.com/flathub/com.nordpass.NordPass/e93574f94b4387917fb8d5b0fb725660b2b01817/gcc10.diff
# wget https://raw.githubusercontent.com/flathub/com.nordpass.NordPass/e93574f94b4387917fb8d5b0fb725660b2b01817/xz_support.patch
# flatpak install flathub org.freedesktop.Platform//22.08 org.freedesktop.Sdk//22.08 org.electronjs.Electron2.BaseApp//22.08
# sudo flatpak-builder --install --force-clean build-dir dev.foxglove.Studio.yaml
# flatpak run dev.foxglove.Studio
app-id: dev.foxglove.Studio
base: org.electronjs.Electron2.BaseApp
base-version: '22.08'
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
command: foxglove-studio
finish-args:
- --socket=x11
- --device=dri
- --share=ipc
- --share=network
modules:
- name: squashfs
buildsystem: simple
build-commands:
- make -C squashfs-tools -j ${FLATPAK_BUILDER_N_JOBS} install INSTALL_DIR=${FLATPAK_DEST}/bin
sources:
- type: archive
url: https://github.com/plougher/squashfs-tools/archive/4.4.tar.gz
sha256: a7fa4845e9908523c38d4acf92f8a41fdfcd19def41bd5090d7ad767a6dc75c3
- type: patch
path: xz_support.patch
- type: patch
path: gcc10.diff
- name: foxglove-studio
buildsystem: simple
build-commands:
- install -D apply_extra "${FLATPAK_DEST}/bin/apply_extra"
- install foxglove-studio "${FLATPAK_DEST}/bin/"
sources:
- type: extra-data
filename: foxglove-studio.snap
# Use: curl -H 'Snap-Device-Series: 16' http://api.snapcraft.io/v2/snaps/info/foxglove-studio
url: https://api.snapcraft.io/api/v1/snaps/download/ful58zxgFPbq11JkdussBgBmBRGMCMUQ_66.snap
# Compute with `openssl sha256 <file>.snap>`
sha256: 1cf44e1c21c6732460450ed5486fdf776980e56bd9e752698216e79b10b83a7d
# Included in Snapstore API output
size: 90959872
x-checker-data:
type: snapcraft
name: foxglove-studio
channel: stable
- type: script
dest-filename: apply_extra
commands:
- unsquashfs foxglove-studio.snap
- rm foxglove-studio.snap
- mv squashfs-root foxglove-studio
- touch foxglove-studio/chrome-sandbox && chmod +x foxglove-studio/chrome-sandbox
- type: script
dest-filename: foxglove-studio
commands:
- TMPDIR=$XDG_CACHE_HOME zypak-wrapper /app/extra/foxglove-studio/foxglove-studio "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment