mirror of
https://github.com/bryangerlach/rdgen.git
synced 2026-01-19 21:40:37 +00:00
allow custom android application id
This commit is contained in:
7
.github/workflows/generator-android.yml
vendored
7
.github/workflows/generator-android.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/generator-windows.yml
vendored
2
.github/workflows/generator-windows.yml
vendored
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user