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

@ -11,7 +11,7 @@ Supports Flatpak's RemoteDesktop portal (for Wayland), Windows and X11.
* [Snap](https://snapcraft.io/remote-touchpad) * [Snap](https://snapcraft.io/remote-touchpad)
* [Windows](https://github.com/Unrud/remote-touchpad/releases/latest) * [Windows](https://github.com/Unrud/remote-touchpad/releases/latest)
* Golang: * Golang:
* Portal & X11: `go get -u -tags 'portal x11' github.com/Unrud/remote-touchpad` * Portal & X11: `go get -u -tags portal,x11 github.com/Unrud/remote-touchpad`
* Windows: `get get -u github.com/Unrud/remote-touchpad` * Windows: `get get -u github.com/Unrud/remote-touchpad`
## Screenshots ## Screenshots

View file

@ -34,7 +34,7 @@ modules:
dest: src/github.com/unrud/remote-touchpad dest: src/github.com/unrud/remote-touchpad
buildsystem: simple buildsystem: simple
build-commands: build-commands:
- . /usr/lib/sdk/golang/enable.sh; env GOPATH="$(pwd)" go build -tags 'portal x11' github.com/unrud/remote-touchpad - . /usr/lib/sdk/golang/enable.sh; env GOPATH="$(pwd)" go build -tags portal,x11 github.com/unrud/remote-touchpad
- install -Dm0755 -t /app/bin remote-touchpad - install -Dm0755 -t /app/bin remote-touchpad
- install -Dm0755 -t /app/bin src/github.com/unrud/remote-touchpad/desktop/remote-touchpad-wait-on-error - install -Dm0755 -t /app/bin src/github.com/unrud/remote-touchpad/desktop/remote-touchpad-wait-on-error
- install -Dm0644 -t /app/share/metainfo src/github.com/unrud/remote-touchpad/desktop/com.github.unrud.RemoteTouchpad.appdata.xml - install -Dm0644 -t /app/share/metainfo src/github.com/unrud/remote-touchpad/desktop/com.github.unrud.RemoteTouchpad.appdata.xml

View file

@ -32,7 +32,9 @@ parts:
remote-touchpad: remote-touchpad:
plugin: go plugin: go
go-importpath: github.com/Unrud/remote-touchpad go-importpath: github.com/Unrud/remote-touchpad
go-buildtags: [portal x11] go-buildtags:
- portal
- x11
source: . source: .
source-type: git source-type: git
build-packages: build-packages:
@ -47,7 +49,7 @@ parts:
snapcraftctl pull snapcraftctl pull
# WORKAROUND: Snapcraft Go Plugin doesn't set buildtags for go-get # WORKAROUND: Snapcraft Go Plugin doesn't set buildtags for go-get
GOPATH="$(realpath "${SNAPCRAFT_PART_SRC}/../go")" 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 # 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 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: | override-build: |