Update electron to 17.3.0

This commit is contained in:
Fedor Indutny 2022-03-29 10:06:42 -07:00 committed by GitHub
parent 8b36e37d18
commit f7c3a44056
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 87 deletions

View file

@ -83,43 +83,3 @@ esbuild.build({
entryPoints: [path.join(ROOT_DIR, 'preload.js')],
outfile: path.join(ROOT_DIR, 'preload.bundle.js'),
});
// HEIC worker
esbuild.build({
...bundleDefaults,
entryPoints: [path.join(ROOT_DIR, 'ts', 'workers', 'heicConverterWorker.ts')],
outfile: path.join(ROOT_DIR, 'ts', 'workers', 'heicConverter.bundle.js'),
});
// SQL worker
const libDir = path.join('..', '..', 'node_modules', 'better-sqlite3');
const bindingFile = path.join(
libDir,
'build',
'Release',
'better_sqlite3.node'
);
esbuild.build({
...nodeDefaults,
bundle: true,
plugins: [
{
name: 'bindings',
setup(build) {
build.onResolve({ filter: /^bindings$/ }, () => ({
path: path.join(ROOT_DIR, 'ts', 'sql', 'mainWorkerBindings.ts'),
}));
build.onResolve({ filter: /^better_sqlite3\.node$/ }, () => ({
path: bindingFile,
external: true,
}));
},
},
],
entryPoints: [path.join(ROOT_DIR, 'ts', 'sql', 'mainWorker.ts')],
outfile: path.join(ROOT_DIR, 'ts', 'sql', 'mainWorker.bundle.js'),
});