mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-28 21:56:32 +00:00
debug build
This commit is contained in:
parent
d1384621ef
commit
8c52350588
@ -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]) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user