allow custom android application id

This commit is contained in:
Bryan Gerlach
2026-01-06 16:02:53 -06:00
parent ceaf44f71d
commit 54ff4d8c8b
5 changed files with 16 additions and 0 deletions

View File

@@ -363,6 +363,13 @@ jobs:
sed -i -e "s|child: Text('rustdesk.com',|child: Text('${{ fromJson(inputs.extras).urlLink }}',|" ./flutter/lib/mobile/pages/settings_page.dart
sed -i -e "s|https://rustdesk.com/privacy.html|${{ fromJson(inputs.extras).urlLink }}/privacy.html|" ./flutter/lib/desktop/pages/install_page.dart
- name: change app id to custom
if: fromJson(inputs.extras).androidappid != 'com.carriez.flutter_hbb'
continue-on-error: true
shell: bash
run: |
sed -i -e 's|com.carriez.flutter_hbb|fromJson(inputs.extras).androidappid|' ./flutter/android/app/build.gradle
- name: change download link to custom
if: fromJson(inputs.extras).downloadLink != 'https://rustdesk.com/download'
continue-on-error: true

View File

@@ -195,6 +195,8 @@ jobs:
sed -i -e 's|"rustdesk.exe"|"${{ inputs.filename }}"|' ./flutter/windows/runner/Runner.rc
sed -i -e 's|"RustDesk"|"${{ inputs.appname }}"|' ./flutter/windows/runner/Runner.rc
# ./src/lang/en.rs
# change powered by rustdek to powered by compname
sed -i -e 's|Powered by RustDesk|Powered by ${{ fromJson(inputs.extras).compname }}|' ./src/lang/en.rs
find ./src/lang -name "*.rs" -exec sed -i -e 's|RustDesk|${{ inputs.appname }}|' {} \;
- name: fix registry if appname has a space

View File

@@ -24,6 +24,7 @@ class GenerateForm(forms.Form):
('settingsY', 'No, enable settings'),
('settingsN', 'Yes, DISABLE settings')
], initial='settingsY')
androidappid = forms.CharField(label="Custom Android App ID (replaces 'com.carriez.flutter_hbb')", required=False)
#Custom Server
serverIP = forms.CharField(label="Host", required=False)

View File

@@ -287,6 +287,8 @@
{{ form.installation }}<br><br>
<label for="{{ form.settings.id_for_label }}">Disable Settings:</label>
{{ form.settings }}<br><br>
<label for="{{ form.androidappid.id_for_label }}">Custom Android App ID (replaces 'com.carriez.flutter_hbb', leave blank to use default):</label>
{{ form.androidappid }}<br><br>
</div>
<div class="section">

View File

@@ -50,6 +50,9 @@ def generator_view(request):
compname = form.cleaned_data['compname']
if not compname:
compname = "Purslane Ltd"
androidappid = form.cleaned_data['androidappid']
if not androidappid:
androidappid = "com.carriez.flutter_hbb"
compname = compname.replace("&","\\&")
permPass = form.cleaned_data['permanentPassword']
theme = form.cleaned_data['theme']
@@ -200,6 +203,7 @@ def generator_view(request):
extras['xOffline'] = 'true' if xOffline else 'false'
extras['removeNewVersionNotif'] = 'true' if removeNewVersionNotif else 'false'
extras['compname'] = compname
extras['androidappid'] = androidappid
extra_input = json.dumps(extras)
####from here run the github action, we need user, repo, access token.