From 8b04b051fd5c4ec2bcc473194dce10f3c38f6234 Mon Sep 17 00:00:00 2001 From: Bryan Gerlach Date: Wed, 26 Mar 2025 14:11:18 -0500 Subject: [PATCH] remove new version notification fix --- .github/workflows/generator-android.yml | 3 +-- .github/workflows/generator-linux.yml | 3 +-- .github/workflows/generator-macos.yml | 3 +-- .github/workflows/generator-windows.yml | 4 ++-- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/generator-android.yml b/.github/workflows/generator-android.yml index 110de9b..2f10db9 100644 --- a/.github/workflows/generator-android.yml +++ b/.github/workflows/generator-android.yml @@ -416,8 +416,7 @@ jobs: continue-on-error: true if: fromJson(inputs.extras).removeNewVersionNotif == 'true' run: | - wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/removeNewVersionNotif.diff - git apply removeNewVersionNotif.diff + sed -i -e 's|updateUrl.isNotEmpty|false|' ./flutter/lib/desktop/pages/desktop_home_page.dart - name: Report Status uses: fjogeleit/http-request-action@v1 diff --git a/.github/workflows/generator-linux.yml b/.github/workflows/generator-linux.yml index 2c1fe2e..986b216 100644 --- a/.github/workflows/generator-linux.yml +++ b/.github/workflows/generator-linux.yml @@ -355,8 +355,7 @@ jobs: continue-on-error: true if: fromJson(inputs.extras).removeNewVersionNotif == 'true' run: | - wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/removeNewVersionNotif.diff - git apply removeNewVersionNotif.diff + sed -i -e 's|updateUrl.isNotEmpty|false|' ./flutter/lib/desktop/pages/desktop_home_page.dart - 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 98da387..de6229b 100644 --- a/.github/workflows/generator-macos.yml +++ b/.github/workflows/generator-macos.yml @@ -472,8 +472,7 @@ jobs: continue-on-error: true if: fromJson(inputs.extras).removeNewVersionNotif == 'true' run: | - wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/removeNewVersionNotif.diff - git apply removeNewVersionNotif.diff + sed -i -e 's|updateUrl.isNotEmpty|false|' ./flutter/lib/desktop/pages/desktop_home_page.dart - name: Report Status uses: fjogeleit/http-request-action@v1 diff --git a/.github/workflows/generator-windows.yml b/.github/workflows/generator-windows.yml index 439997a..7772b82 100644 --- a/.github/workflows/generator-windows.yml +++ b/.github/workflows/generator-windows.yml @@ -409,9 +409,9 @@ jobs: - name: removeNewVersionNotif continue-on-error: true if: fromJson(inputs.extras).removeNewVersionNotif == 'true' + shell: bash run: | - Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/removeNewVersionNotif.diff -Outfile removeNewVersionNotif.diff - git apply removeNewVersionNotif.diff + sed -i -e 's|updateUrl.isNotEmpty|false|' ./flutter/lib/desktop/pages/desktop_home_page.dart - name: run as admin