app-id: com.hoppscotch.Hoppscotch runtime: org.gnome.Platform runtime-version: "50" sdk: org.gnome.Sdk command: hoppscotch finish-args: - --share=network - --share=ipc - --socket=wayland - --socket=fallback-x11 - --device=dri # --- Desktop Integration --- - --talk-name=org.freedesktop.Notifications - --talk-name=org.freedesktop.secrets # --- Theming and Configuration --- - --talk-name=ca.desrt.dconf - --env=DCONF_USER_CONFIG_DIR=.config/dconf - --filesystem=xdg-run/dconf - --filesystem=~/.config/dconf:ro - --env=GTK_THEME=Adwaita:dark # --- GPU-specific fixes --- - --env=WEBKIT_DISABLE_DMABUF_RENDERER=1 modules: - name: hoppscotch buildsystem: simple build-commands: - ar x hoppscotch.deb - tar -xf data.tar.* - mkdir -p /app/bin - mkdir -p /app/share - mkdir -p /app/share/applications - mkdir -p /app/share/icons - mkdir -p /app/etc/gtk-3.0 - install -Dm755 usr/bin/hoppscotch-desktop /app/bin/hoppscotch - cp -r usr/share/icons/* /app/share/icons # Create system-wide GTK3 CSS overrides and settings inside the sandbox to hide the menubar - | echo 'menubar, menubar * { min-height: 0px !important; height: 0px !important; padding: 0px !important; margin: 0px !important; border: none !important; font-size: 0px !important; color: transparent !important; background: transparent !important; background-image: none !important; box-shadow: none !important; }' > /app/etc/gtk-3.0/gtk.css - | echo -e "[Settings]\ngtk-shell-shows-menubar=1\ngtk-shell-shows-app-menu=1" > /app/etc/gtk-3.0/settings.ini - install -Dm644 usr/share/applications/Hoppscotch.desktop /app/share/applications/com.hoppscotch.Hoppscotch.desktop - install -Dm644 com.hoppscotch.Hoppscotch.metainfo.xml /app/share/metainfo/com.hoppscotch.Hoppscotch.metainfo.xml # Replace original fields with flatpak-compliant ones - sed -i 's|^Exec=.*|Exec=hoppscotch|' /app/share/applications/com.hoppscotch.Hoppscotch.desktop - sed -i 's|^Icon=.*|Icon=com.hoppscotch.Hoppscotch|' /app/share/applications/com.hoppscotch.Hoppscotch.desktop - sed -i '/^StartupWMClass=/d' /app/share/applications/com.hoppscotch.Hoppscotch.desktop - echo "StartupWMClass=hoppscotch" >> /app/share/applications/com.hoppscotch.Hoppscotch.desktop - sed -i '/^Categories=/d' /app/share/applications/com.hoppscotch.Hoppscotch.desktop - echo "Categories=Development;WebDevelopment;Utility;" >> /app/share/applications/com.hoppscotch.Hoppscotch.desktop - find /app/share/icons -name "hoppscotch*.png" -execdir mv {} com.hoppscotch.Hoppscotch.png \; sources: - type: file url: https://github.com/hoppscotch/releases/releases/download/v26.8.1-0/Hoppscotch_linux_x64.deb sha256: 5d3da9a9c6d6c27ec044476b66523119bc32892fa0178efce8ed54b55aede3d0 dest-filename: hoppscotch.deb - type: file path: com.hoppscotch.Hoppscotch.metainfo.xml