mirror of
https://github.com/bryangerlach/rdgen.git
synced 2026-02-21 03:41:07 +00:00
typo
This commit is contained in:
4
.github/workflows/generator-windows.yml
vendored
4
.github/workflows/generator-windows.yml
vendored
@@ -286,7 +286,7 @@ jobs:
|
||||
if: ${{ inputs.iconlink != 'false' }}
|
||||
continue-on-error: true
|
||||
run: |
|
||||
Invoke-WebRequest -Uri ${{ fromJson(inputs.iconlink).url }}/get_png?filename=${{ fromJson(inputs.iconlink).file }}"&"uuid=${{ fromJson(inputs.iconlink).uuid }} -OutFile ./res/icon.png
|
||||
Invoke-WebRequest -Uri ${{ fromJson(inputs.iconlink).url }}/get_png?filename=${{ fromJson(inputs.iconlink).file }}&uuid=${{ fromJson(inputs.iconlink).uuid }} -OutFile ./res/icon.png
|
||||
mv ./res/32x32.png ./res/32x32.png.bak
|
||||
mv ./res/64x64.png ./res/64x64.png.bak
|
||||
mv ./res/128x128.png ./res/128x128.png.bak
|
||||
@@ -387,7 +387,7 @@ jobs:
|
||||
if: ${{ inputs.logolink != 'false' }}
|
||||
continue-on-error: true
|
||||
run: |
|
||||
Invoke-WebRequest -Uri ${{ fromJson(inputs.logolink).url }}/get_png?filename=${{ fromJson(inputs.logolink).file }}"&"uuid=${{ fromJson(inputs.logolink).uuid }} -OutFile ./rustdesk/data/flutter_assets/assets/logo.png
|
||||
Invoke-WebRequest -Uri ${{ fromJson(inputs.logolink).url }}/get_png?filename=${{ fromJson(inputs.logolink).file }}&uuid=${{ fromJson(inputs.logolink).uuid }} -OutFile ./rustdesk/data/flutter_assets/assets/logo.png
|
||||
|
||||
|
||||
- name: find Runner.res
|
||||
|
||||
@@ -297,11 +297,11 @@ def resize_and_encode_icon(imagefile):
|
||||
return resized64
|
||||
|
||||
#the following is used when accessed from an external source, like the rustdesk api server
|
||||
def startgh(request):
|
||||
def startgh(request, platform):
|
||||
#print(request)
|
||||
data_ = json.loads(request.body)
|
||||
####from here run the github action, we need user, repo, access token.
|
||||
url = 'https://api.github.com/repos/'+_settings.GHUSER+'/rdgen/actions/workflows/generator-windows.yml/dispatches'
|
||||
url = 'https://api.github.com/repos/'+_settings.GHUSER+'/rdgen/actions/workflows/generator-'+data_.get('platform')+'.yml/dispatches'
|
||||
data = {
|
||||
"ref":"master",
|
||||
"inputs":{
|
||||
@@ -310,8 +310,8 @@ def startgh(request):
|
||||
"apiServer":data_.get('apiServer'),
|
||||
"custom":data_.get('custom'),
|
||||
"uuid":data_.get('uuid'),
|
||||
"iconbase64":data_.get('iconbase64'),
|
||||
"logobase64":data_.get('logobase64'),
|
||||
"iconlink":data_.get('iconlink'),
|
||||
"logolink":data_.get('logolink'),
|
||||
"appname":data_.get('appname'),
|
||||
"extras":data_.get('extras'),
|
||||
"filename":data_.get('filename')
|
||||
|
||||
Reference in New Issue
Block a user