| 36 | } |
| 37 | |
| 38 | function printHelp() { |
| 39 | console.log([ |
| 40 | 'Dark Reader build utility', |
| 41 | '', |
| 42 | 'Usage: build [build parameters]', |
| 43 | '', |
| 44 | 'To narrow down the list of build targets (for efficiency):', |
| 45 | ' --api Library build (published to NPM)', |
| 46 | ' --chrome MV2 for Chromium-based browsers (published to Chrome Web Store)', |
| 47 | ' --chrome-mv3 MV3 for Chromium-based browsers (will replace MV2 version eventually)', |
| 48 | ' --firefox MV2 for Firefox (published to Mozilla Add-on store)', |
| 49 | ' --thunderbird Thunderbird', |
| 50 | '', |
| 51 | 'To specify type of build:', |
| 52 | ' --release Release bundle for signing prior to publication', |
| 53 | ' --version=* Released bundle complete with digital signature (Firefox only)', |
| 54 | ' --debug Build for development', |
| 55 | ' --watch Incremental build for development', |
| 56 | '', |
| 57 | 'To log errors to disk (for debugging and bug reports):', |
| 58 | ' --log-info Log lots of data', |
| 59 | ' --log-warn Log only warnings', |
| 60 | '', |
| 61 | 'Build for testing (not to be used by humans):', |
| 62 | ' --test', |
| 63 | ].join('\n')); |
| 64 | } |
| 65 | |
| 66 | function getVersion(args) { |
| 67 | const prefix = '--version='; |