mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-07 08:49:08 +00:00
Updated downloadRelease (markdown)
+7
-6
@@ -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,17 +6,18 @@ 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",
|
||||||
"file": "Universal-Updater.cia",
|
"file": "Universal-Updater.cia",
|
||||||
"output": "sdmc:/Universal-Updater.cia",
|
"output": "sdmc:/Universal-Updater.cia",
|
||||||
"includePrereleases": false,
|
"includePrereleases": false,
|
||||||
"message": "Downloading Universal-Updater.cia"
|
"message": "Downloading Universal-Updater.cia"
|
||||||
}
|
}
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user