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