From 8c523505883a2a9a3f0cb41937ec1378d05b156f Mon Sep 17 00:00:00 2001 From: Akis Kesoglou Date: Wed, 29 Nov 2023 19:54:00 +0200 Subject: [PATCH] debug build --- forge.sidecar.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/forge.sidecar.ts b/forge.sidecar.ts index 1fe72290..65c27104 100644 --- a/forge.sidecar.ts +++ b/forge.sidecar.ts @@ -60,7 +60,10 @@ function build( binName: string, ) { const commands: Array<[string, string[]]> = [ - ['tsc', ['--project', 'tsconfig.sidecar.json', '--outDir', sourcesDir]], + [ + 'tsc', + ['--project', 'tsconfig.sidecar.json', '--outDir', `'${sourcesDir}'`], + ], ]; buildForArchs.split(',').forEach((arch) => { @@ -74,7 +77,7 @@ function build( commands.push([ 'pkg', [ - `${sourcesDir}/util/api.js`, + `'${path.join(sourcesDir, 'util', 'api.js')}'`, '-c', 'pkg-sidecar.json', // `--no-bytecode` so that we can cross-compile for arm64 on x64 @@ -86,9 +89,11 @@ function build( '--target', arch, '--output', - binPath, + `'${binPath}'`, ], ]); + + commands.push(['ls', ['-alFR', `'${binDir}'`]]); }); commands.forEach(([cmd, args]) => {