-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml
68 lines (67 loc) · 1.67 KB
/
snapcraft.yaml
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
name: nootpad
version: 1.1.0
summary: Scratchpad
description: >-
Simple scratchpad. Kind a 'port' of Boop scratchpad for Linux and Windows
platforms. Build with Electron and Monaco-editor.
grade: stable
confinement: strict
compression: lzo
apps:
nootpad:
extensions: [gnome-3-34]
plugs:
- browser-support
- network
- network-bind
- home
- opengl
- x11
- removable-media
- raw-usb
- desktop
- desktop-legacy
environment:
TMPDIR: $XDG_RUNTIME_DIR
command: nootpad/nootpad --no-sandbox
parts:
nootpad:
source: https://github.com/rzrbld/nootpad.git
source-subdir: src/
source-type: git
plugin: nil
override-build: |
echo $SNAPCRAFT_PART_INSTALL
ls -al
mv snapcraft/* src/
cd src
pwd
ls -al
npm config set user 0
npm config set unsafe-perm true
echo "WORKAROUND >>>"
# workaround for build.snapcraft.io builds
# https://bugs.launchpad.net/bugs/1886861
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
npm install electron electron-packager
npx electron-packager . --overwrite --platform=linux --output=release-build --prune=true
ls -al
cp -rv ./nootpad-* $SNAPCRAFT_PART_INSTALL/nootpad
build-snaps:
- node/14/stable
build-packages:
- unzip
stage-packages:
- libnss3
- libnspr4
organize:
nootpad-linux-x64: nootpad
base: core18
plugs:
browser-sandbox:
allow-sandbox: false
interface: browser-support