-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.js
113 lines (112 loc) · 3.36 KB
/
install.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
module.exports = async (kernel) => {
return {
run: [
// Edit this step to customize the git repository to use
{
method: "shell.run",
params: {
message: [
//"git clone -b torch-backbone https://github.com/cocktailpeanut/Zonos app",
"git clone https://github.com/cocktailpeanut/Zonos app",
"pnpm install",
"pnpm run clear"
]
}
},
{
method: "script.start",
params: {
uri: "torch.js",
params: {
venv: "env", // Edit this to customize the venv folder path
path: "app", // Edit this to customize the path to start the shell from
// xformers: true // uncomment this line if your project requires xformers
}
}
},
// Edit this step with your custom install commands
{
method: "shell.run",
params: {
venv: "env", // Edit this to customize the venv folder path
path: "app", // Edit this to customize the path to start the shell from
message: [
"uv pip install -e .",
]
}
},
{
when: "{{platform === 'win32'}}",
method: "shell.run",
params: {
venv: "env", // Edit this to customize the venv folder path
path: "app", // Edit this to customize the path to start the shell from
message: [
"uv pip install https://github.com/woct0rdho/triton-windows/releases/download/v3.1.0-windows.post8/triton-3.1.0-cp310-cp310-win_amd64.whl",
]
}
},
{
when: "{{platform === 'linux'}}",
method: "shell.run",
params: {
venv: "env", // Edit this to customize the venv folder path
path: "app", // Edit this to customize the path to start the shell from
message: [
"uv pip install -e .[compile]"
]
}
},
// {
// method: "fs.link",
// params: {
// venv: "app/env"
// }
// },
// espeak-ng installer script lifted from AllTalk Launcher from 6Morpheus6
// https://github.com/pinokiofactory/AllTalk-TTS/blob/main/install.js
{
when: "{{which('brew')}}",
method: "shell.run",
params: {
message: "brew install espeak-ng"
},
next: 'end'
},
{
when: "{{which('apt')}}",
method: "shell.run",
params: {
sudo: true,
message: "apt install libaio-dev espeak-ng"
},
next: 'end'
},
{
when: "{{which('yum')}}",
method: "shell.run",
params: {
sudo: true,
message: "yum install libaio-devel espeak-ng"
},
next: 'end'
},
{
when: "{{which('winget')}}",
method: "shell.run",
params: {
sudo: true,
message: "winget install --id=eSpeak-NG.eSpeak-NG -e --silent --accept-source-agreements --accept-package-agreements"
}
},
{
id: 'end',
method: 'input',
params: {
title: "Restart Pinokio!!",
description: "Install Complete. Please restart Pinokio and try running the app"
}
},
]
}
}