Snap: Remove workaround

This commit is contained in:
Unrud 2020-09-13 10:25:29 +02:00
parent e24b06b0f6
commit 84944c578d

View file

@ -31,7 +31,6 @@ apps:
parts: parts:
remote-touchpad: remote-touchpad:
plugin: go plugin: go
go-importpath: github.com/Unrud/remote-touchpad
go-buildtags: go-buildtags:
- portal - portal
- x11 - x11
@ -47,9 +46,6 @@ parts:
- libxtst6 - libxtst6
override-pull: | override-pull: |
snapcraftctl pull 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/...
# 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: |