@barnaby.build/barnaby 0.0.233 → 0.0.234
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/barnaby.cjs +19 -19
- package/dist/assets/{index-B2QCc9UL.js → index-92s3dAHv.js} +90 -90
- package/dist/debug-window.html +65 -65
- package/dist/index.html +1 -1
- package/dist/splash.html +46 -46
- package/dist-electron/main/index.js +6098 -10181
- package/package.json +1 -1
- package/public/debug-window.html +65 -65
- package/public/splash.html +46 -46
- package/scripts/bump-version.mjs +35 -35
- package/scripts/create-release-notes.mjs +47 -47
- package/scripts/generate-license-key.mjs +99 -99
- package/scripts/license-keypair-init.mjs +56 -56
- package/scripts/patch-nord-theme.mjs +14 -14
- package/scripts/rebuild-native.mjs +47 -47
- package/scripts/shortcut-win.mjs +57 -57
- package/scripts/sync-icon.mjs +20 -20
package/bin/barnaby.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
'use strict'
|
|
3
|
-
|
|
4
|
-
const { spawn } = require('child_process')
|
|
5
|
-
const path = require('path')
|
|
6
|
-
|
|
7
|
-
const pkgRoot = path.join(__dirname, '..')
|
|
8
|
-
const mainPath = path.join(pkgRoot, 'dist-electron', 'main', 'index.js')
|
|
9
|
-
|
|
10
|
-
const electron = require('electron')
|
|
11
|
-
// stdio: 'ignore' when no TTY (e.g. Start menu shortcut) prevents a console window.
|
|
12
|
-
// stdio: 'inherit' when run from terminal keeps plugin logs visible for debugging.
|
|
13
|
-
const child = spawn(electron, [mainPath], {
|
|
14
|
-
stdio: process.stdout?.isTTY ? 'inherit' : 'ignore',
|
|
15
|
-
cwd: pkgRoot,
|
|
16
|
-
env: { ...process.env }
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
child.on('exit', (code) => process.exit(code ?? 0))
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict'
|
|
3
|
+
|
|
4
|
+
const { spawn } = require('child_process')
|
|
5
|
+
const path = require('path')
|
|
6
|
+
|
|
7
|
+
const pkgRoot = path.join(__dirname, '..')
|
|
8
|
+
const mainPath = path.join(pkgRoot, 'dist-electron', 'main', 'index.js')
|
|
9
|
+
|
|
10
|
+
const electron = require('electron')
|
|
11
|
+
// stdio: 'ignore' when no TTY (e.g. Start menu shortcut) prevents a console window.
|
|
12
|
+
// stdio: 'inherit' when run from terminal keeps plugin logs visible for debugging.
|
|
13
|
+
const child = spawn(electron, [mainPath], {
|
|
14
|
+
stdio: process.stdout?.isTTY ? 'inherit' : 'ignore',
|
|
15
|
+
cwd: pkgRoot,
|
|
16
|
+
env: { ...process.env }
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
child.on('exit', (code) => process.exit(code ?? 0))
|