test input hiding
This commit is contained in:
8
.github/workflows/generator-windows.yml
vendored
8
.github/workflows/generator-windows.yml
vendored
@@ -368,10 +368,10 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: magick stuff
|
- name: magick stuff
|
||||||
if: ${{ env.iconlink != 'false' }}
|
if: ${{ env.iconlink_url != 'false' }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
Invoke-WebRequest -Uri ${{ fromJson(env.iconlink).url }}/get_png?filename=${{ fromJson(env.iconlink).file }}"&"uuid=${{ fromJson(env.iconlink).uuid }} -OutFile ./res/iconx.png
|
Invoke-WebRequest -Uri ${{ env.iconlink_url }}/get_png?filename=${{ env.iconlink_file }}"&"uuid=${{ env.iconlink_uuid }} -OutFile ./res/iconx.png
|
||||||
mv ./res/icon.ico ./res/icon.ico.bak
|
mv ./res/icon.ico ./res/icon.ico.bak
|
||||||
mv ./res/icon.png ./res/icon.png.bak
|
mv ./res/icon.png ./res/icon.png.bak
|
||||||
mv ./res/tray-icon.ico ./res/tray-icon.ico.bak
|
mv ./res/tray-icon.ico ./res/tray-icon.ico.bak
|
||||||
@@ -513,10 +513,10 @@ jobs:
|
|||||||
magick ./res/icon.png ./rustdesk/data/flutter_assets/assets/icon.svg
|
magick ./res/icon.png ./rustdesk/data/flutter_assets/assets/icon.svg
|
||||||
|
|
||||||
- name: logo stuff
|
- name: logo stuff
|
||||||
if: ${{ env.logolink != 'false' }}
|
if: ${{ env.logolink_url != 'false' }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
Invoke-WebRequest -Uri ${{ fromJson(env.logolink).url }}/get_png?filename=${{ fromJson(env.logolink).file }}"&"uuid=${{ fromJson(env.logolink).uuid }} -OutFile ./rustdesk/data/flutter_assets/assets/logo.png
|
Invoke-WebRequest -Uri ${{ env.logolink_url }}/get_png?filename=${{ env.logolink_file }}"&"uuid=${{ env.logolink_uuid }} -OutFile ./rustdesk/data/flutter_assets/assets/logo.png
|
||||||
|
|
||||||
- name: find Runner.res
|
- name: find Runner.res
|
||||||
# Windows: find Runner.res (compiled from ./flutter/windows/runner/Runner.rc), copy to ./Runner.res
|
# Windows: find Runner.res (compiled from ./flutter/windows/runner/Runner.rc), copy to ./Runner.res
|
||||||
|
|||||||
@@ -97,18 +97,22 @@ def generator_view(request):
|
|||||||
iconfile = form.cleaned_data.get('iconfile')
|
iconfile = form.cleaned_data.get('iconfile')
|
||||||
if not iconfile:
|
if not iconfile:
|
||||||
iconfile = form.cleaned_data.get('iconbase64')
|
iconfile = form.cleaned_data.get('iconbase64')
|
||||||
iconlink = save_png(iconfile,myuuid,full_url,"icon.png")
|
iconlink_url, iconlink_uuid, iconlink_file = save_png(iconfile,myuuid,full_url,"icon.png")
|
||||||
except:
|
except:
|
||||||
print("failed to get icon, using default")
|
print("failed to get icon, using default")
|
||||||
iconlink = "false"
|
iconlink_url = "false"
|
||||||
|
iconlink_uuid = "false"
|
||||||
|
iconlink_file = "false"
|
||||||
try:
|
try:
|
||||||
logofile = form.cleaned_data.get('logofile')
|
logofile = form.cleaned_data.get('logofile')
|
||||||
if not logofile:
|
if not logofile:
|
||||||
logofile = form.cleaned_data.get('logobase64')
|
logofile = form.cleaned_data.get('logobase64')
|
||||||
logolink = save_png(logofile,myuuid,full_url,"logo.png")
|
logolink_url, logolink_uuid, logolink_file = save_png(logofile,myuuid,full_url,"logo.png")
|
||||||
except:
|
except:
|
||||||
print("failed to get logo")
|
print("failed to get logo")
|
||||||
logolink = "false"
|
logolink_url = "false"
|
||||||
|
logolink_uuid = "false"
|
||||||
|
logolink_file = "false"
|
||||||
|
|
||||||
###create the custom.txt json here and send in as inputs below
|
###create the custom.txt json here and send in as inputs below
|
||||||
decodedCustom = {}
|
decodedCustom = {}
|
||||||
@@ -227,8 +231,12 @@ def generator_view(request):
|
|||||||
"apiServer":apiServer,
|
"apiServer":apiServer,
|
||||||
"custom":encodedCustom,
|
"custom":encodedCustom,
|
||||||
"uuid":myuuid,
|
"uuid":myuuid,
|
||||||
"iconlink":iconlink,
|
"iconlink_url":iconlink_url,
|
||||||
"logolink":logolink,
|
"iconlink_uuid":iconlink_uuid,
|
||||||
|
"iconlink_file":iconlink_file,
|
||||||
|
"logolink_url":logolink_url,
|
||||||
|
"logolink_uuid":logolink_uuid,
|
||||||
|
"logolink_file":logolink_file,
|
||||||
"appname":appname,
|
"appname":appname,
|
||||||
"genurl":_settings.GENURL,
|
"genurl":_settings.GENURL,
|
||||||
"urlLink":urlLink,
|
"urlLink":urlLink,
|
||||||
@@ -434,12 +442,12 @@ def save_png(file, uuid, domain, name):
|
|||||||
with open(file_save_path, "wb+") as f:
|
with open(file_save_path, "wb+") as f:
|
||||||
for chunk in file.chunks():
|
for chunk in file.chunks():
|
||||||
f.write(chunk)
|
f.write(chunk)
|
||||||
imageJson = {}
|
# imageJson = {}
|
||||||
imageJson['url'] = domain
|
# imageJson['url'] = domain
|
||||||
imageJson['uuid'] = uuid
|
# imageJson['uuid'] = uuid
|
||||||
imageJson['file'] = name
|
# imageJson['file'] = name
|
||||||
#return "%s/%s" % (domain, file_save_path)
|
#return "%s/%s" % (domain, file_save_path)
|
||||||
return json.dumps(imageJson)
|
return domain, uuid, name
|
||||||
|
|
||||||
def save_custom_client(request):
|
def save_custom_client(request):
|
||||||
file = request.FILES['file']
|
file = request.FILES['file']
|
||||||
|
|||||||
Reference in New Issue
Block a user