This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
/
snapcraft.yaml
93 lines (92 loc) · 2.06 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: shadowsocks-electron
base: core18
grade: stable
confinement: strict
adopt-info:
architectures:
- build-on: amd64
- build-on: arm64
icon: ./assets/logo.png
license: MIT
version: 1.1.2
website: https://github.com/nojsja/shadowsocks-electron
parts:
gnome:
plugin: nil
build-packages:
- software-properties-common
override-pull: |
add-apt-repository -y ppa:ubuntu-desktop/gnome-3-26
apt -y update
electron-app:
after:
- gnome
- desktop-gnome-platform
plugin: nodejs
source: app/
node-engine: 14.17.6
stage-packages:
- fcitx-frontend-gtk3
- gvfs-libs
- libasound2
- libgconf-2-4
- libglib2.0-bin
- libgnome-keyring0
- libgtk-3-0
- libnotify4
- libnspr4
- libnss3
- libpcre3
- libpulse0
- libsecret-1-0
- libxss1
- libxtst6
- zlib1g
build: npm run build && electron-builder --linux snap
install: |
mkdir $SNAPCRAFT_PART_INSTALL/shadowsocks-electron
cd dist/*/
mv * $SNAPCRAFT_PART_INSTALL/shadowsocks-electron
stage:
- -lib/node_modules/*
- -usr/share/doc/*
- -usr/share/man/*
- -share/man/*
- -share/doc/*
- -CHANGELOG.md
- -README.md
apps:
shadowsocks-electron-desktop:
command: bin/desktop-launch $SNAP/app/shadowsocks-electron-desktop
plugs:
- home
- desktop
- desktop-legacy
- x11
- unity7
- wayland
- browser-support
- network
- gsettings
- pulseaudio
- opengl
environment:
TMPDIR: $XDG_RUNTIME_DIR
DISABLE_WAYLAND: 1
plugs:
gnome-3-28-1804:
interface: content
target: $SNAP/gnome-platform
default-provider: gnome-3-28-1804
gtk-3-themes:
interface: content
target: $SNAP/data-dir/themes
default-provider: gtk-common-themes
icon-themes:
interface: content
target: $SNAP/data-dir/icons
default-provider: gtk-common-themes
sound-themes:
interface: content
target: $SNAP/data-dir/sounds
default-provider: gtk-common-themes