From 6d0ed1d5bde0fedc26d0889dab825096741d0164 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Wed, 5 Sep 2018 12:07:44 +0200 Subject: [pkg] create snaps with the standalone version --- snap/snapcraft.yaml | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 snap/snapcraft.yaml (limited to 'snap/snapcraft.yaml') diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..e5ff973 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,70 @@ +name: riseup-vpn +version: 'git' +version-script: ./snap/version.sh +summary: RiseupVPN, secure VPN. Powered by Bitmask. +description: | + RiseupVPN is an easy, fast, and secure VPN service from riseup.net. + RiseupVPN does not require a user account, keep logs, or track you in + any way. The service is paid for entirely by donations from users like + you. + +grade: stable +confinement: classic +icon: snap/gui/riseupvpn.svg + +parts: + desktop-gtk3: + stage-packages: + - libc6 + prime: + - '*' + - -usr/include + - -usr/lib/locale + - -usr/share/X11/locale + - -usr/share/doc + - -usr/share/locale + - -usr/share/man + + bitmask-root: + after: [desktop-gtk3] + plugin: dump + override-prime: | + wget -O ./bin/bitmask-root https://0xacab.org/leap/bitmask-dev/raw/master/src/leap/bitmask/vpn/helpers/linux/bitmask-root + chmod +x ./bin/bitmask-root + + openvpn: + plugin: nil + stage-packages: + - openvpn + - libc6 + prime: + - -usr/share/doc + - -usr/share/man + + bitmask-systray: + after: [desktop-gtk3] + plugin: go + go-buildtags: [standalone] + go-packages: ["github.com/ProtonMail/go-autostart", "github.com/apparentlymart/go-openvpn-mgmt/openvpn", "0xacab.org/leap/bitmask-systray"] + # prepare: XXX run systray tests here + build-packages: + - pkg-config + - patchelf + - libpcre3-dev + - libappindicator3-dev + - libgtk-3-dev + stage-packages: + - libc6 + - libpcre3 + - libappindicator3-1 + - zlib1g + +apps: + launcher: + command: ./bin/bitmask-systray + environment: + LD_LIBRARY_PATH: "$SNAP/usr/lib/$(gcc -print-multiarch):$SNAP/lib/$(gcc -print-multiarch):$LD_LIBRARY_PATH" + openvpn: + command: ./usr/sbin/openvpn + bitmask-root: + command: ./bin/bitmask-root -- cgit v1.2.3