Skip to content

Commit

Permalink
another commit
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao committed Jun 15, 2023
1 parent 9baf875 commit bfd93f0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
9 changes: 8 additions & 1 deletion packages/api/core/src/api/init-scripts/init-npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ export function siblingDep(name: string): string {
}

export const deps = ['electron-squirrel-startup'];
export const devDeps = [siblingDep('cli'), siblingDep('maker-squirrel'), siblingDep('maker-zip'), siblingDep('maker-deb'), siblingDep('maker-rpm')];
export const devDeps = [
siblingDep('cli'),
siblingDep('maker-squirrel'),
siblingDep('maker-zip'),
siblingDep('maker-deb'),
siblingDep('maker-rpm'),
siblingDep('plugin-auto-unpack-natives'),
];
export const exactDevDeps = ['electron'];

export const initNPM = async <T>(dir: string, task: ForgeListrTask<T>): Promise<void> => {
Expand Down
9 changes: 8 additions & 1 deletion packages/template/base/tmpl/forge.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module.exports = {
packagerConfig: {},
packagerConfig: {
asar: true,
},
rebuildConfig: {},
makers: [
{
Expand All @@ -19,4 +21,9 @@ module.exports = {
config: {},
},
],
plugins: [
{
name: '@electron-forge/plugin-auto-unpack-natives',
},
],
};
1 change: 0 additions & 1 deletion packages/template/webpack-typescript/tmpl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"devDependencies": {
"@electron-forge/plugin-auto-unpack-natives": "ELECTRON_FORGE/VERSION",
"@electron-forge/plugin-webpack": "ELECTRON_FORGE/VERSION",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
Expand Down

0 comments on commit bfd93f0

Please sign in to comment.