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:
|
parts:
|
||||||
remote-touchpad:
|
remote-touchpad:
|
||||||
plugin: go
|
plugin: go
|
||||||
go-importpath: github.com/Unrud/remote-touchpad
|
|
||||||
go-buildtags:
|
go-buildtags:
|
||||||
- portal
|
- portal
|
||||||
- x11
|
- x11
|
||||||
source: .
|
source: .
|
||||||
source-type: git
|
source-type: git
|
||||||
build-packages:
|
build-packages:
|
||||||
- gcc
|
- gcc
|
||||||
- libc6-dev
|
- libc6-dev
|
||||||
- libxt-dev
|
- libxt-dev
|
||||||
- libxtst-dev
|
- libxtst-dev
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- libxt6
|
- libxt6
|
||||||
- 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: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue