@@ -10,8 +10,7 @@ dependencies steps.
1010
1111| Action | Description |
1212| ------ | ----------- |
13- | ` install_exe ` | Install an executable |
14- | ` install_msi ` | Install an MSI |
13+ | ` install_exe ` or ` install_msi ` | Install an executable |
1514| ` download_archive ` | Download an archive |
1615| ` archive_extract ` | Extract an archive |
1716| ` cab_extract ` | Extract a Windows Cabinet |
@@ -25,4 +24,123 @@ dependencies steps.
2524| ` register_font ` | Register a font in the Windows registry |
2625| ` replace_font ` | Replace a font replacement in the Windows registry |
2726
27+ ## Common definitions
28+ ### Downloads and local files
29+ All actions that support a ` url ` key will download the file from that URL. This
30+ can also be used to define a local file (from the Bottles' temp folder). The
31+ correct syntax to use the local file is:
32+
33+ ``` yaml
34+ ..
35+ url : temp/file...
36+ ..
37+ ```
38+
39+ the ` temp/ ` part (placeholder) will be automatically replaced by the full path
40+ to the Bottles' temp folder.
41+
42+ ## ` install_exe ` or ` install_msi `
43+ This action is used to install an executable.
44+
45+ ### Parameters
46+ | Key | Description |
47+ | --- | ----------- |
48+ | ` file_name ` | The name of the file to be installed |
49+ | ` url ` | The URL or path of the file to be downloaded |
50+ | ` rename ` | The new name of the file if it must be renamed |
51+ | ` file_checksum ` | The checksum of the file (MD5) |
52+ | ` arguments ` | The arguments to be passed to the executable |
53+ | ` environment ` | The environment variables to be injected |
54+
55+ ### Example
56+ ``` yaml
57+ - action : install_exe
58+ environment :
59+ WINEDLLOVERRIDES : fusion=b
60+ file_name : ndp48-x86-x64-allos-enu.exe
61+ url : https://download.visualstudio.microsoft.com/download/pr/7afca223-55d2-470a-8edc-6a1739ae3252/abd170b4b0ec15ad0222a809b761a036/ndp48-x86-x64-allos-enu.exe
62+ rename : dotnet48.exe
63+ file_checksum : 4e7a8586d06ce1f8cebac0d4bc379e16
64+ arguments : /sfxlang:1027 /q /norestart
65+ ` ` `
66+
67+ ## ` download_archive`
68+ This action is used to download an archive, can also be used to download
69+ any other kind of file. It only downloads the file, it does not extract, install
70+ or anything else.
71+
72+ # ## Parameters
73+ | Key | Description |
74+ | --- | ----------- |
75+ | `file_name` | The name of the file to be downloaded |
76+ | `url` | The URL or path of the file to be downloaded |
77+ | `rename` | The new name of the file if it must be renamed |
78+ | `file_checksum` | The checksum of the file (MD5) |
79+
80+ # ## Example
81+ ` ` ` yaml
82+ - action: download_archive
83+ file_name: msxml6-KB973686-enu-amd64.exe
84+ url: https://web.archive.org/web/20190122095451/https://download.microsoft.com/download/1/5/8/158F681A-E595-472B-B15E-62B649B1B6FF/msxml6-KB973686-enu-amd64.exe
85+ file_checksum: 13a292beb9ebe46ac97b8a4352fe2cd5
86+ ` ` `
87+
88+ # # `archive_extract`
89+ This action is used to download and extract an archive. The archive will be
90+ extracted to a new directory named as the `file_name` or `rename` in the
91+ Bottles' temp directory.
92+
93+ # ## Parameters
94+ | Key | Description |
95+ | --- | ----------- |
96+ | `file_name` | The name of the file to be downloaded |
97+ | `url` | The URL or path of the file to be downloaded |
98+ | `rename` | The new name of the file if it must be renamed |
99+ | `file_checksum` | The checksum of the file (MD5) |
100+
101+ # ## Example
102+ ` ` ` yaml
103+ - action: archive_extract
104+ file_name: faudio-20.07.tar.xz
105+ rename: faudio_20_07.xz
106+ url: https://github.com/Kron4ek/FAudio-Builds/releases/download/20.07/faudio-20.07.tar.xz
107+ file_checksum: 7385a4d276f940e025488e74a967789b
108+ ` ` `
109+
110+ # # `cab_extract`
111+ This action is used to extract a Windows Cabinet, can also download it
112+ before extracting.
113+
114+ # ## Parameters
115+ | Key | Description |
116+ | --- | ----------- |
117+ | `file_name` | The name of the file to be downloaded |
118+ | `url` | The URL or path of the file to be downloaded |
119+ | `rename` | The new name of the file if it must be renamed |
120+ | `file_checksum` | The checksum of the file (MD5) |
121+ | `dest` | The destination folder where the files will be extracted, Bottles will automatically create it if does not exist |
122+
123+ # ### Supported `dest` values
124+ The destination should start with one of the following placeholders :
125+
126+ | Placeholder | Description |
127+ | ----------- | ----------- |
128+ | temp/ | Will be automatically replaced with the full path to the Bottles' temp directory |
129+
130+ If the destination does not start with one of the supported placeholders, it
131+ will fail with an error. It is not possible to extract a whole Windows Cabinet
132+ to a bottle folder, **hardscripting this will result in a rejection by the team.**
133+
134+ # ## Example
135+ ` ` ` yaml
136+ - action: cab_extract
137+ file_name: directx_Jun2010_redist.exe
138+ url: https://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe
139+ file_checksum: 822e4c516600e81dc7fb16d9a77ec6d4
140+ dest: temp/directx_Jun2010_redist/
141+ ` ` `
142+
143+
144+
145+
28146> This page is not complete.
0 commit comments