-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsnapcraft.yaml
More file actions
79 lines (67 loc) · 1.79 KB
/
snapcraft.yaml
File metadata and controls
79 lines (67 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: logseq
base: core22
adopt-info: logseq
summary: Logseq is a privacy-first, open-source knowledge base.
description: |
Logseq is a privacy-first, open-source knowledge base that works on top of local plain-text Markdown and Org-mode files. Use it to write, organize and share your thoughts, keep your to-do list, and build your own digital garden.
grade: stable
confinement: strict
parts:
logseq:
plugin: nil
source: https://github.com/logseq/og.git
source-depth: 1
source-tag: '1.0.0'
build-packages:
- curl
- default-jdk
- libgif-dev
- zip
stage-packages:
- libnss3
- libnspr4
override-pull: |
craftctl default
craftctl set version=$(git describe --tags)
set -x
# Install node
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt-get install -y nodejs
# Install clojure at required version
curl -fsSL https://download.clojure.org/install/linux-install-1.11.1.1413.sh | bash -
override-build: |
craftctl default
set -x
npm install --global yarn
yarn config set network-timeout 1000000
yarn install
yarn cljs:release && yarn release-electron &&\
mv ./static/out/Logseq-OG-linux-* $SNAPCRAFT_PART_INSTALL/app &&\
chmod 755 $SNAPCRAFT_PART_INSTALL/app
apps:
logseq:
command: app/Logseq-OG --no-sandbox
extensions:
- gnome
plugs:
- network
- shmem
- home
- etc-gitconfig
- gitconfig
- ssh-keys
- audio-playback
- removable-media
plugs:
shmem:
interface: shared-memory
private: true
etc-gitconfig:
interface: system-files
read:
- /etc/gitconfig
gitconfig:
interface: personal-files
read:
- $HOME/.gitconfig
- $HOME/.config/git/config