-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.js
More file actions
91 lines (91 loc) · 2.31 KB
/
install.js
File metadata and controls
91 lines (91 loc) · 2.31 KB
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
module.exports = {
run: [
// Clone the UI repository
{
when: "{{!exists('app')}}",
method: "shell.run",
params: {
message: "git clone https://github.com/audiohacking/acestep-cpp-ui app"
}
},
// Install cmake via conda for macOS build
{
when: "{{platform === 'darwin'}}",
method: "shell.run",
params: {
message: "conda install -y -c conda-forge cmake"
}
},
// Build from source using build.sh (macOS - handles clone + GPU auto-detection + build)
{
when: "{{platform === 'darwin'}}",
method: "shell.run",
params: {
path: "app",
message: "bash build.sh"
}
},
// Install cmake and Vulkan headers via conda for Linux x64
{
when: "{{platform === 'linux' && arch === 'x64'}}",
method: "shell.run",
params: {
message: "conda install -y -c conda-forge cmake vulkan-headers"
}
},
// Build from source using build.sh (Linux - handles clone + GPU auto-detection + build)
{
when: "{{platform === 'linux' && arch === 'x64'}}",
method: "shell.run",
params: {
path: "app",
message: "bash build.sh"
}
},
// Windows: build from source (no pre-built binary available yet)
{
when: "{{platform === 'win32' && !exists('app/bin')}}",
method: "shell.run",
params: {
path: "app",
message: "setup.bat"
}
},
// Install Node.js dependencies for the React/Vite frontend
{
method: "shell.run",
params: {
path: "app",
message: "npm install"
}
},
// Install and rebuild server dependencies
{
method: "shell.run",
params: {
path: "app/server",
message: [
"npm install",
"npm rebuild better-sqlite3"
]
}
},
// Create .env from template
{
when: "{{!exists('app/.env')}}",
method: "shell.run",
params: {
path: "app",
message: "{{platform === 'win32' ? 'copy .env.example .env' : 'cp .env.example .env'}}"
}
},
// Download GGUF models (~8 GB, default Q8_0 quantization)
{
method: "shell.run",
params: {
path: "app",
message: "{{platform === 'win32' ? 'models.bat' : 'bash models.sh'}}"
}
}
]
}