fix snap build

This commit is contained in:
Vladislav Yarmak 2025-03-28 12:35:50 +02:00
parent e3fb0dde2f
commit 8bff5867f4

View file

@ -5,14 +5,18 @@ description: |
Standalone Opera VPN proxies client. Just run it and it'll start plain HTTP proxy server forwarding traffic via proxies of your choice. Standalone Opera VPN proxies client. Just run it and it'll start plain HTTP proxy server forwarding traffic via proxies of your choice.
confinement: strict confinement: strict
base: core24 base: core22
parts: parts:
opera-proxy: opera-proxy:
plugin: go plugin: go
source: . build-snaps: [go/latest/stable]
build-packages: source: https://github.com/Snawoot/opera-proxy
- gcc source-type: git
override-pull: |
snapcraftctl pull
snapcraftctl set-version \
"$(git describe --long --tags --always --match=v*.*.* | sed 's/v//')"
override-build: override-build:
make && make &&
cp bin/opera-proxy "$SNAPCRAFT_PART_INSTALL" cp bin/opera-proxy "$SNAPCRAFT_PART_INSTALL"