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' }}
|
if: ${{ inputs.iconlink != 'false' }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
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/32x32.png ./res/32x32.png.bak
|
||||||
mv ./res/64x64.png ./res/64x64.png.bak
|
mv ./res/64x64.png ./res/64x64.png.bak
|
||||||
mv ./res/128x128.png ./res/128x128.png.bak
|
mv ./res/128x128.png ./res/128x128.png.bak
|
||||||
@@ -387,7 +387,7 @@ jobs:
|
|||||||
if: ${{ inputs.logolink != 'false' }}
|
if: ${{ inputs.logolink != 'false' }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
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
|
- name: find Runner.res
|
||||||
|
|||||||
@@ -297,11 +297,11 @@ def resize_and_encode_icon(imagefile):
|
|||||||
return resized64
|
return resized64
|
||||||
|
|
||||||
#the following is used when accessed from an external source, like the rustdesk api server
|
#the following is used when accessed from an external source, like the rustdesk api server
|
||||||
def startgh(request):
|
def startgh(request, platform):
|
||||||
#print(request)
|
#print(request)
|
||||||
data_ = json.loads(request.body)
|
data_ = json.loads(request.body)
|
||||||
####from here run the github action, we need user, repo, access token.
|
####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 = {
|
data = {
|
||||||
"ref":"master",
|
"ref":"master",
|
||||||
"inputs":{
|
"inputs":{
|
||||||
@@ -310,8 +310,8 @@ def startgh(request):
|
|||||||
"apiServer":data_.get('apiServer'),
|
"apiServer":data_.get('apiServer'),
|
||||||
"custom":data_.get('custom'),
|
"custom":data_.get('custom'),
|
||||||
"uuid":data_.get('uuid'),
|
"uuid":data_.get('uuid'),
|
||||||
"iconbase64":data_.get('iconbase64'),
|
"iconlink":data_.get('iconlink'),
|
||||||
"logobase64":data_.get('logobase64'),
|
"logolink":data_.get('logolink'),
|
||||||
"appname":data_.get('appname'),
|
"appname":data_.get('appname'),
|
||||||
"extras":data_.get('extras'),
|
"extras":data_.get('extras'),
|
||||||
"filename":data_.get('filename')
|
"filename":data_.get('filename')
|
||||||
|
|||||||
Reference in New Issue
Block a user