| 58 | } |
| 59 | |
| 60 | function printHelpAndExit() { |
| 61 | console.log(` |
| 62 | BitFun Installer build script |
| 63 | |
| 64 | Usage: |
| 65 | node scripts/build-installer.cjs [options] |
| 66 | |
| 67 | Options: |
| 68 | --mode <fast|release> Build mode (default: release) |
| 69 | --fast Alias for --mode fast |
| 70 | --skip-app-build Skip building main BitFun app |
| 71 | --dev Run installer with tauri dev instead of tauri build |
| 72 | and allow placeholder payload fallback |
| 73 | --help, -h Show this help |
| 74 | `); |
| 75 | process.exit(0); |
| 76 | } |
| 77 | |
| 78 | function getMainAppBuildCommand(mode) { |
| 79 | if (mode === "fast") { |