Skip to content

Commit

Permalink
Merge pull request #2162 from twangboy/update_vlc
Browse files Browse the repository at this point in the history
Update vlc to work with renovate
  • Loading branch information
twangboy authored Aug 15, 2024
2 parents ad59d2f + c1d72bf commit 5045bf5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
"defaultRegistryUrlTemplate": "https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html",
"format": "html",
},
"vlc": {
"defaultRegistryUrlTemplate": "https://get.videolan.org/vlc/last/win64/",
"format": "html",
},
},
"customManagers": [
{
Expand All @@ -31,6 +35,10 @@
},
],
"packageRules": [
{
"matchDatasources": ["custom.vlc"],
"extractVersion": "vlc-(?<version>.+)-win64\\.exe$",
},
{
"matchDatasources": ["custom.putty"],
"extractVersion": "putty-64bit-(?<version>.+)-installer\\.msi$",
Expand Down
8 changes: 6 additions & 2 deletions vlc.sls
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# both 32-bit (x86) AND a 64-bit (AMD64) installer available
{% set PROGRAM_FILES = "%ProgramFiles%" %}
{% set versions = [
{%- load_yaml as versions %}
# renovate: datasource=custom.vlc depName=vlc
- '3.0.19'
{%- endload %}
{% set versions_old = [
'3.0.18',
'3.0.17.4',
'3.0.17.3',
Expand All @@ -21,7 +25,7 @@
] %}

vlc:
{% for version in versions %}
{% for version in versions + versions_old %}
'{{ version }}':
full_name: 'VLC media player'
{% if grains['cpuarch'] == 'AMD64' %}
Expand Down

0 comments on commit 5045bf5

Please sign in to comment.