Skip to content

Commit

Permalink
add winrar example
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Aug 30, 2023
1 parent 0247e6d commit 208a306
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions WinRAR/WinRAR-Win64.download.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
Description: Downloads the latest WinRAR For Windows x64
Identifier: com.github.jgstew.download.WinRAR-Win64
Input:
NAME: "WinRAR"
FileType: exe
DisplayName: "WinRAR"
MinimumVersion: "2.3"
Process:
- Processor: URLTextSearcher
Arguments:
url: "https://www.win-rar.com/download.html?&L=0"
# example: https://www.win-rar.com/fileadmin/winrar-versions/winrar/winrar-x64-611.exe
re_pattern: '(?P<url>https://www.win-rar.com/fileadmin/winrar-versions/winrar/winrar-x64-\d+?.%FileType%)'

- Processor: com.github.jgstew.SharedProcessors/URLDownloaderPython
Arguments:
# url: https://www.win-rar.com/fileadmin/winrar-versions/winrar/winrar-x64-%major_version%%FileType%
filename: winrar-x64.%FileType%
download_version: ""
COMPUTE_HASHES: True

- Processor: EndOfCheckPhase

# validate file signature and get signature date as SourceReleaseDate:
- Processor: com.github.jgstew.SharedProcessors/FileExeVerifySignature

# get FileVersion from EXE and save to `version` variable
- Processor: com.github.jgstew.SharedProcessors/FileExeGetInfoPE

0 comments on commit 208a306

Please sign in to comment.