Hasmter-time-tracker snap

Hi! Since this is one of my favorite apps, I have to snap it.

name: hamster-snap # you probably want to 'snapcraft register <name>'
base: core18 # the base snap is the execution environment for this snap
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: Hamster time tracker snap # 79 char long summary
description: |
  Hamster is time tracking for individuals. It helps you to keep track of how much time you have spent during the day on activities you choose to track.

architectures:
  - build-on: amd64
    run-on: all

grade: devel # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots

layout:
  /usr/share/hamster:
    bind: $SNAP/usr/share/hamster
  /usr/lib/hamster:
    bind: $SNAP/usr/lib/hamster
  /usr/lib/python3/dist-packages:
    bind: $SNAP/usr/lib/python3/dist-packages

slots:
  dbus-service:
    interface: dbus
    bus: session
    name: org.gnome.Hamster
  dbus-windows-service:
    interface: dbus
    bus: session
    name: org.gnome.Hamster.WindowServer

parts:
  hamster:
    stage-packages:
      - gettext
      - intltool
      - python3-distutils-extra
      - python3-gi
      - python3-gi-cairo
      - python3-distutils
      - python3-dbus
      - python3-xdg
      - gconf2
      - gir1.2-gconf-2.0
      - dconf-cli
    # source: https://github.com/projecthamster/hamster.git
    source: https://github.com/bgamari/hamster.git
    source-branch: gsettings
    plugin: waf
  lancher:
    after: [ hamster ]
    plugin: dump
    source: snap/local
    organize:
      launcher.py: usr/bin/launcher
      hamster.desktop: usr/share/applications/launcher.desktop

apps:
  hamster-snap:
    command: usr/bin/launcher
    extensions: [gnome-3-28]
    desktop: usr/share/applications/launcher.desktop
    plugs:
      - gsettings
      - home
      - system-observe
    slots:
      - dbus-service
      - dbus-windows-service

Iā€™m tracking upstream as close as possible with the few exception:

  1. Manually start dbus-service due to lack of dbus-activation.
  2. Tracking unmerged branch to avoid gconf and use gsettings.

Besides that all are working.
I just requested manual review on snapcraft, wish me good luck!!!

Prove that this works!!

1 Like