https://github.com/cocktailpeanut/audio-webui.pinokio
https://github.com/cocktailpeanut/audio-webui.pinokio
pinokio
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cocktailpeanut/audio-webui.pinokio
- Owner: cocktailpeanut
- Created: 2023-07-13T14:35:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-14T20:52:07.000Z (about 2 years ago)
- Last Synced: 2025-04-08T18:22:35.896Z (6 months ago)
- Topics: pinokio
- Language: JavaScript
- Homepage:
- Size: 152 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Audio-webui.pinokio
One click installer for https://github.com/gitmylo/audio-webui
# Explanation
## install.json
The install script
```json
{
"run": [{
"method": "shell.run",
"params": {
"message": "git clone https://github.com/gitmylo/audio-webui"
}
}, {
"method": "shell.start",
"params": {
"path": "audio-webui"
}
}, {
"method": "shell.enter",
"params": {
"message": "{{os.platform() === 'win32' ? 'python main.py' : 'bash install.sh'}}",
"on": [{
"event": "/Press any key to exit/",
"return": true
}]
}}, {
"method": "notify",
"params": {
"html": "Install complete! Click to go to the start script.",
"href": "start.json"
}
}]
}
```1. The first step runs `shell.run` to clone the audio-webui repository https://github.com/gitmylo/audio-webui
2. The second one starts a persistent shell session with the default execution path of "audio-webui" (which is where the github repository is downloaded by default)
3. The third script runs the install script. In case of windows it runs `python main.py`, and for the rest it runs `bash install.sh`
4. The third `shell.enter` method also waits for a pattern in the terminal that matches `/Press any key to exit/` (regular expression), and when it does, it returns, moving on to the next step.
5. Finally it displays the notification popup with `notify`, which when clicked, sends you to the start script at [start.json](start.json)