remove run as admin option

This commit is contained in:
Bryan Gerlach
2025-11-19 11:24:35 -06:00
parent e46d0bd0ef
commit 5052bec676
4 changed files with 12 additions and 14 deletions

View File

@@ -430,15 +430,15 @@ jobs:
sed -i -e 's|updateUrl.isNotEmpty|false|' ./flutter/lib/desktop/pages/desktop_home_page.dart
sed -i '/let (request, url) =/,/Ok(())/{/Ok(())/!d}' ./src/common.rs
- name: run as admin
continue-on-error: true
if: ${{ fromJson(inputs.extras).runasadmin == 'true' }}
shell: bash
run: |
sed -i '/<\/compatibility>/a \
<security> \
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> \
</security>' ./flutter/windows/runner/runner.exe.manifest
# - name: run as admin
# continue-on-error: true
# if: ${{ fromJson(inputs.extras).runasadmin == 'true' }}
# shell: bash
# run: |
# sed -i '/<\/compatibility>/a \
# <security> \
# <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> \
# </security>' ./flutter/windows/runner/runner.exe.manifest
- name: Report Status
uses: fjogeleit/http-request-action@v1

View File

@@ -48,7 +48,7 @@ class GenerateForm(forms.Form):
#Security
passApproveMode = forms.ChoiceField(choices=[('password','Accept sessions via password'),('click','Accept sessions via click'),('password-click','Accepts sessions via both')],initial='password-click')
permanentPassword = forms.CharField(widget=forms.PasswordInput(), required=False)
runasadmin = forms.ChoiceField(choices=[('false','No'),('true','Yes')], initial='false')
#runasadmin = forms.ChoiceField(choices=[('false','No'),('true','Yes')], initial='false')
denyLan = forms.BooleanField(initial=False, required=False)
enableDirectIP = forms.BooleanField(initial=False, required=False)
#ipWhitelist = forms.BooleanField(initial=False, required=False)

View File

@@ -308,8 +308,6 @@
<div class="container">
<div class="section">
<h2><i class="fas fa-shield-alt"></i> Security</h2>
<label for="{{ form.runasadmin.id_for_label }}">Always run as Administrator?</label>
{{ form.runasadmin }}<br><br>
<label for="{{ form.passApproveMode.id_for_label }}">Password Approve mode:</label>
{{ form.passApproveMode }}<br><br>
<div id="passwordRequirement" class="password-requirement">To use the hide connection window feature, please set a permanent password.</div>

View File

@@ -54,7 +54,7 @@ def generator_view(request):
permPass = form.cleaned_data['permanentPassword']
theme = form.cleaned_data['theme']
themeDorO = form.cleaned_data['themeDorO']
runasadmin = form.cleaned_data['runasadmin']
#runasadmin = form.cleaned_data['runasadmin']
passApproveMode = form.cleaned_data['passApproveMode']
denyLan = form.cleaned_data['denyLan']
enableDirectIP = form.cleaned_data['enableDirectIP']
@@ -190,7 +190,7 @@ def generator_view(request):
#github limits inputs to 10, so lump extras into one with json
extras = {}
extras['genurl'] = _settings.GENURL
extras['runasadmin'] = runasadmin
#extras['runasadmin'] = runasadmin
extras['urlLink'] = urlLink
extras['downloadLink'] = downloadLink
extras['delayFix'] = 'true' if delayFix else 'false'