From e73a18710b28362a0754e0c9adaab791bbf4f2ef Mon Sep 17 00:00:00 2001 From: Unrud Date: Tue, 31 Jul 2018 20:19:00 +0200 Subject: [PATCH] use build tag for x11 --- README.md | 2 +- desktop/remote-touchpad.appdata.xml | 2 +- flatpak/com.github.unrud.RemoteTouchpad.json | 2 +- plugin_x11.go | 2 +- plugin_x11_dummy.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 17d955c..904fd5e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Control mouse and keyboard from the webbrowser of a smartphone (or any other device with a touchscreen). To take control open the displayed URL or scan the QR code. -Supports Linux/X11 and Windows. +Supports Windows and X11. ## Installation diff --git a/desktop/remote-touchpad.appdata.xml b/desktop/remote-touchpad.appdata.xml index 1a5b781..b549b08 100644 --- a/desktop/remote-touchpad.appdata.xml +++ b/desktop/remote-touchpad.appdata.xml @@ -11,7 +11,7 @@ To take control open the displayed URL or scan the QR code.

- Supports Linux/X11 and Windows. + Supports Windows and X11.

https://github.com/Unrud/remote-touchpad/issues diff --git a/flatpak/com.github.unrud.RemoteTouchpad.json b/flatpak/com.github.unrud.RemoteTouchpad.json index efa6dc7..151250b 100644 --- a/flatpak/com.github.unrud.RemoteTouchpad.json +++ b/flatpak/com.github.unrud.RemoteTouchpad.json @@ -45,7 +45,7 @@ ], "buildsystem" : "simple", "build-commands" : [ - ". /usr/lib/sdk/golang/enable.sh; env GOPATH=\"$(pwd)\" go build github.com/unrud/remote-touchpad", + ". /usr/lib/sdk/golang/enable.sh; env GOPATH=\"$(pwd)\" go build -tags x11 github.com/unrud/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 -Dm0644 -t /app/share/appdata src/github.com/unrud/remote-touchpad/desktop/remote-touchpad.appdata.xml", diff --git a/plugin_x11.go b/plugin_x11.go index 89cdcb8..50555fd 100644 --- a/plugin_x11.go +++ b/plugin_x11.go @@ -1,4 +1,4 @@ -// +build linux +// +build x11 /* * Copyright (c) 2018 Unrud diff --git a/plugin_x11_dummy.go b/plugin_x11_dummy.go index 029f5aa..d404c0c 100644 --- a/plugin_x11_dummy.go +++ b/plugin_x11_dummy.go @@ -1,4 +1,4 @@ -// +build !linux +// +build !x11 /* * Copyright (c) 2018 Unrud