-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml.template
77 lines (74 loc) · 2.36 KB
/
snapcraft.yaml.template
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
name: v2raya
base: core22
version: '@VERSION@'
summary: V2Ray Linux client, compatible with SS, SSR, Trojan, PingTunnel protocols.
description: |
v2rayA is a V2Ray client supporting global transparent proxy on Linux, it is compatible with SS, SSR, Trojan(trojan-go), Tuic and Juicity protocols.
We are committed to providing the simplest operation and meet most needs.
Thanks to the advantages of Web GUI, you can use it on your local computer with your browser of choice.
Project:https://github.com/v2rayA/v2rayA
license: AGPL-3.0-only
source-code: https://github.com/v2rayA/v2rayA.git
website: https://v2raya.org/en/
architectures:
- build-on: [amd64]
build-for: [amd64]
- build-on: [amd64]
build-for: [arm64]
- build-on: [amd64]
build-for: [riscv64]
grade: stable
confinement: strict
parts:
v2ray-core:
source: https://github.com/v2fly/v2ray-core/releases/download/v5.16.1/v2ray-linux-64.zip
source-type: zip
plugin: dump
organize:
v2ray: usr/local/bin/v2ray
geoip.dat: usr/local/share/v2ray/geoip.dat
geosite.dat: usr/local/share/v2ray/geosite.dat
config.json: usr/local/etc/v2ray/config.json
stage:
- usr/local/bin/v2ray
- usr/local/share/v2ray/geoip.dat
- usr/local/share/v2ray/geosite.dat
- usr/local/etc/v2ray/config.json
prime:
- usr/local/bin/v2ray
- usr/local/share/v2ray/geoip.dat
- usr/local/share/v2ray/geosite.dat
- usr/local/etc/v2ray/config.json
v2raya:
source: installer_debian_@ARCH@_@[email protected]
source-type: deb
plugin: dump
# This wrappper is a workaround for both xdg-open and dekstop entries being broken in snapcraft
v2raya-browser-wrapper:
plugin: dump
source: v2raya-browser-wrapper
source-type: local
stage:
- v2raya-browser-wrapper
prime:
- v2raya-browser-wrapper
apps:
v2raya:
daemon: simple
command: usr/bin/v2raya --v2ray-bin $SNAP/usr/local/bin/v2ray
environment:
V2RAYA_LOG_FILE: $SNAP_DATA/log/v2raya-snap.log
V2RAYA_CONFIG: $SNAP_DATA/etc
V2RAYA_V2RAY_ASSETSDIR: $SNAP_DATA/geoip
V2RAYA_ADDRESS: 127.0.0.1:2017
restart-condition: on-failure
install-mode: enable
plugs:
- network
- network-bind
- firewall-control
- network-control
v2raya-browser-wrapper:
command: v2raya-browser-wrapper
plugs:
- desktop