add option to remove new version message
This commit is contained in:
22
.github/patches/remove_new_version_notification.patch
vendored
Normal file
22
.github/patches/remove_new_version_notification.patch
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
diff --git a/flutter/lib/desktop/pages/desktop_home_page.dart b/flutter/lib/desktop/pages/desktop_home_page.dart
|
||||||
|
index ba724eed5..cb66cdaed 100644
|
||||||
|
--- a/flutter/lib/desktop/pages/desktop_home_page.dart
|
||||||
|
+++ b/flutter/lib/desktop/pages/desktop_home_page.dart
|
||||||
|
@@ -424,7 +424,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
||||||
|
}
|
||||||
|
|
||||||
|
Widget buildHelpCards(String updateUrl) {
|
||||||
|
- if (!bind.isCustomClient() &&
|
||||||
|
+ /*if (!bind.isCustomClient() &&
|
||||||
|
updateUrl.isNotEmpty &&
|
||||||
|
!isCardClosed &&
|
||||||
|
bind.mainUriPrefixSync().contains('rustdesk')) {
|
||||||
|
@@ -435,7 +435,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
||||||
|
final Uri url = Uri.parse('https://rustdesk.com/download');
|
||||||
|
await launchUrl(url);
|
||||||
|
}, closeButton: true);
|
||||||
|
- }
|
||||||
|
+ }*/
|
||||||
|
if (systemError.isNotEmpty) {
|
||||||
|
return buildInstallCard("", systemError, "", () {});
|
||||||
|
}
|
||||||
7
.github/workflows/generator-android.yml
vendored
7
.github/workflows/generator-android.yml
vendored
@@ -408,6 +408,13 @@ jobs:
|
|||||||
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
|
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
|
||||||
git apply statussort.diff
|
git apply statussort.diff
|
||||||
|
|
||||||
|
- name: removeNewVersionNotif
|
||||||
|
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
|
||||||
|
|
||||||
- name: Report Status
|
- name: Report Status
|
||||||
uses: fjogeleit/http-request-action@v1
|
uses: fjogeleit/http-request-action@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
7
.github/workflows/generator-linux.yml
vendored
7
.github/workflows/generator-linux.yml
vendored
@@ -346,6 +346,13 @@ jobs:
|
|||||||
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
|
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
|
||||||
git apply statussort.diff
|
git apply statussort.diff
|
||||||
|
|
||||||
|
- name: removeNewVersionNotif
|
||||||
|
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
|
||||||
|
|
||||||
- name: Restore bridge files
|
- name: Restore bridge files
|
||||||
if: matrix.job.arch == 'x86_64' || env.UPLOAD_ARTIFACT == 'true'
|
if: matrix.job.arch == 'x86_64' || env.UPLOAD_ARTIFACT == 'true'
|
||||||
uses: actions/download-artifact@master
|
uses: actions/download-artifact@master
|
||||||
|
|||||||
7
.github/workflows/generator-macos.yml
vendored
7
.github/workflows/generator-macos.yml
vendored
@@ -472,6 +472,13 @@ jobs:
|
|||||||
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
|
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
|
||||||
git apply statussort.diff
|
git apply statussort.diff
|
||||||
|
|
||||||
|
- name: removeNewVersionNotif
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@v1
|
uses: dtolnay/rust-toolchain@v1
|
||||||
|
|||||||
7
.github/workflows/generator-windows.yml
vendored
7
.github/workflows/generator-windows.yml
vendored
@@ -383,6 +383,13 @@ jobs:
|
|||||||
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff -OutFile statussort.diff
|
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff -OutFile statussort.diff
|
||||||
git apply statussort.diff
|
git apply statussort.diff
|
||||||
|
|
||||||
|
- name: removeNewVersionNotif
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
- name: run as admin
|
- name: run as admin
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|||||||
@@ -406,6 +406,13 @@ jobs:
|
|||||||
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
|
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
|
||||||
git apply statussort.diff
|
git apply statussort.diff
|
||||||
|
|
||||||
|
- name: removeNewVersionNotif
|
||||||
|
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
|
||||||
|
|
||||||
- name: Report Status
|
- name: Report Status
|
||||||
uses: fjogeleit/http-request-action@v1
|
uses: fjogeleit/http-request-action@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
7
.github/workflows/pre137-generator-linux.yml
vendored
7
.github/workflows/pre137-generator-linux.yml
vendored
@@ -344,6 +344,13 @@ jobs:
|
|||||||
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
|
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
|
||||||
git apply statussort.diff
|
git apply statussort.diff
|
||||||
|
|
||||||
|
- name: removeNewVersionNotif
|
||||||
|
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
|
||||||
|
|
||||||
- name: Restore bridge files
|
- name: Restore bridge files
|
||||||
if: matrix.job.arch == 'x86_64' || env.UPLOAD_ARTIFACT == 'true'
|
if: matrix.job.arch == 'x86_64' || env.UPLOAD_ARTIFACT == 'true'
|
||||||
uses: actions/download-artifact@master
|
uses: actions/download-artifact@master
|
||||||
|
|||||||
7
.github/workflows/pre137-generator-macos.yml
vendored
7
.github/workflows/pre137-generator-macos.yml
vendored
@@ -465,6 +465,13 @@ jobs:
|
|||||||
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
|
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff
|
||||||
git apply statussort.diff
|
git apply statussort.diff
|
||||||
|
|
||||||
|
- name: removeNewVersionNotif
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@v1
|
uses: dtolnay/rust-toolchain@v1
|
||||||
|
|||||||
@@ -381,6 +381,13 @@ jobs:
|
|||||||
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff -OutFile statussort.diff
|
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/statussort.diff -OutFile statussort.diff
|
||||||
git apply statussort.diff
|
git apply statussort.diff
|
||||||
|
|
||||||
|
- name: removeNewVersionNotif
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
- name: run as admin
|
- name: run as admin
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|||||||
@@ -72,3 +72,4 @@ class GenerateForm(forms.Form):
|
|||||||
xOffline = forms.BooleanField(initial=False, required=False)
|
xOffline = forms.BooleanField(initial=False, required=False)
|
||||||
hidecm = forms.BooleanField(initial=False, required=False)
|
hidecm = forms.BooleanField(initial=False, required=False)
|
||||||
statussort = forms.BooleanField(initial=False, required=False)
|
statussort = forms.BooleanField(initial=False, required=False)
|
||||||
|
removeNewVersionNotif = forms.BooleanField(initial=False, required=False)
|
||||||
@@ -212,6 +212,7 @@
|
|||||||
<label for="{{ form.xOffline.id_for_label }}">{{ form.xOffline }} Display an X for offline devices in the addressbook.</label><br>
|
<label for="{{ form.xOffline.id_for_label }}">{{ form.xOffline }} Display an X for offline devices in the addressbook.</label><br>
|
||||||
<label for="{{ form.hidecm.id_for_label }}">{{ form.hidecm }} Allow hiding the connection window from remote screen.</label><br>
|
<label for="{{ form.hidecm.id_for_label }}">{{ form.hidecm }} Allow hiding the connection window from remote screen.</label><br>
|
||||||
<label for="{{ form.statussort.id_for_label }}">{{ form.statussort }} Allow sorting by online status.</label><br>
|
<label for="{{ form.statussort.id_for_label }}">{{ form.statussort }} Allow sorting by online status.</label><br>
|
||||||
|
<label for="{{ form.removeNewVersionNotif.id_for_label }}">{{ form.removeNewVersionNotif }} Remove notification for new versions.</label><br>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section">
|
<div class="section">
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ def generator_view(request):
|
|||||||
xOffline = form.cleaned_data['xOffline']
|
xOffline = form.cleaned_data['xOffline']
|
||||||
hidecm = form.cleaned_data['hidecm']
|
hidecm = form.cleaned_data['hidecm']
|
||||||
statussort = form.cleaned_data['statussort']
|
statussort = form.cleaned_data['statussort']
|
||||||
|
removeNewVersionNotif = form.cleaned_data['removeNewVersionNotif']
|
||||||
server = form.cleaned_data['serverIP']
|
server = form.cleaned_data['serverIP']
|
||||||
key = form.cleaned_data['key']
|
key = form.cleaned_data['key']
|
||||||
apiServer = form.cleaned_data['apiServer']
|
apiServer = form.cleaned_data['apiServer']
|
||||||
@@ -164,6 +165,7 @@ def generator_view(request):
|
|||||||
extras['xOffline'] = 'true' if xOffline else 'false'
|
extras['xOffline'] = 'true' if xOffline else 'false'
|
||||||
extras['hidecm'] = 'true' if hidecm else 'false'
|
extras['hidecm'] = 'true' if hidecm else 'false'
|
||||||
extras['statussort'] = 'true' if statussort else 'false'
|
extras['statussort'] = 'true' if statussort else 'false'
|
||||||
|
extras['removeNewVersionNotif'] = 'true' if removeNewVersionNotif else 'false'
|
||||||
extra_input = json.dumps(extras)
|
extra_input = json.dumps(extras)
|
||||||
|
|
||||||
####from here run the github action, we need user, repo, access token.
|
####from here run the github action, we need user, repo, access token.
|
||||||
|
|||||||
Reference in New Issue
Block a user