snapcraft.yaml 2.92 KB
Newer Older
ransome1's avatar
ransome1 committed
1
2
name: sleek
base: core18
3
version: '1.0.8'
ransome1's avatar
ransome1 committed
4
5
summary: Todo app based on the todo.txt format for Linux, free and open-source
description: |
ransome1's avatar
ransome1 committed
6
  sleek is an open-source todo app that makes use of the todo.txt format. sleeks GUI is modern and simple but still offers a decent set of functions which help users getting things done. sleek is available as a client for Windows, MacOS and Linux.
ransome1's avatar
ransome1 committed
7

ransome1's avatar
ransome1 committed
8
  Users can add contexts, projects, priorities, due dates or recurrences to their todos. These todo.txt attributes can then be used as filters or to group and sort the todo list.
ransome1's avatar
ransome1 committed
9

ransome1's avatar
ransome1 committed
10
  sleek manages and watches multiple todo.txt files continuously for changes, which makes it easy to integrate sleek with other todo.txt apps. Also users can switch between bright and dark mode and choose from multiple languages.
ransome1's avatar
ransome1 committed
11

ransome1's avatar
ransome1 committed
12
  Todos with due date or repeating todos will trigger notifications and completed todos can be hidden or archived into separate done.txt files. If users have tons of todos, a compact view can come in handy.
ransome1's avatar
ransome1 committed
13
14
15

grade: stable
confinement: strict
16
icon: ./assets/icons/512x512.png
ransome1's avatar
ransome1 committed
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
license: MIT
compression: lzo
architectures:
- build-on: amd64
- build-on: i386
- build-on: arm64
- build-on: armhf
apps:
  sleek:
    command: snap/command-chain/desktop-launch $SNAP/sleek/sleek --disable-gpu --no-sandbox
    environment:
      DISABLE_WAYLAND: 1
      TMPDIR: $XDG_RUNTIME_DIR
      PATH: "$SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH"
      SNAP_DESKTOP_RUNTIME: $SNAP/gnome-platform
      GTK_USE_PORTALS: 1
    extensions: [gnome-3-28]
    plugs:
    - home
    - browser-support
    - network
parts:
  sleek:
    plugin: nil
    build-environment:
    - PATH: "$PATH:$SNAPCRAFT_PART_BUILD/node_modules/.bin"
    build-snaps:
    - node/14/stable
    source: .
    override-build: |
      if [ -n "$http_proxy" ]; then
        export ELECTRON_GET_USE_PROXY=1
        export GLOBAL_AGENT_HTTP_PROXY="${http_proxy}"
        export GLOBAL_AGENT_HTTPS_PROXY="${http_proxy}"
      fi
ransome1's avatar
ransome1 committed
52
53
54

      yarn add electron-packager@latest
      yarn install
ransome1's avatar
ransome1 committed
55
56
57
58
59
60
61
62
63
64
65
      electron-packager . --overwrite --platform=linux --output=release-build \
          --prune=true --out $SNAPCRAFT_PART_INSTALL/
      mv $SNAPCRAFT_PART_INSTALL/$SNAPCRAFT_PROJECT_NAME-linux-* \
          $SNAPCRAFT_PART_INSTALL/sleek
    stage-packages:
    - libnss3
  cleanup:
    after: [ sleek ]
    plugin: nil
    build-snaps: [ gnome-3-28-1804 ]
    override-prime: |
ransome1's avatar
ransome1 committed
66
67
      cd sleek
      ls -l
ransome1's avatar
ransome1 committed
68
69
70
      rm LICENSES.chromium.html
      rm chrome-sandbox
      ls -l
ransome1's avatar
ransome1 committed
71
72
73
74
75
76
77
78
79
      set -eux
      for snap in "gnome-3-28-1804"; do  # List all content-snaps you're using here
        cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" "$SNAPCRAFT_PRIME/usr/{}" \;
      done
      for CRUFT in bug lintian man; do
        rm -rf $SNAPCRAFT_PRIME/usr/share/$CRUFT
      done
      find $SNAPCRAFT_PRIME/usr/share/doc/ -type f -not -name 'copyright' -delete
      find $SNAPCRAFT_PRIME/usr/share -type d -empty -delete