From cd1915a4bf6f3d5dda4971bd7302f9441bb40a4d Mon Sep 17 00:00:00 2001 From: Bryan Gerlach Date: Tue, 8 Apr 2025 16:27:45 -0500 Subject: [PATCH] remove the calls to api.rustdesk.com when checking for updates --- .github/workflows/docker-build.yml | 3 +++ .github/workflows/generator-android.yml | 1 + .github/workflows/generator-linux.yml | 1 + .github/workflows/generator-macos.yml | 1 + .github/workflows/generator-windows.yml | 1 + 5 files changed, 7 insertions(+) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index ac14e9c..57edcf6 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -20,6 +20,9 @@ jobs: elif [[ "${{ github.ref_type }}" == "tag" ]]; then echo "IMAGE_TAG=${{ github.ref_name }}" >> "$GITHUB_ENV" echo "CREATE_IMAGE=true" >> "$GITHUB_ENV" + elif [[ "${{ github.ref }}" == "refs/heads/master" ]]; then + echo "IMAGE_TAG=latest" >> "$GITHUB_ENV" + echo "CREATE_IMAGE=true" >> "$GITHUB_ENV" else echo "CREATE_IMAGE=false" >> "$GITHUB_ENV" fi diff --git a/.github/workflows/generator-android.yml b/.github/workflows/generator-android.yml index 75d7c4b..65d6c83 100644 --- a/.github/workflows/generator-android.yml +++ b/.github/workflows/generator-android.yml @@ -417,6 +417,7 @@ jobs: if: fromJson(inputs.extras).removeNewVersionNotif == 'true' run: | sed -i -e 's|updateUrl.isNotEmpty|false|' ./flutter/lib/desktop/pages/desktop_home_page.dart + sed -i '/let (request, url) =/,/Ok(())/{/Ok(())/!d}' ./src/common.rs - name: Report Status uses: fjogeleit/http-request-action@v1 diff --git a/.github/workflows/generator-linux.yml b/.github/workflows/generator-linux.yml index d3cb12f..2935f12 100644 --- a/.github/workflows/generator-linux.yml +++ b/.github/workflows/generator-linux.yml @@ -358,6 +358,7 @@ jobs: if: fromJson(inputs.extras).removeNewVersionNotif == 'true' run: | sed -i -e 's|updateUrl.isNotEmpty|false|' ./flutter/lib/desktop/pages/desktop_home_page.dart + sed -i '/let (request, url) =/,/Ok(())/{/Ok(())/!d}' ./src/common.rs - name: Restore bridge files if: matrix.job.arch == 'x86_64' || env.UPLOAD_ARTIFACT == 'true' diff --git a/.github/workflows/generator-macos.yml b/.github/workflows/generator-macos.yml index bb1fcca..3bd46ed 100644 --- a/.github/workflows/generator-macos.yml +++ b/.github/workflows/generator-macos.yml @@ -473,6 +473,7 @@ jobs: if: fromJson(inputs.extras).removeNewVersionNotif == 'true' run: | sed -i -e 's|updateUrl.isNotEmpty|false|' ./flutter/lib/desktop/pages/desktop_home_page.dart + sed -i '/let (request, url) =/,/Ok(())/{/Ok(())/!d}' ./src/common.rs - name: Report Status uses: fjogeleit/http-request-action@v1 diff --git a/.github/workflows/generator-windows.yml b/.github/workflows/generator-windows.yml index 82c5289..f2bb7eb 100644 --- a/.github/workflows/generator-windows.yml +++ b/.github/workflows/generator-windows.yml @@ -412,6 +412,7 @@ jobs: shell: bash run: | sed -i -e 's|updateUrl.isNotEmpty|false|' ./flutter/lib/desktop/pages/desktop_home_page.dart + sed -i '/let (request, url) =/,/Ok(())/{/Ok(())/!d}' ./src/common.rs - name: run as admin