Snap: Remove workaround
This commit is contained in:
parent
e24b06b0f6
commit
84944c578d
1 changed files with 6 additions and 10 deletions
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue