diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 3098e75..3c2e1a9 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -31,25 +31,21 @@ apps: parts: remote-touchpad: plugin: go - go-importpath: github.com/Unrud/remote-touchpad go-buildtags: - portal - x11 source: . source-type: git build-packages: - - gcc - - libc6-dev - - libxt-dev - - libxtst-dev + - gcc + - libc6-dev + - libxt-dev + - libxtst-dev stage-packages: - - libxt6 - - libxtst6 + - libxt6 + - libxtst6 override-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 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: |