Commit 4b816c8
committed
feat(build): add parallel builds and consolidate build system
Enhance build.mjs with comprehensive multi-target and platform build support, eliminating the need for separate build-platforms.mjs wrapper script.
New features:
- Build multiple targets: --targets cli,sea,darwin-arm64
- Build all platforms: --platforms (8 platform targets)
- Parallel builds: --parallel (for faster multi-target builds)
- Sequential builds: default for --targets and --platforms
Platform targets supported:
- alpine-arm64, alpine-x64
- darwin-arm64, darwin-x64
- linux-arm64, linux-x64
- win32-arm64, win32-x64
Examples:
- pnpm run build --platforms # All platforms sequentially
- pnpm run build --platforms --parallel # All platforms in parallel
- pnpm run build --targets cli,sea --parallel # Multiple targets in parallel
Update README.md with progressive build documentation from easiest to most advanced:
1. Quick start (default smart build)
2. Force rebuild
3. Single target builds
4. Multiple target builds
5. Platform binaries
6. Advanced direct package builds
Remove:
- build:platforms npm script (replaced by --platforms flag)
- scripts/build-platforms.mjs (functionality integrated into build.mjs)1 parent dfb84fa commit 4b816c8
File tree
4 files changed
+234
-179
lines changed- scripts
4 files changed
+234
-179
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
183 | 184 | | |
184 | | - | |
185 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
186 | 207 | | |
187 | 208 | | |
188 | | - | |
| 209 | + | |
189 | 210 | | |
190 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
191 | 214 | | |
192 | 215 | | |
193 | 216 | | |
| |||
203 | 226 | | |
204 | 227 | | |
205 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
206 | 235 | | |
207 | 236 | | |
208 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
| |||
This file was deleted.
0 commit comments