-
Notifications
You must be signed in to change notification settings - Fork 32
Scripts
Pk11 edited this page Sep 25, 2020
·
7 revisions
After the info section, you can have as many individual scripts in your file as you want. These need a name and all of the functions you want to run in the script. Functions are a type
which tells Universal-Updater what to do, and all of the variables for that type. For info on functions see the pages under this in the sidebar.
Here is an example of a script file that will download a file and then delete it
"Download & Delete": [
{
"type": "downloadFile",
"file": "https://github.com/Universal-Team/extras/raw/master/builds/LeafEdit/LeafEdit.3dsx",
"output": "sdmc:/LeafEdit.3dsx",
"message": "Downloading LeafEdit.3dsx"
},
{
"type": "deleteFile",
"file": "sdmc:/LeafEdit.3dsx",
"message": "Deleting LeafEdit.3dsx"
}
]
Note that scripts are json arrays and thus are a name followed by square brackets with the functions inside surrounded by curly brackets
Need help? Join our Discord server or create a discussion.