mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
29 lines
671 B
JavaScript
29 lines
671 B
JavaScript
|
/**
|
||
|
* But currently electron-builder doesn't support ESM configs
|
||
|
* @see https://github.com/develar/read-config-file/issues/10
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* @type {() => import('electron-builder').Configuration}
|
||
|
* @see https://www.electron.build/configuration/configuration
|
||
|
*/
|
||
|
module.exports = async function () {
|
||
|
const {getVersion} = await import('./version/getVersion.mjs');
|
||
|
|
||
|
return {
|
||
|
directories: {
|
||
|
output: 'dist',
|
||
|
buildResources: 'buildResources',
|
||
|
},
|
||
|
files: ['packages/**/dist/**'],
|
||
|
extraMetadata: {
|
||
|
version: getVersion(),
|
||
|
},
|
||
|
|
||
|
// Specify linux target just for disabling snap compilation
|
||
|
linux: {
|
||
|
target: 'deb',
|
||
|
},
|
||
|
};
|
||
|
};
|