fix style

This commit is contained in:
Edwin Joassart 2023-12-08 14:33:41 +01:00
parent 43249d23ce
commit 81466d657a
2 changed files with 14 additions and 8 deletions

View File

@ -42,8 +42,8 @@ const config: ForgeConfig = {
darwinDarkModeSupport: true,
protocols: [{ name: 'etcher', schemes: ['etcher'] }],
extraResource: [
"lib/shared/catalina-sudo/sudo-askpass.osascript-zh.js",
"lib/shared/catalina-sudo/sudo-askpass.osascript-en.js"
'lib/shared/catalina-sudo/sudo-askpass.osascript-zh.js',
'lib/shared/catalina-sudo/sudo-askpass.osascript-en.js',
],
osxSign: {
optionsForFile: () => ({

View File

@ -73,10 +73,14 @@ function build(
path.resolve(binDir, binName)
: // otherwise build in arch-specific directory within binDir
path.resolve(binDir, arch, binName);
// FIXME: rebuilding mountutils shouldn't be necessary, but it is. It's comming from etcher-sdk a fix has been upstreamed but to use the latest etcher-sdk we need to upgrade axios at the same time)
commands.push(['npm', ['run', 'rebuild'], { cwd: 'node_modules/mountutils' }])
commands.push([
'npm',
['run', 'rebuild'],
{ cwd: 'node_modules/mountutils' },
]);
commands.push([
'pkg',
[
@ -96,14 +100,16 @@ function build(
],
]);
//commands.push(['ls', ['-alFR', `'${binDir}'`]]);
// commands.push(['ls', ['-alFR', `'${binDir}'`]]);
});
commands.forEach(([cmd, args, opt]) => {
debug('running command:', cmd, args.join(' '));
try {
execFileSync(cmd, args, { shell: true, stdio: 'inherit', ...opt });
} catch (error) {console.log(error)}
execFileSync(cmd, args, { shell: true, stdio: 'inherit', ...opt });
} catch (error) {
console.log(error);
}
});
}