()
| 99 | } |
| 100 | |
| 101 | export function getBundleSizes() { |
| 102 | const outPath = Path.join(projectRoot, 'out') |
| 103 | return { |
| 104 | // eslint-disable-next-line no-sync |
| 105 | rendererBundleSize: Fs.statSync(Path.join(outPath, 'renderer.js')).size, |
| 106 | // eslint-disable-next-line no-sync |
| 107 | mainBundleSize: Fs.statSync(Path.join(outPath, 'main.js')).size, |
| 108 | } |
| 109 | } |
| 110 | export const isPublishable = () => |
| 111 | ['production', 'beta', 'test'].includes(getChannel()) |
| 112 |