fix(input): preserve keyboard modifiers while preventing forged lock keys (#34)
This commit is contained in:
31 files changed
+569
-40
No files matched your search
@@ -7,8 +7,8 @@ pkgdesc="Native Linux companion for NetEase UU Remote"
|
||||
url="https://github.com/panxuc/uur"
|
||||
arch="x86_64"
|
||||
license="MIT"
|
||||
depends="bash wine curl glib wayland-libs-client pulseaudio-utils xdg-desktop-portal"
|
||||
makedepends="cargo rust gcc musl-dev pipewire-dev wayland-dev pkgconf mingw-w64-gcc mingw-w64-binutils"
|
||||
depends="bash wine curl glib wayland-libs-client libx11 pulseaudio-utils xdg-desktop-portal"
|
||||
makedepends="cargo rust gcc musl-dev pipewire-dev wayland-dev libx11-dev pkgconf mingw-w64-gcc mingw-w64-binutils"
|
||||
options="!check"
|
||||
source="$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz"
|
||||
builddir="$srcdir/$pkgname-$pkgver"
|
||||
@@ -17,6 +17,7 @@ build() {
|
||||
cargo build --release --locked
|
||||
./hook/build.sh
|
||||
./capture/build.sh
|
||||
./compat/build.sh
|
||||
}
|
||||
|
||||
check() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
FROM alpine:edge AS build
|
||||
|
||||
RUN apk add --no-cache \
|
||||
bash cargo rust gcc musl-dev pipewire-dev wayland-dev pkgconf \
|
||||
bash cargo rust gcc musl-dev pipewire-dev wayland-dev libx11-dev pkgconf \
|
||||
mingw-w64-gcc mingw-w64-binutils
|
||||
|
||||
WORKDIR /src
|
||||
@@ -12,10 +12,11 @@ RUN --mount=type=cache,target=/root/.cargo/registry \
|
||||
&& cargo build --release --locked \
|
||||
&& ./hook/build.sh \
|
||||
&& ./capture/build.sh \
|
||||
&& ./compat/build.sh \
|
||||
&& ./packaging/stage.sh /out
|
||||
|
||||
FROM alpine:edge
|
||||
RUN apk add --no-cache \
|
||||
bash ca-certificates curl glib pipewire-libs wayland-libs-client pulseaudio-utils wine xdg-desktop-portal
|
||||
bash ca-certificates curl glib pipewire-libs wayland-libs-client libx11 pulseaudio-utils wine xdg-desktop-portal
|
||||
COPY --from=build /out/ /
|
||||
ENTRYPOINT ["/usr/bin/uur"]
|
||||
@@ -5,7 +5,7 @@ pkgdesc="Native Linux companion for NetEase UU Remote"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/panxuc/uur"
|
||||
license=('MIT')
|
||||
depends=('glibc' 'gcc-libs' 'glib2' 'wine' 'curl' 'pipewire' 'wayland' 'xdg-desktop-portal')
|
||||
depends=('glibc' 'gcc-libs' 'glib2' 'wine' 'curl' 'pipewire' 'wayland' 'libx11' 'libxext' 'xdg-desktop-portal')
|
||||
optdepends=(
|
||||
'xdg-desktop-portal-gnome: GNOME-compatible Wayland capture and input'
|
||||
'xdg-desktop-portal-kde: Plasma Wayland capture and input'
|
||||
|
||||
@@ -22,9 +22,11 @@ depends=(
|
||||
'curl'
|
||||
'pipewire'
|
||||
'wayland'
|
||||
'libx11'
|
||||
'libxext'
|
||||
'xdg-desktop-portal'
|
||||
)
|
||||
makedepends=('cargo' 'gcc' 'pkgconf' 'wayland' 'mingw-w64-gcc' 'mingw-w64-binutils')
|
||||
makedepends=('cargo' 'gcc' 'pkgconf' 'wayland' 'libx11' 'mingw-w64-gcc' 'mingw-w64-binutils')
|
||||
optdepends=(
|
||||
'osslsigncode: Authenticode verification of official updater downloads'
|
||||
'xdg-desktop-portal-gnome: GNOME, niri, and compatible Wayland capture/input'
|
||||
@@ -50,6 +52,7 @@ build() {
|
||||
cargo build --release --locked
|
||||
./hook/build.sh
|
||||
./capture/build.sh
|
||||
./compat/build.sh
|
||||
}
|
||||
|
||||
check() {
|
||||
|
||||
@@ -15,6 +15,7 @@ find "$output" -maxdepth 1 -type f \
|
||||
cargo build --manifest-path "$project_root/Cargo.toml" --release --locked
|
||||
"$project_root/hook/build.sh"
|
||||
"$project_root/capture/build.sh"
|
||||
"$project_root/compat/build.sh"
|
||||
"$project_root/packaging/stage.sh" "$stage"
|
||||
|
||||
tar --zstd -C "$stage" -cf "$output/uur-${version}-linux-x86_64.tar.zst" .
|
||||
|
||||
@@ -25,6 +25,8 @@ overrides:
|
||||
- curl
|
||||
- libpipewire-0.3-0
|
||||
- libwayland-client0
|
||||
- libx11-6
|
||||
- libxext6
|
||||
- xdg-desktop-portal
|
||||
recommends:
|
||||
- xdg-desktop-portal-gnome | xdg-desktop-portal-kde | xdg-desktop-portal-wlr
|
||||
@@ -43,6 +45,8 @@ overrides:
|
||||
- curl
|
||||
- "libpipewire-0.3.so.0()(64bit)"
|
||||
- "libwayland-client.so.0()(64bit)"
|
||||
- "libX11.so.6()(64bit)"
|
||||
- "libXext.so.6()(64bit)"
|
||||
- xdg-desktop-portal
|
||||
recommends:
|
||||
- ethtool
|
||||
|
||||
@@ -12,6 +12,8 @@ install -Dm0755 "$project_root/capture/uur-pw-capture" \
|
||||
"$destination$prefix/lib/uur/uur-pw-capture"
|
||||
install -Dm0755 "$project_root/capture/uur-wl-capture" \
|
||||
"$destination$prefix/lib/uur/uur-wl-capture"
|
||||
install -Dm0755 "$project_root/build/compat/libuur-lock-mods.so" \
|
||||
"$destination$prefix/lib/uur/libuur-lock-mods.so"
|
||||
install -Dm0755 "$project_root/packaging/post-install-message" \
|
||||
"$destination$prefix/lib/uur/post-install-message"
|
||||
for component in wevtapi.dll uur-hook.dll wtsapi32.dll winlogon.exe uur-terminal-proxy.exe uur-mux-proxy.exe uur-launch-proxy.exe; do
|
||||
|
||||
Reference in new issue
Block a user