name: ${binaryName} version: ${version} summary: ${applicationName}, secure VPN. Powered by Bitmask. description: | ${applicationName} is an easy, fast, and secure VPN service from ${providerURL}. ${applicationName} 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/icon.svg base: core18 parts: bitmask-root: plugin: dump source: ../../helpers/ override-prime: | mkdir -p bin cp $SNAPCRAFT_PART_SRC/bitmask-root bin/ chmod +x bin/bitmask-root openvpn: plugin: nil stage-packages: - openvpn prime: - -usr/share/doc - -usr/share/man bitmask-vpn: plugin: go source: ../../cmd/bitmask-vpn go-importpath: 0xacab.org/leap/bitmask-vpn/cmd/bitmask-vpn go-packages: - 0xacab.org/leap/bitmask-vpn/cmd/bitmask-vpn override-build: | mkdir $SNAPCRAFT_PRIME/snap echo ${version} > $SNAPCRAFT_PRIME/snap/version.txt mkdir -p $SNAPCRAFT_PRIME/usr/share/applications cp $SNAPCRAFT_STAGE/../snap/local/${binaryName}.desktop $SNAPCRAFT_PRIME/usr/share/applications/${binaryName}.desktop snapcraftctl build override-prime: | rm -rf $SNAPCRAFT_PRIME/../snap/hooks/.mypy_cache snapcraftctl prime build-packages: - pkg-config - patchelf - libpcre3-dev - libappindicator3-dev - libgtk-3-dev stage-packages: - libpcre3 - libappindicator3-1 - zlib1g apps: launcher: command: bin/bitmask-vpn desktop: usr/share/applications/${binaryName}.desktop 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