mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-13 20:10:07 +02:00
Add initial files
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* TODO: Rewrite this config to ESM
|
||||
* 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(),
|
||||
},
|
||||
productName: 'Feishin',
|
||||
appId: 'org.jeffvli.feishin',
|
||||
artifactName: '${productName}-${version}-${os}-${arch}.${ext}',
|
||||
win: {
|
||||
target: ['nsis', 'zip'],
|
||||
},
|
||||
publish: {
|
||||
provider: 'github',
|
||||
owner: 'jeffvli',
|
||||
repo: 'feishin',
|
||||
},
|
||||
// Specify linux target just for disabling snap compilation
|
||||
linux: {
|
||||
target: 'deb',
|
||||
},
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user