-
Notifications
You must be signed in to change notification settings - Fork 0
/
7zip.sls
57 lines (52 loc) · 2.07 KB
/
7zip.sls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# both 32-bit (x86) AND a 64-bit (AMD64) installer available
{% set versions = {'22':['01'],'19':['00']} %}
{% set source_path = 'https://d.7-zip.org/a/' %}
7zip:
{% for major, subversions in versions.items() %}
{% for minor in subversions %}
'{{major}}.{{minor}}.00.0':
{% if grains['cpuarch'] == 'AMD64' %}
full_name: '7-Zip {{major}}.{{minor}} (x64 edition)'
installer: '{{ source_path }}7z{{major}}{{minor}}-x64.msi'
uninstaller: '{{ source_path }}7z{{major}}{{minor}}-x64.msi'
arch: x64
{% else %}
full_name: '7-Zip {{major}}.{{minor}}'
installer: '{{ source_path }}7z{{major}}{{minor}}.msi'
uninstaller: '{{ source_path }}7z{{major}}{{minor}}.msi'
arch: x86
{% endif %}
install_flags: '/qn /norestart'
uninstall_flags: '/qn /norestart'
msiexec: True
locale: en_US
reboot: False
{% endfor %}
{% endfor %}
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Below are versions of 7-zip that have had the installer assets removed from
# the normal website. The binaries are still available on sourceforge.
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{% set source_path = 'https://downloads.sourceforge.net/project/sevenzip/7-Zip/' %}
{% set versions = { '18':['06', '05', '03', '01'], '16':['04', '03', '02', '00']} %}
{% for major, subversions in versions.items() %}
{% for minor in subversions %}
'{{major}}.{{minor}}.00.0':
{% if grains['cpuarch'] == 'AMD64' %}
full_name: '7-Zip {{major}}.{{minor}} (x64 edition)'
installer: '{{ source_path }}{{ major }}.{{ minor }}/7z{{major}}{{minor}}-x64.msi'
uninstaller: '{{ source_path }}7z{{major}}{{minor}}-x64.msi'
arch: x64
{% else %}
full_name: '7-Zip {{major}}.{{minor}}'
installer: '{{ source_path }}{{ major }}.{{ minor }}/7z{{major}}{{minor}}.msi'
uninstaller: '{{ source_path }}7z{{major}}{{minor}}.msi'
arch: x86
{% endif %}
install_flags: '/qn /norestart'
uninstall_flags: '/qn /norestart'
msiexec: True
locale: en_US
reboot: False
{% endfor %}
{% endfor %}