debug build

This commit is contained in:
Akis Kesoglou 2023-11-29 19:54:00 +02:00
parent d1384621ef
commit 8c52350588

View File

@ -60,7 +60,10 @@ function build(
binName: string, binName: string,
) { ) {
const commands: Array<[string, string[]]> = [ const commands: Array<[string, string[]]> = [
['tsc', ['--project', 'tsconfig.sidecar.json', '--outDir', sourcesDir]], [
'tsc',
['--project', 'tsconfig.sidecar.json', '--outDir', `'${sourcesDir}'`],
],
]; ];
buildForArchs.split(',').forEach((arch) => { buildForArchs.split(',').forEach((arch) => {
@ -74,7 +77,7 @@ function build(
commands.push([ commands.push([
'pkg', 'pkg',
[ [
`${sourcesDir}/util/api.js`, `'${path.join(sourcesDir, 'util', 'api.js')}'`,
'-c', '-c',
'pkg-sidecar.json', 'pkg-sidecar.json',
// `--no-bytecode` so that we can cross-compile for arm64 on x64 // `--no-bytecode` so that we can cross-compile for arm64 on x64
@ -86,9 +89,11 @@ function build(
'--target', '--target',
arch, arch,
'--output', '--output',
binPath, `'${binPath}'`,
], ],
]); ]);
commands.push(['ls', ['-alFR', `'${binDir}'`]]);
}); });
commands.forEach(([cmd, args]) => { commands.forEach(([cmd, args]) => {