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

@@ -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.