Separate tags with comma

This commit is contained in:
Unrud 2020-09-13 10:25:29 +02:00
parent 50ec8ff4db
commit e24b06b0f6
3 changed files with 6 additions and 4 deletions

View file

@ -32,7 +32,9 @@ parts:
remote-touchpad:
plugin: go
go-importpath: github.com/Unrud/remote-touchpad
go-buildtags: [portal x11]
go-buildtags:
- portal
- x11
source: .
source-type: git
build-packages:
@ -47,7 +49,7 @@ parts:
snapcraftctl pull
# WORKAROUND: Snapcraft Go Plugin doesn't set buildtags for go-get
GOPATH="$(realpath "${SNAPCRAFT_PART_SRC}/../go")"
env --chdir="$GOPATH/src" GOPATH="$GOPATH" go get -t -d -tags 'portal x11' ./github.com/Unrud/remote-touchpad/...
env --chdir="$GOPATH/src" GOPATH="$GOPATH" go get -t -d -tags portal,x11 ./github.com/Unrud/remote-touchpad/...
# WORKAROUND: Point icon directly to high resolution version otherwise snapcraft automatically chooses lowest resolution
sed -e 's|Icon=com.github.unrud.RemoteTouchpad|Icon=/usr/share/icons/hicolor/512x512/apps/com.github.unrud.RemoteTouchpad.png|' -i desktop/com.github.unrud.RemoteTouchpad.desktop
override-build: |