mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-12-04 15:46:07 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
047bbcc7ca | ||
|
|
8f2e25f837 |
No files matched your search
@@ -1,13 +0,0 @@
|
||||
# Locked, hash-checked dependencies of res/job.py for the release-signing steps.
|
||||
# Install with: pip3 install --only-binary=:all: --require-hashes -r .github/requirements/sign-files.txt
|
||||
# argparse is part of the standard library and must not be installed from PyPI.
|
||||
requests==2.32.5 \
|
||||
--hash=sha256:2462f94637a34fd532264295e186976db0f5d453d1cdd31473c85a6a161affb6
|
||||
urllib3==2.6.3 \
|
||||
--hash=sha256:bf272323e553dfb2e87d9bfd225ca7b0f467b919d7bbd355436d3fd37cb0acd4
|
||||
idna==3.20 \
|
||||
--hash=sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c
|
||||
certifi==2026.10.23 \
|
||||
--hash=sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1
|
||||
charset-normalizer==3.5.2 \
|
||||
--hash=sha256:b6b751274acb69d77b3323d6b7dbaa3c7fdfc1eb829b7eb61d262f32e1af9685
|
||||
@@ -46,7 +46,6 @@ jobs:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- name: Install prerequisites
|
||||
|
||||
@@ -109,7 +109,6 @@ jobs:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- name: Install prerequisites
|
||||
|
||||
@@ -127,7 +127,6 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- name: Install Syft
|
||||
@@ -222,7 +221,6 @@ jobs:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- name: Restore bridge files
|
||||
@@ -468,7 +466,7 @@ jobs:
|
||||
if: env.UPLOAD_ARTIFACT == 'true' && env.SIGN_BASE_URL != '-2'
|
||||
shell: bash
|
||||
run: |
|
||||
pip3 install --only-binary=:all: --require-hashes -r .github/requirements/sign-files.txt
|
||||
pip3 install requests argparse
|
||||
BASE_URL=${{ env.SIGN_BASE_URL }} SECRET_KEY=${{ secrets.SIGN_SECRET_KEY }} python3 res/job.py sign_files ./rustdesk/
|
||||
|
||||
- name: Verify Windows Flutter version
|
||||
@@ -662,7 +660,6 @@ jobs:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- name: Install LLVM and Clang
|
||||
@@ -777,7 +774,7 @@ jobs:
|
||||
if: env.UPLOAD_ARTIFACT == 'true' && env.SIGN_BASE_URL != '-2'
|
||||
shell: bash
|
||||
run: |
|
||||
pip3 install --only-binary=:all: --require-hashes -r .github/requirements/sign-files.txt
|
||||
pip3 install requests argparse
|
||||
BASE_URL=${{ env.SIGN_BASE_URL }} SECRET_KEY=${{ secrets.SIGN_SECRET_KEY }} python3 res/job.py sign_files ./Release/
|
||||
|
||||
- name: Verify Windows Sciter version
|
||||
@@ -887,7 +884,6 @@ jobs:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- name: Install flutter
|
||||
@@ -1017,7 +1013,6 @@ jobs:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- name: Import the codesign cert
|
||||
@@ -1596,7 +1591,6 @@ jobs:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- name: Check JNI natives are in ffi.FFI
|
||||
@@ -1899,7 +1893,6 @@ jobs:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- name: Install flutter
|
||||
@@ -2072,7 +2065,6 @@ jobs:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- name: Set Swap Space
|
||||
@@ -2533,7 +2525,6 @@ jobs:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- name: Install Rust toolchain
|
||||
@@ -2835,7 +2826,6 @@ jobs:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- name: Modify vcpkg.json for armv7
|
||||
@@ -3075,7 +3065,6 @@ jobs:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- name: Download Binary
|
||||
@@ -3152,7 +3141,6 @@ jobs:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- name: Download Binary
|
||||
@@ -3216,7 +3204,6 @@ jobs:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- name: Prepare env
|
||||
|
||||
@@ -88,7 +88,6 @@ jobs:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ matrix.job.ref }}
|
||||
submodules: recursive
|
||||
|
||||
@@ -251,7 +250,6 @@ jobs:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ matrix.job.ref }}
|
||||
submodules: recursive
|
||||
|
||||
|
||||
Generated
+3
-3
@@ -1717,7 +1717,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "cpal"
|
||||
version = "0.15.3"
|
||||
source = "git+https://github.com/rustdesk-org/cpal?branch=osx-screencapturekit#3361bd6aa877e110f6df6cd98dc7c7f6427cb79b"
|
||||
source = "git+https://github.com/rustdesk-org/cpal?branch=osx-screencapturekit#96d4da121b7d949677ac5b6887413a9185fd7f39"
|
||||
dependencies = [
|
||||
"alsa",
|
||||
"cidre",
|
||||
@@ -8209,7 +8209,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "tao"
|
||||
version = "0.25.0"
|
||||
source = "git+https://github.com/rustdesk-org/tao?branch=dev#74684bd8b7f565a0edf9412f7403f6433f0d5efb"
|
||||
source = "git+https://github.com/rustdesk-org/tao?branch=dev#288c219cb0527e509590c2b2d8e7072aa9feb2d3"
|
||||
dependencies = [
|
||||
"bitflags 1.3.2",
|
||||
"cc",
|
||||
@@ -8249,7 +8249,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "tao-macros"
|
||||
version = "0.1.2"
|
||||
source = "git+https://github.com/rustdesk-org/tao?branch=dev#74684bd8b7f565a0edf9412f7403f6433f0d5efb"
|
||||
source = "git+https://github.com/rustdesk-org/tao?branch=dev#288c219cb0527e509590c2b2d8e7072aa9feb2d3"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.93",
|
||||
"quote 1.0.36",
|
||||
|
||||
@@ -24,16 +24,18 @@ AppDir:
|
||||
apt:
|
||||
arch:
|
||||
- arm64
|
||||
allow_unauthenticated: true
|
||||
sources:
|
||||
# Ubuntu's 2012 and 2018 archive signing keys (both sign focal), exported from ubuntu-keyring:
|
||||
# gpg --show-keys ubuntu-archive-keyring.asc. apt trusts them for every source below.
|
||||
- sourceline: deb [arch=arm64] https://ports.ubuntu.com/ubuntu-ports/ focal main restricted universe multiverse
|
||||
key_url: file:ubuntu-archive-keyring.asc
|
||||
- sourceline: deb [arch=arm64] https://ports.ubuntu.com/ubuntu-ports/ focal-updates main restricted universe multiverse
|
||||
- sourceline: deb [arch=arm64] https://ports.ubuntu.com/ubuntu-ports/ focal-backports main restricted
|
||||
- sourceline: deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal main restricted universe multiverse
|
||||
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
|
||||
- sourceline: deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-updates main restricted universe multiverse
|
||||
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
|
||||
- sourceline: deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-backports main restricted
|
||||
universe multiverse
|
||||
- sourceline: deb [arch=arm64] https://ports.ubuntu.com/ubuntu-ports/ focal-security main restricted
|
||||
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
|
||||
- sourceline: deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-security main restricted
|
||||
universe multiverse
|
||||
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
|
||||
include:
|
||||
- libc6:arm64
|
||||
- libgtk-3-0
|
||||
@@ -77,11 +79,10 @@ AppDir:
|
||||
# AppRun sets these to "$APPDIR/...:$XDG_DATA_DIRS", and setting them at all suppresses the XDG
|
||||
# defaults, so a host that leaves them unset loses /usr/share and /etc/xdg. gdk-pixbuf 2.43+
|
||||
# (Arch, Fedora) then finds no glycin loaders and every PNG decode fails, aborting on the first
|
||||
# remote cursor. The host value goes last, after a "/": unset, AppRun expands it to nothing, and
|
||||
# an empty element would make GLib search the CWD; "/" leaves the root instead, and a set
|
||||
# value's first absolute path becomes the same "//path".
|
||||
XDG_DATA_DIRS: $APPDIR/usr/local/share:$APPDIR/usr/share:/usr/local/share:/usr/share:/$XDG_DATA_DIRS
|
||||
XDG_CONFIG_DIRS: $APPDIR/etc/xdg:/etc/xdg:/$XDG_CONFIG_DIRS
|
||||
# remote cursor. The host value goes last: unset it expands to an empty element, which GLib
|
||||
# resolves against the CWD, and that must not outrank the defaults below.
|
||||
XDG_DATA_DIRS: $APPDIR/usr/local/share:$APPDIR/usr/share:/usr/local/share:/usr/share:$XDG_DATA_DIRS
|
||||
XDG_CONFIG_DIRS: $APPDIR/etc/xdg:/etc/xdg:$XDG_CONFIG_DIRS
|
||||
# Host paths come before $APPDIR so Wayland capture uses the host's GStreamer and PipeWire.
|
||||
# Arch Linux ARM has neither /lib64 nor a multiarch dir on aarch64, only /usr/lib.
|
||||
APPDIR_LIBRARY_PATH: /lib64:/usr/lib/aarch64-linux-gnu:/usr/lib:$APPDIR/lib/aarch64-linux-gnu:$APPDIR/lib/aarch64-linux-gnu/security:$APPDIR/lib/systemd:$APPDIR/usr/lib/aarch64-linux-gnu:$APPDIR/usr/lib/aarch64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders:$APPDIR/usr/lib/aarch64-linux-gnu/gstreamer-1.0:$APPDIR/usr/lib/aarch64-linux-gnu/gtk-3.0/3.0.0/immodules:$APPDIR/usr/lib/aarch64-linux-gnu/gtk-3.0/3.0.0/printbackends:$APPDIR/usr/lib/aarch64-linux-gnu/krb5/plugins/preauth:$APPDIR/usr/lib/aarch64-linux-gnu/libcanberra-0.30:$APPDIR/usr/lib/aarch64-linux-gnu/pulseaudio:$APPDIR/usr/lib/aarch64-linux-gnu/sasl2:$APPDIR/usr/lib/aarch64-linux-gnu/vdpau:$APPDIR/usr/share/rustdesk/lib:$APPDIR/lib/aarch64
|
||||
|
||||
@@ -24,19 +24,17 @@ AppDir:
|
||||
apt:
|
||||
arch:
|
||||
- amd64
|
||||
allow_unauthenticated: true
|
||||
sources:
|
||||
# Ubuntu's 2012 and 2018 archive signing keys (both sign focal), exported from ubuntu-keyring:
|
||||
# gpg --show-keys ubuntu-archive-keyring.asc. apt trusts them for every source below.
|
||||
- sourceline: deb https://archive.ubuntu.com/ubuntu/ focal main restricted
|
||||
key_url: file:ubuntu-archive-keyring.asc
|
||||
- sourceline: deb https://archive.ubuntu.com/ubuntu/ focal-updates main restricted
|
||||
- sourceline: deb https://archive.ubuntu.com/ubuntu/ focal universe
|
||||
- sourceline: deb https://archive.ubuntu.com/ubuntu/ focal-updates universe
|
||||
- sourceline: deb https://archive.ubuntu.com/ubuntu/ focal multiverse
|
||||
- sourceline: deb https://archive.ubuntu.com/ubuntu/ focal-updates multiverse
|
||||
- sourceline: deb https://archive.ubuntu.com/ubuntu/ focal-backports main restricted
|
||||
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal main restricted
|
||||
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted
|
||||
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal universe
|
||||
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-updates universe
|
||||
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal multiverse
|
||||
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-updates multiverse
|
||||
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted
|
||||
universe multiverse
|
||||
- sourceline: deb https://archive.ubuntu.com/ubuntu/ focal-security main restricted
|
||||
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted
|
||||
universe multiverse
|
||||
include:
|
||||
# https://github.com/rustdesk/rustdesk/issues/9103
|
||||
@@ -84,11 +82,10 @@ AppDir:
|
||||
# AppRun sets these to "$APPDIR/...:$XDG_DATA_DIRS", and setting them at all suppresses the XDG
|
||||
# defaults, so a host that leaves them unset loses /usr/share and /etc/xdg. gdk-pixbuf 2.43+
|
||||
# (Arch, Fedora) then finds no glycin loaders and every PNG decode fails, aborting on the first
|
||||
# remote cursor. The host value goes last, after a "/": unset, AppRun expands it to nothing, and
|
||||
# an empty element would make GLib search the CWD; "/" leaves the root instead, and a set
|
||||
# value's first absolute path becomes the same "//path".
|
||||
XDG_DATA_DIRS: $APPDIR/usr/local/share:$APPDIR/usr/share:/usr/local/share:/usr/share:/$XDG_DATA_DIRS
|
||||
XDG_CONFIG_DIRS: $APPDIR/etc/xdg:/etc/xdg:/$XDG_CONFIG_DIRS
|
||||
# remote cursor. The host value goes last: unset it expands to an empty element, which GLib
|
||||
# resolves against the CWD, and that must not outrank the defaults below.
|
||||
XDG_DATA_DIRS: $APPDIR/usr/local/share:$APPDIR/usr/share:/usr/local/share:/usr/share:$XDG_DATA_DIRS
|
||||
XDG_CONFIG_DIRS: $APPDIR/etc/xdg:/etc/xdg:$XDG_CONFIG_DIRS
|
||||
APPDIR_LIBRARY_PATH: /lib64:/usr/lib/x86_64-linux-gnu:$APPDIR/lib/x86_64-linux-gnu:$APPDIR/lib/x86_64-linux-gnu/security:$APPDIR/lib/systemd:$APPDIR/usr/lib/x86_64-linux-gnu:$APPDIR/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders:$APPDIR/usr/lib/x86_64-linux-gnu/gstreamer-1.0:$APPDIR/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules:$APPDIR/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/printbackends:$APPDIR/usr/lib/x86_64-linux-gnu/krb5/plugins/preauth:$APPDIR/usr/lib/x86_64-linux-gnu/libcanberra-0.30:$APPDIR/usr/lib/x86_64-linux-gnu/pulseaudio:$APPDIR/usr/lib/x86_64-linux-gnu/sasl2:$APPDIR/usr/lib/x86_64-linux-gnu/vdpau:$APPDIR/usr/share/rustdesk/lib:$APPDIR/lib/x86_64
|
||||
GST_PLUGIN_PATH: /lib64/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0:$APPDIR/usr/lib/x86_64-linux-gnu/gstreamer-1.0
|
||||
GST_PLUGIN_SYSTEM_PATH: /lib64/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0:$APPDIR/usr/lib/x86_64-linux-gnu/gstreamer-1.0
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
diff --git a/src/apprun/runtime_interpreter.c b/src/apprun/runtime_interpreter.c
|
||||
index fe06502..33ddd8e 100644
|
||||
--- a/src/apprun/runtime_interpreter.c
|
||||
+++ b/src/apprun/runtime_interpreter.c
|
||||
@@ -143,6 +143,20 @@ long compare_version_strings(const char *a, const char *b) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
+/* An empty element, as appending an unset LD_LIBRARY_PATH leaves, makes the dynamic loader search
|
||||
+ * the current directory. */
|
||||
+static void apprun_drop_empty_path_elements(char *path) {
|
||||
+ char *out = path;
|
||||
+ for (const char *in = path; *in != '\0'; in++) {
|
||||
+ if (*in == ':' && (out == path || out[-1] == ':'))
|
||||
+ continue;
|
||||
+ *out++ = *in;
|
||||
+ }
|
||||
+ if (out > path && out[-1] == ':')
|
||||
+ out--;
|
||||
+ *out = '\0';
|
||||
+}
|
||||
+
|
||||
void configure_embed_libc() {
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "APPRUN_DEBUG: using appdir libc\n");
|
||||
@@ -150,6 +164,7 @@ void configure_embed_libc() {
|
||||
char *ld_library_path = apprun_shell_expand_variables("$"APPDIR_LIBRARY_PATH_ENV":"
|
||||
"$"APPDIR_LIBC_LIBRARY_PATH_ENV":"
|
||||
"$"APPRUN_ENV_ORIG_PREFIX"LD_LIBRARY_PATH", NULL);
|
||||
+ apprun_drop_empty_path_elements(ld_library_path);
|
||||
|
||||
apprun_env_set("LD_LIBRARY_PATH", ld_library_path, "", ld_library_path);
|
||||
free(ld_library_path);
|
||||
@@ -161,6 +176,7 @@ void configure_system_libc() {
|
||||
#endif
|
||||
char *ld_library_path = apprun_shell_expand_variables("$"APPDIR_LIBRARY_PATH_ENV":"
|
||||
"$"APPRUN_ENV_ORIG_PREFIX"LD_LIBRARY_PATH", NULL);
|
||||
+ apprun_drop_empty_path_elements(ld_library_path);
|
||||
|
||||
apprun_env_set("LD_LIBRARY_PATH", ld_library_path, "", ld_library_path);
|
||||
free(ld_library_path);
|
||||
@@ -1,11 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# AppRun v2.0.0, which appimage-builder downloads, splits every argument into a 1 KiB stack
|
||||
# buffer, so any argument of 1024 bytes or more aborts the AppImage before RustDesk starts.
|
||||
# It also appends the host's LD_LIBRARY_PATH after a ":", so an unset one leaves an empty element
|
||||
# that makes the loader search the current directory for libraries.
|
||||
# Build it with apprun-split-arguments.patch and apprun-no-empty-library-path.patch into the path
|
||||
# appimage-builder checks before downloading. ubuntu:16.04 is what upstream released from, so the
|
||||
# host glibc floor is unchanged.
|
||||
# Build it with apprun-split-arguments.patch into the path appimage-builder checks before
|
||||
# downloading. ubuntu:16.04 is what upstream released from, so the host glibc floor is unchanged.
|
||||
set -euo pipefail
|
||||
|
||||
arch=$1
|
||||
@@ -28,7 +25,6 @@ echo "$sha256 $tmp/apprun.tar.gz" | sha256sum -c -
|
||||
mkdir "$src"
|
||||
tar -xzf "$tmp/apprun.tar.gz" -C "$src" --strip-components=1
|
||||
patch -d "$src" -p1 < "$here/apprun-split-arguments.patch"
|
||||
patch -d "$src" -p1 < "$here/apprun-no-empty-library-path.patch"
|
||||
|
||||
docker run --rm -v "$src:/src" -w /src -e DEBIAN_FRONTEND=noninteractive "$image" bash -c "
|
||||
set -e
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQINBE+tgXgBEADfiL1KNFHT4H4Dw0OR9LemR8ebsFl+b9E44IpGhgWYDufj0gaM
|
||||
/UJ1Ti3bHfRT39VVZ6cv1P4mQy0bnAKFbYz/wo+GhzjBWtn6dThYv7n+KL8bptSC
|
||||
Xgg1a6en8dCCIA/pwtS2Ut/g4Eu6Z467dvYNlMgCqvg+prKIrXf5ibio48j3AFvd
|
||||
1dDJl2cHfyuON35/83vXKXz0FPohQ7N7kPfI+qrlGBYGWFzC/QEGje360Q2Yo+rf
|
||||
MoyDEXmPsoZVqf7EE8gjfnXiRqmz/Bg5YQb5bgnGbLGiHWtjS+ACIdLUq/h+jlSp
|
||||
57jw8oQktMh2xVMX4utDM0UENeZnPllVJSlR0b+ZmZz7paeSar8Yxn4wsNlL7GZb
|
||||
pW5A/WmcmWfuMYoPhBo5Fq1V2/siKNU3UKuf1KH+X0p1oZ4oOcZ2bS0Zh3YEG8IQ
|
||||
ce9Bferq4QMKsekcG9IKS6WBIU7BwaElI2ILD0gSwu8KzvNSEeIJhYSsBIEzrWxI
|
||||
BXoN2AC9PCqqXkWlI5Xr/86RWllB3CsoPwEfO8CLJW2LlXTen/Fkq4wT+apdhHei
|
||||
WiSsq/J5OEff0rKHBQ3fK7fyVuVNrJFb2CopaBLyCxTupvxs162jjUNopt0c7OqN
|
||||
BoPoUoVFAxUSpeEwAw6xrM5vROyLMSeh/YnTuRy8WviRapZCYo6naTCY5wARAQAB
|
||||
tEJVYnVudHUgQXJjaGl2ZSBBdXRvbWF0aWMgU2lnbmluZyBLZXkgKD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3LH7p14CrRxA
|
||||
bc4lvohRgsV4eQqsIcdFkuVY5HPPj2K8TqpY6STe8Gh0aprG1RV8ZKay3KSMpnyV
|
||||
1fAKn4fM9byiLzQAovC0LZ9MMMsrAS/45AvC3IEKSShjLFn1X1dRCiO6/7jmZEoZ
|
||||
tAp53hkf8SMBsi78hVNrBumZwfIdBA1v22+LY4xQK8q4XCoRcA9G+pvzU9YVW7cR
|
||||
nDZZGl0uwOw7z9PkQBF5KFKjWDz4fCk+K6+YtGpovGKekGBb8I7EA6UpvPgqA/Qd
|
||||
I0t1IBP0N06RQcs1fUaAQEtz6DGy5zkRhR4pGSZn+dFET7PdAjEK84y7BdY4t+U1
|
||||
jcSIvBj0F2B7LwRL7xGpSpIKi/ekAXLs117bvFHaCvmUYN7JVp1GMmVFxhIdx6CF
|
||||
m3fxG8QjNb5tere/YqK+uOgcXny1UlwtCUzlrSaP
|
||||
=GitC
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
@@ -1015,64 +1015,40 @@ class BottomSheetBody extends StatelessWidget {
|
||||
final _actions = actions ?? [];
|
||||
return BottomSheet(
|
||||
builder: (BuildContext context) {
|
||||
final mediaQuery = MediaQuery.of(context);
|
||||
final view = View.maybeOf(context);
|
||||
final viewBottomPadding = view != null && view.devicePixelRatio > 0
|
||||
? view.padding.bottom / view.devicePixelRatio
|
||||
: 0.0;
|
||||
final bottomInset = mediaQuery.padding.bottom > viewBottomPadding
|
||||
? mediaQuery.padding.bottom
|
||||
: viewBottomPadding;
|
||||
return Container(
|
||||
height: 65,
|
||||
alignment: Alignment.centerLeft,
|
||||
decoration: BoxDecoration(
|
||||
color: MyTheme.accent50,
|
||||
borderRadius: BorderRadius.vertical(top: Radius.circular(10))),
|
||||
child: SafeArea(
|
||||
top: false,
|
||||
minimum: EdgeInsets.only(bottom: bottomInset),
|
||||
child: Container(
|
||||
height: 65,
|
||||
alignment: Alignment.centerLeft,
|
||||
padding: EdgeInsets.symmetric(horizontal: 15),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Expanded(
|
||||
child: Row(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 15),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
leading,
|
||||
SizedBox(width: 16),
|
||||
Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
leading,
|
||||
SizedBox(width: 16),
|
||||
Expanded(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(title,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(fontSize: 18)),
|
||||
Text(text,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(fontSize: 14)) // TODO color
|
||||
],
|
||||
),
|
||||
)
|
||||
Text(title, style: TextStyle(fontSize: 18)),
|
||||
Text(text,
|
||||
style: TextStyle(fontSize: 14)) // TODO color
|
||||
],
|
||||
),
|
||||
),
|
||||
Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
..._actions,
|
||||
IconButton(
|
||||
icon: Icon(Icons.cancel_outlined),
|
||||
onPressed: onCanceled,
|
||||
),
|
||||
],
|
||||
)
|
||||
],
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
Row(children: () {
|
||||
_actions.add(IconButton(
|
||||
icon: Icon(Icons.cancel_outlined),
|
||||
onPressed: onCanceled,
|
||||
));
|
||||
return _actions;
|
||||
}())
|
||||
],
|
||||
),
|
||||
));
|
||||
},
|
||||
|
||||
@@ -566,13 +566,12 @@ class _RemotePageState extends State<RemotePage> with WidgetsBindingObserver {
|
||||
}
|
||||
return Container(
|
||||
color: MyTheme.canvasColor,
|
||||
child: withKeyHelpTools(
|
||||
inputModel.isPhysicalMouse.value
|
||||
? getBodyForMobile()
|
||||
: RawTouchGestureDetectorRegion(
|
||||
child: getBodyForMobile(),
|
||||
ffi: gFFI,
|
||||
)),
|
||||
child: inputModel.isPhysicalMouse.value
|
||||
? getBodyForMobile()
|
||||
: RawTouchGestureDetectorRegion(
|
||||
child: getBodyForMobile(),
|
||||
ffi: gFFI,
|
||||
),
|
||||
);
|
||||
}),
|
||||
),
|
||||
@@ -713,27 +712,6 @@ class _RemotePageState extends State<RemotePage> with WidgetsBindingObserver {
|
||||
!gFFI.canvasModel.cursorEmbedded &&
|
||||
!gFFI.inputModel.relativeMouseMode.value;
|
||||
|
||||
// The key bar sits above the canvas, outside its gesture region: a touch on the bar must not
|
||||
// also reach the canvas recognizers, which would send it to the remote as a mouse event.
|
||||
// The cursor and the touch-mode virtual mouse stay above the bar, as they were inside the canvas
|
||||
// stack. The mouse-mode virtual mouse stays inside the region: see getBodyForMobile.
|
||||
Widget withKeyHelpTools(Widget body) => Stack(children: [
|
||||
Positioned.fill(child: body),
|
||||
Obx(() {
|
||||
final chatKeyboardRequested =
|
||||
gFFI.chatModel.softKeyboardRequested.value;
|
||||
return KeyHelpTools(
|
||||
keyboardIsVisible: keyboardVisibilityController.isVisible &&
|
||||
(_showEdit || chatKeyboardRequested),
|
||||
showGestureHelp: _showGestureHelp);
|
||||
}),
|
||||
if (showCursorPaint) CursorPaint(widget.id),
|
||||
if (gFFI.ffiModel.touchMode)
|
||||
FloatingMouse(
|
||||
ffi: gFFI,
|
||||
),
|
||||
]);
|
||||
|
||||
Widget getBodyForMobile() {
|
||||
return Container(
|
||||
color: MyTheme.canvasColor,
|
||||
@@ -745,6 +723,14 @@ class _RemotePageState extends State<RemotePage> with WidgetsBindingObserver {
|
||||
right: 10,
|
||||
child: QualityMonitor(gFFI.qualityMonitorModel),
|
||||
),
|
||||
Obx(() {
|
||||
final chatKeyboardRequested =
|
||||
gFFI.chatModel.softKeyboardRequested.value;
|
||||
return KeyHelpTools(
|
||||
keyboardIsVisible: keyboardVisibilityController.isVisible &&
|
||||
(_showEdit || chatKeyboardRequested),
|
||||
showGestureHelp: _showGestureHelp);
|
||||
}),
|
||||
SizedBox(
|
||||
width: 0,
|
||||
height: 0,
|
||||
@@ -776,9 +762,14 @@ class _RemotePageState extends State<RemotePage> with WidgetsBindingObserver {
|
||||
).workaroundFreezeLinuxMint(),
|
||||
),
|
||||
];
|
||||
// Holding a virtual button while another finger drags needs both pointers in the canvas
|
||||
// recognizers (isSpecialHoldDragActive), so these stay inside the gesture region.
|
||||
if (!gFFI.ffiModel.touchMode) {
|
||||
if (showCursorPaint) {
|
||||
paints.add(CursorPaint(widget.id));
|
||||
}
|
||||
if (gFFI.ffiModel.touchMode) {
|
||||
paints.add(FloatingMouse(
|
||||
ffi: gFFI,
|
||||
));
|
||||
} else {
|
||||
paints.add(FloatingMouseWidgets(
|
||||
ffi: gFFI,
|
||||
));
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_hbb/mobile/pages/file_manager_page.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
Widget buildSubject({
|
||||
VoidCallback? onCanceled,
|
||||
List<IconButton>? actions,
|
||||
}) {
|
||||
return MaterialApp(
|
||||
home: Scaffold(
|
||||
bottomSheet: BottomSheetBody(
|
||||
leading: const Icon(Icons.check),
|
||||
title: 'Wybrano',
|
||||
text: '1 elementów [Lokalny]',
|
||||
onCanceled: onCanceled,
|
||||
actions: actions,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
testWidgets('keeps action buttons above bottom system navigation bar',
|
||||
(tester) async {
|
||||
tester.view.physicalSize = const Size(360, 800);
|
||||
tester.view.devicePixelRatio = 1.0;
|
||||
tester.view.padding = const FakeViewPadding(bottom: 48);
|
||||
tester.view.viewPadding = const FakeViewPadding(bottom: 48);
|
||||
addTearDown(tester.view.reset);
|
||||
|
||||
var canceled = false;
|
||||
await tester.pumpWidget(buildSubject(
|
||||
onCanceled: () => canceled = true,
|
||||
actions: [
|
||||
IconButton(icon: const Icon(Icons.save_alt), onPressed: () {}),
|
||||
IconButton(icon: const Icon(Icons.compare_arrows), onPressed: () {}),
|
||||
IconButton(icon: const Icon(Icons.delete_forever), onPressed: () {}),
|
||||
],
|
||||
));
|
||||
|
||||
expect(tester.takeException(), isNull);
|
||||
expect(tester.getSize(find.byType(BottomSheetBody)).height, 113.0);
|
||||
for (final icon in const [
|
||||
Icons.save_alt,
|
||||
Icons.compare_arrows,
|
||||
Icons.delete_forever,
|
||||
Icons.cancel_outlined,
|
||||
]) {
|
||||
expect(tester.getBottomRight(find.byIcon(icon)).dy,
|
||||
lessThanOrEqualTo(752.0));
|
||||
}
|
||||
|
||||
await tester.tap(find.byIcon(Icons.cancel_outlined));
|
||||
await tester.pump();
|
||||
expect(canceled, isTrue);
|
||||
});
|
||||
|
||||
testWidgets('preserves default height when bottom inset is zero',
|
||||
(tester) async {
|
||||
tester.view.physicalSize = const Size(360, 800);
|
||||
tester.view.devicePixelRatio = 1.0;
|
||||
addTearDown(tester.view.reset);
|
||||
|
||||
await tester.pumpWidget(buildSubject());
|
||||
|
||||
expect(tester.takeException(), isNull);
|
||||
expect(tester.getSize(find.byType(BottomSheetBody)).height, 65.0);
|
||||
});
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 1.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 97 KiB |
Reference in new issue
Block a user