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, darwinDarkModeSupport: true,
protocols: [{ name: 'etcher', schemes: ['etcher'] }], protocols: [{ name: 'etcher', schemes: ['etcher'] }],
extraResource: [ extraResource: [
"lib/shared/catalina-sudo/sudo-askpass.osascript-zh.js", '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-en.js',
], ],
osxSign: { osxSign: {
optionsForFile: () => ({ optionsForFile: () => ({

View File

@ -75,7 +75,11 @@ function build(
path.resolve(binDir, arch, binName); 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) // 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([ commands.push([
'pkg', 'pkg',
@ -103,7 +107,9 @@ function build(
debug('running command:', cmd, args.join(' ')); debug('running command:', cmd, args.join(' '));
try { try {
execFileSync(cmd, args, { shell: true, stdio: 'inherit', ...opt }); execFileSync(cmd, args, { shell: true, stdio: 'inherit', ...opt });
} catch (error) {console.log(error)} } catch (error) {
console.log(error);
}
}); });
} }