retry downloads

This commit is contained in:
Bryan Gerlach
2026-02-12 11:55:11 -06:00
parent 7df38d7ffd
commit 971586decb
4 changed files with 173 additions and 110 deletions

View File

@@ -391,25 +391,38 @@ jobs:
sed -i -e 's|!key.is_empty()|false|' ./src/client.rs sed -i -e 's|!key.is_empty()|false|' ./src/client.rs
- name: add cycle monitors to toolbar - name: add cycle monitors to toolbar
continue-on-error: true
if: env.cycleMonitor == 'true' if: env.cycleMonitor == 'true'
run: | uses: nick-fields/retry@v3
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/cycle_monitor.diff with:
git apply cycle_monitor.diff timeout_minutes: 1
max_attempts: 3
shell: bash
continue-on-error: true
command: |
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/cycle_monitor.diff
git apply cycle_monitor.diff
- name: use X for offline display instead of orange circle - name: use X for offline display instead of orange circle
continue-on-error: true
if: env.xOffline == 'true' if: env.xOffline == 'true'
run: | uses: nick-fields/retry@v3
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/xoffline.diff with:
git apply xoffline.diff timeout_minutes: 1
max_attempts: 3
shell: bash
command: |
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/xoffline.diff
git apply xoffline.diff
- name: hide-cm - name: hide-cm
continue-on-error: true
if: env.hidecm == 'true' if: env.hidecm == 'true'
run: | uses: nick-fields/retry@v3
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/hidecm.diff with:
git apply hidecm.diff timeout_minutes: 1
max_attempts: 3
shell: bash
command: |
wget https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/hidecm.diff
git apply hidecm.diff
- name: removeNewVersionNotif - name: removeNewVersionNotif
continue-on-error: true continue-on-error: true

File diff suppressed because one or more lines are too long

View File

@@ -218,10 +218,15 @@ jobs:
sed -i -e 's|<span>{translate("Ready")}, <span .link #setup-server>{translate("setup_server_tip")}</span></span>|translate("Ready")|' ./src/ui/index.tis sed -i -e 's|<span>{translate("Ready")}, <span .link #setup-server>{translate("setup_server_tip")}</span></span>|translate("Ready")|' ./src/ui/index.tis
- name: allow custom.txt - name: allow custom.txt
continue-on-error: true uses: nick-fields/retry@v3
run: | with:
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/allowCustom.diff -OutFile allowCustom.diff timeout_minutes: 1
git apply allowCustom.diff max_attempts: 3
shell: pwsh
continue-on-error: true
command: |
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/allowCustom.diff -OutFile allowCustom.diff
git apply allowCustom.diff
- name: Install LLVM and Clang - name: Install LLVM and Clang
uses: rustdesk-org/install-llvm-action-32bit@master uses: rustdesk-org/install-llvm-action-32bit@master
@@ -295,19 +300,23 @@ jobs:
- name: magick stuff - name: magick stuff
if: ${{ env.iconlink_url != 'false' }} if: ${{ env.iconlink_url != 'false' }}
continue-on-error: true uses: nick-fields/retry@v3
run: | with:
Invoke-WebRequest -Uri ${{ env.iconlink_url }}/get_png?filename=${{ env.iconlink_file }}"&"uuid=${{ env.iconlink_uuid }} -OutFile ./res/icon.png timeout_minutes: 1
mv ./res/32x32.png ./res/32x32.png.bak max_attempts: 3
mv ./res/64x64.png ./res/64x64.png.bak shell: pwsh
mv ./res/128x128.png ./res/128x128.png.bak command: |
mv ./res/128x128@2x.png ./res/128x128@2x.png.bak Invoke-WebRequest -Uri ${{ env.iconlink_url }}/get_png?filename=${{ env.iconlink_file }}"&"uuid=${{ env.iconlink_uuid }} -OutFile ./res/icon.png
magick ./res/icon.png -define icon:auto-resize=256,64,48,32,16 ./res/icon.ico mv ./res/32x32.png ./res/32x32.png.bak
cp ./res/icon.ico ./res/tray-icon.ico mv ./res/64x64.png ./res/64x64.png.bak
magick ./res/icon.png -resize 32x32 ./res/32x32.png mv ./res/128x128.png ./res/128x128.png.bak
magick ./res/icon.png -resize 64x64 ./res/64x64.png mv ./res/128x128@2x.png ./res/128x128@2x.png.bak
magick ./res/icon.png -resize 128x128 ./res/128x128.png magick ./res/icon.png -define icon:auto-resize=256,64,48,32,16 ./res/icon.ico
magick ./res/128x128.png -resize 200% ./res/128x128@2x.png cp ./res/icon.ico ./res/tray-icon.ico
magick ./res/icon.png -resize 32x32 ./res/32x32.png
magick ./res/icon.png -resize 64x64 ./res/64x64.png
magick ./res/icon.png -resize 128x128 ./res/128x128.png
magick ./res/128x128.png -resize 200% ./res/128x128@2x.png
- name: ui.rs icon - name: ui.rs icon

View File

@@ -261,13 +261,17 @@ jobs:
#sed -i '/intl:/a \ \ archive: ^3.6.1' ./flutter/pubspec.yaml #sed -i '/intl:/a \ \ archive: ^3.6.1' ./flutter/pubspec.yaml
- name: allow custom.txt - name: allow custom.txt
continue-on-error: true uses: nick-fields/retry@v3
run: | with:
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/allowCustom.py -OutFile allowCustom.py timeout_minutes: 1
python allowCustom.py max_attempts: 3
# Remove Setup Server Tip shell: pwsh
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/removeSetupServerTip.diff -OutFile removeSetupServerTip.diff command: |
git apply removeSetupServerTip.diff Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/allowCustom.py -OutFile allowCustom.py
python allowCustom.py
# Remove Setup Server Tip
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/removeSetupServerTip.diff -OutFile removeSetupServerTip.diff
git apply removeSetupServerTip.diff
- name: Install LLVM and Clang - name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1 uses: KyleMayes/install-llvm-action@v1
@@ -363,23 +367,27 @@ jobs:
- name: magick stuff - name: magick stuff
if: ${{ env.iconlink_url != 'false' }} if: ${{ env.iconlink_url != 'false' }}
continue-on-error: true uses: nick-fields/retry@v3
run: | with:
Invoke-WebRequest -Uri ${{ env.iconlink_url }}/get_png?filename=${{ env.iconlink_file }}"&"uuid=${{ env.iconlink_uuid }} -OutFile ./res/iconx.png timeout_minutes: 1
mv ./res/icon.ico ./res/icon.ico.bak max_attempts: 3
mv ./res/icon.png ./res/icon.png.bak shell: pwsh
mv ./res/tray-icon.ico ./res/tray-icon.ico.bak command: |
mv ./res/iconx.png ./res/icon.png Invoke-WebRequest -Uri ${{ env.iconlink_url }}/get_png?filename=${{ env.iconlink_file }}"&"uuid=${{ env.iconlink_uuid }} -OutFile ./res/iconx.png
mv ./res/32x32.png ./res/32x32.png.bak mv ./res/icon.ico ./res/icon.ico.bak
mv ./res/64x64.png ./res/64x64.png.bak mv ./res/icon.png ./res/icon.png.bak
mv ./res/128x128.png ./res/128x128.png.bak mv ./res/tray-icon.ico ./res/tray-icon.ico.bak
mv ./res/128x128@2x.png ./res/128x128@2x.png.bak mv ./res/iconx.png ./res/icon.png
magick ./res/icon.png -define icon:auto-resize=256,64,48,32,16 ./res/icon.ico mv ./res/32x32.png ./res/32x32.png.bak
cp ./res/icon.ico ./res/tray-icon.ico mv ./res/64x64.png ./res/64x64.png.bak
magick ./res/icon.png -resize 32x32 ./res/32x32.png mv ./res/128x128.png ./res/128x128.png.bak
magick ./res/icon.png -resize 64x64 ./res/64x64.png mv ./res/128x128@2x.png ./res/128x128@2x.png.bak
magick ./res/icon.png -resize 128x128 ./res/128x128.png magick ./res/icon.png -define icon:auto-resize=256,64,48,32,16 ./res/icon.ico
magick ./res/128x128.png -resize 200% ./res/128x128@2x.png cp ./res/icon.ico ./res/tray-icon.ico
magick ./res/icon.png -resize 32x32 ./res/32x32.png
magick ./res/icon.png -resize 64x64 ./res/64x64.png
magick ./res/icon.png -resize 128x128 ./res/128x128.png
magick ./res/128x128.png -resize 200% ./res/128x128@2x.png
- name: ui.rs icon - name: ui.rs icon
@@ -400,18 +408,28 @@ jobs:
sed -i -e 's|!key.is_empty()|false|' ./src/client.rs sed -i -e 's|!key.is_empty()|false|' ./src/client.rs
- name: add cycle monitors to toolbar - name: add cycle monitors to toolbar
continue-on-error: true
if: env.cycleMonitor == 'true' if: env.cycleMonitor == 'true'
run: | uses: nick-fields/retry@v3
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/cycle_monitor.diff -OutFile cycle_monitor.diff with:
git apply cycle_monitor.diff timeout_minutes: 1
max_attempts: 3
shell: pwsh
continue-on-error: true
command: |
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/cycle_monitor.diff -OutFile cycle_monitor.diff
git apply cycle_monitor.diff
- name: use X for offline display instead of orange circle - name: use X for offline display instead of orange circle
continue-on-error: true
if: env.xOffline == 'true' if: env.xOffline == 'true'
run: | uses: nick-fields/retry@v3
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/xoffline.diff -OutFile xoffline.diff with:
git apply xoffline.diff timeout_minutes: 1
max_attempts: 3
shell: pwsh
continue-on-error: true
command: |
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/xoffline.diff -OutFile xoffline.diff
git apply xoffline.diff
- name: removeNewVersionNotif - name: removeNewVersionNotif
continue-on-error: true continue-on-error: true
@@ -508,9 +526,14 @@ jobs:
- name: logo stuff - name: logo stuff
if: ${{ env.logolink_url != 'false' }} if: ${{ env.logolink_url != 'false' }}
continue-on-error: true uses: nick-fields/retry@v3
run: | with:
Invoke-WebRequest -Uri ${{ env.logolink_url }}/get_png?filename=${{ env.logolink_file }}"&"uuid=${{ env.logolink_uuid }} -OutFile ./rustdesk/data/flutter_assets/assets/logo.png timeout_minutes: 1
max_attempts: 3
shell: pwsh
continue-on-error: true
command: |
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