Set up Electron Forge

This should allow us to package Trilium for multiple platforms,
including generating a Windows installer which is our current target.
This commit is contained in:
Elian Doran
2023-11-08 21:27:48 +02:00
parent b07628abda
commit 145a09edd1
4 changed files with 3593 additions and 3 deletions

30
forge.config.js Normal file
View File

@@ -0,0 +1,30 @@
module.exports = {
packagerConfig: {
asar: true,
},
rebuildConfig: {},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {},
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin'],
},
{
name: '@electron-forge/maker-deb',
config: {},
},
{
name: '@electron-forge/maker-rpm',
config: {},
},
],
plugins: [
{
name: '@electron-forge/plugin-auto-unpack-natives',
config: {},
},
],
};