Skip to content

[feature request] Add snap support #102

@taurus-forever

Description

@taurus-forever

Hi,

Accidental noticed the tool and tested it with PostgreSQL snap.
TL;DR: installed it as flatpak on Ubuntu 25.10 and it works well, great job done!

As Ubuntu user, it is my PoC request to add snap support to tarug (tested on Ubuntu distro):

  1. add as snap/snapcraft.yaml to your this repo:
name: tarug
base: core24
version: '0.2.0'
title: Tarug
summary: Minimal Postgres SQL client
description: |
  Tarug is a modern PostgreSQL SQL client, built with GTK 4 and Libadwaita.
  It lets you manage connections, browse schemas, run queries, and inspect
  results with a modern GNOME UI.

grade: stable
confinement: strict

slots:
  dbus-tarug:
    interface: dbus
    bus: session
    name: io.github.ppvan.tarug

apps:
  tarug:
    command: usr/bin/tarug
    extensions:
      - gnome
    plugs:
      - network
      - network-bind
      - desktop
      - desktop-legacy
      - wayland
      - x11
      - gsettings
      - home
      - password-manager-service
    slots:
      - dbus-tarug

parts:
  tarug:
    source: https://github.com/ppvan/tarug.git
    source-branch: develop
    plugin: meson
    build-environment:
      - NINJAFLAGS: "-j8"

    meson-parameters:
      - --prefix=/usr

    build-packages:
      - build-essential
      - meson
      - ninja-build
      - valac
      - pkg-config
      - libgtk-4-dev
      - libadwaita-1-dev
      - libgtksourceview-5-dev
      - libglib2.0-dev
      - libgee-0.8-dev
      - libpq-dev
      - libjson-glib-dev
      - libsqlite3-dev
      - libcsv-dev
      - libpg-query-dev
      - gettext
      - itstool
      - desktop-file-utils
      - appstream

    stage-packages:
      - libpq5
      - libsqlite3-0
      - libcsv3
      - libpg-query1605.1
      - shared-mime-info
      - gsettings-desktop-schemas
  1. sudo snap install snapcraft --classic to build snap locally.
  2. snapcraft pack to pack snap
  3. sudo snap install --dangerous tarug_*.snap to install locally built snap
  4. tarug to launch app

Should work AS IS! 🥳

Consider to register a new SNAP (e.g. https://snapcraft.io/tarug ) and publish it as an author.

Tnx in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions