Updated downloadRelease (markdown)

Pk11
2020-11-01 15:48:21 -06:00
parent 6fea3c54bc
commit f8a744a584
+5 -4
@@ -1,4 +1,4 @@
The Function `downloadRelease` contains 4 Parameters, but it can have 5, if you like to include `prereleases` as well. The `downloadRelease` function has 4 parameters, and 1 optional one. It downloads a file from a GitHub repository's releases.
`repo` -> The Repository from which to download. `repo` -> The Repository from which to download.
@@ -6,12 +6,12 @@ The Function `downloadRelease` contains 4 Parameters, but it can have 5, if you
`output` -> Where should the File be placed? `output` -> Where should the File be placed?
*optional* `includePrereleases` -> `true / false`! *optional* `includePrereleases` -> `true / false`, defaults to false.
`message` -> The Message which should be displayed while downloading. `message` -> The Message which should be displayed while downloading.
You can find an example here: Example:
``` ```json
{ {
"type": "downloadRelease", "type": "downloadRelease",
"repo": "Universal-Team/Universal-Updater", "repo": "Universal-Team/Universal-Updater",
@@ -20,3 +20,4 @@ You can find an example here:
"includePrereleases": false, "includePrereleases": false,
"message": "Downloading Universal-Updater.cia" "message": "Downloading Universal-Updater.cia"
} }
```