An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
Add built CMake to PATH in actual RD build step (#8855)
Vasyl Gellof67f2be0cbec
diff --git a/.github/workflows/flutter-build.yml b/.github/workflows/flutter-build.ymlindex c213837c2..1a70c3a43 100644--- a/.github/workflows/flutter-build.yml+++ b/.github/workflows/flutter-build.yml@@ -22,6 +22,7 @@ env:RUST_VERSION: "1.75" # sciter failed on m1 with 1.78 because of https://blog.rust-lang.org/2024/03/30/i128-layout-update.htmlCARGO_NDK_VERSION: "3.1.2"SCITER_ARMV7_CMAKE_VERSION: "3.29.7"+ SCITER_NASM_DEBVERSION: "2.14-1"LLVM_VERSION: "15.0.6"FLUTTER_VERSION: "3.19.6"ANDROID_FLUTTER_VERSION: "3.13.9" # >= 3.16 is very slow on my android phone, but work well on most of others. We may switch to new flutter after changing to texture rendering (I believe it can solve my problem).@@ -1384,14 +1385,12 @@ jobs:wget \xz-utils \zip- # install newer nasm for aom- wget --output-document nasm.deb "http://ftp.us.debian.org/debian/pool/main/n/nasm/nasm_2.14-1_${{ matrix.job.deb_arch }}.deb"- dpkg -i nasm.deb- rm -f nasm.deb- # install {gcc,g++}-8 and prebuilt cmake to build vcpkg executable on arm-linux+ # arm-linux needs CMake and vcokg built from source as there+ # are no prebuilts available from Kitware and Microsoftif [ "${{ matrix.job.vcpkg-triplet }}" = "arm-linux" ]; then- apt-get install -y gcc-8 g++-8- apt-get install -y libssl-dev+ # install gcc/g++ 8 for vcpkg and OpenSSL headers for CMake+ apt-get install -y gcc-8 g++-8 libssl-dev+ # bootstrap CMake amd add it to PATHgit clone --depth 1 https://github.com/kitware/cmake -b "v${{ env.SCITER_ARMV7_CMAKE_VERSION }}" /tmp/cmakepushd /tmp/cmake./bootstrap --generator='Unix Makefiles' "--prefix=/opt/cmake-${{ env.SCITER_ARMV7_CMAKE_VERSION }}-linux-armhf"@@ -1400,19 +1399,14 @@ jobs:rm -rf /tmp/cmakeexport PATH="/opt/cmake-${{ env.SCITER_ARMV7_CMAKE_VERSION }}-linux-armhf/bin:$PATH"fi- run: |- # disable git safe.directory- git config --global --add safe.directory "*"- # Set python3.7 as default python3- update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1- # vcpkg+ # bootstrap vcpkg and set VCPKG_ROOTexport VCPKG_ROOT=/opt/artifacts/vcpkgpushd /opt/artifactsrm -rf vcpkggit clone https://github.com/microsoft/vcpkgpushd vcpkggit reset --hard ${{ env.VCPKG_COMMIT_ID }}- # Build vcpkg helper executable with gcc-8 for arm-linux but use prebuilt one on x64-linux+ # build vcpkg helper executable with gcc-8 for arm-linux but use prebuilt one on x64-linuxif [ "${{ matrix.job.vcpkg-triplet }}" = "arm-linux" ]; thenCC=/usr/bin/gcc-8 CXX=/usr/bin/g++-8 sh bootstrap-vcpkg.sh -disableMetricsexport VCPKG_FORCE_SYSTEM_BINARIES=1@@ -1421,28 +1415,44 @@ jobs:fipopdpopd- $VCPKG_ROOT/vcpkg install --triplet ${{ matrix.job.vcpkg-triplet }} --x-install-root="$VCPKG_ROOT/installed"# rustpushd /opt# do not use rustup, because memory overflow in qemu- wget -O rust.tar.gz https://static.rust-lang.org/dist/rust-${{env.RUST_TOOLCHAIN_VERSION}}-${{ matrix.job.target }}.tar.gz+ wget --output-document rust.tar.gz https://static.rust-lang.org/dist/rust-${{env.RUST_TOOLCHAIN_VERSION}}-${{ matrix.job.target }}.tar.gztar -zxvf rust.tar.gz > /dev/null && rm rust.tar.gz- cd rust-${{env.RUST_TOOLCHAIN_VERSION}}-${{ matrix.job.target }} && ./install.sh+ pushd rust-${{env.RUST_TOOLCHAIN_VERSION}}-${{ matrix.job.target }}+ ./install.sh+ popdrm -rf rust-${{env.RUST_TOOLCHAIN_VERSION}}-${{ matrix.job.target }}- # edit config+ popd+ # install newer nasm for aom+ wget --output-document nasm.deb "http://ftp.us.debian.org/debian/pool/main/n/nasm/nasm_${{ env.SCITER_NASM_DEBVERSION }}_${{ matrix.job.deb_arch }}.deb"+ dpkg -i nasm.deb+ rm -f nasm.deb+ run: |+ # disable git safe.directory+ git config --global --add safe.directory "*"+ # set python3.7 as default python3+ update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1+ # add built CMake to PATH for arm-linux+ if [ "${{ matrix.job.vcpkg-triplet }}" = "arm-linux" ]; then+ export PATH="/opt/cmake-${{ env.SCITER_ARMV7_CMAKE_VERSION }}-linux-armhf/bin:$PATH"+ fi+ # edit cargo configmkdir -p ~/.cargo/echo """[source.crates-io]registry = 'https://github.com/rust-lang/crates.io-index'""" > ~/.cargo/configcat ~/.cargo/config-- # build- pushd /workspace+ # install dependencies from vcpkg+ export VCPKG_ROOT=/opt/artifacts/vcpkg+ $VCPKG_ROOT/vcpkg install --triplet ${{ matrix.job.vcpkg-triplet }} --x-install-root="$VCPKG_ROOT/installed"+ # build rustdeskpython3 ./res/inline-sciter.pyexport CARGO_INCREMENTAL=0cargo build --features inline${{ matrix.job.extra_features }} --release --bins --jobs 1- # package+ # make debian packagemkdir -p ./Releasemv ./target/release/rustdesk ./Release/rustdeskwget -O ./Release/libsciter-gtk.so https://github.com/c-smile/sciter-sdk/raw/master/bin.lnx/${{ matrix.job.sciter_arch }}/libsciter-gtk.so