Follow the steps below to create an app
Fork this repo
You will see this screen
Add a description (optional)
Create the fork
Open the app.json
file, it should look like this:
{
"details": {
"name": "My app",
"description": "Template app",
"snapshotting": {
"version": "1.0.0",
"name": "First release!",
"notes": "This is the first release of my app"
}
},
"supported": [
"Windows",
"Linux",
"Mac"
],
"buttons": [
{
"name": "Run",
"color": {
"text": "#ffffff",
"bg": "9cda4a"
},
"file": "run"
},
{
"name": "Open UI",
"color": {
"text": "fff",
"bg": "#1aa3e8"
},
"file": "ui"
}
]
}
Use the details
key to add info like the app name and description with snapshotting features to discribe the latest version and the updates
The supported
key is a supported OS (operating system) list, users can filter for different OS types
The buttons
key is how the user can execute scripts related to your program
Each button has its own settings:
{
"name": "Run",
"color": {
"text": "#ffffff",
"bg": "#05a000"
},
"file": "run"
}
This would be displayed as:
<style> .actions { display: flex; gap: 15px; } .actions button { border: none; color: white; font-size: 18px; padding: 10px; flex-grow: 1; cursor: pointer; border-radius: 5px; font-weight: bold; } </style>And would run:
scripts/run.py
Another example:
{
"name": "Open UI",
"color": {
"text": "white",
"bg": "#1aa3e8"
},
"file": "ui"
}
This would be displayed as:
And would run:
scripts/ui.py
Another example:
{
"name": "Send request",
"color": {
"text": "#333",
"bg": "#f7f700"
},
"file": "request"
}
This would be displayed as:
And would run:
scripts/request.py
Multiple buttons look like this:
A uninstall button will be added automatically at the end like this:
After adding buttons to trigger functions in the app, you need to make the scripts that are triggered, all button scripts are in scripts/[script key].py