This repository has been archived by the owner on Oct 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(electron): use new electron-forge and electron-package
- Loading branch information
Showing
11 changed files
with
265 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
patches/electron-forge+5.0.0.patch → patches/electron-forge+5.2.3.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/node_modules/electron-packager/common.js b/node_modules/electron-packager/common.js | ||
index d389ffa..f0277e2 100644 | ||
--- a/node_modules/electron-packager/common.js | ||
+++ b/node_modules/electron-packager/common.js | ||
@@ -72,7 +72,8 @@ function sanitizeAppName (name) { | ||
} | ||
|
||
function generateFinalBasename (opts) { | ||
- return `${sanitizeAppName(opts.name)}-${opts.platform}-${opts.arch}` | ||
+ let targetName = sanitizeAppName(opts.name).replace(/\s+/g, '-').toLowerCase() | ||
+ return `${targetName}-${opts.platform}-${opts.arch}` | ||
} | ||
|
||
function generateFinalPath (opts) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff --git a/node_modules/ember-electron/lib/tasks/assemble.js b/node_modules/ember-electron/lib/tasks/assemble.js | ||
index 12241f1..4fc1d4c 100644 | ||
--- a/node_modules/ember-electron/lib/tasks/assemble.js | ||
+++ b/node_modules/ember-electron/lib/tasks/assemble.js | ||
@@ -65,7 +65,7 @@ class AssembleTask extends Task { | ||
|
||
pruneCommand() { | ||
if (shouldUseYarn(this.project.root)) { | ||
- return 'yarn install --production --no-bin-links'; | ||
+ return 'yarn install --production --no-bin-links --frozen-lockfile'; | ||
} else { | ||
return 'npm install --production --no-bin-links'; | ||
} | ||
diff --git a/node_modules/ember-electron/lib/utils/assemble-tree.js b/node_modules/ember-electron/lib/utils/assemble-tree.js | ||
index 086b5cb..78f4188 100644 | ||
--- a/node_modules/ember-electron/lib/utils/assemble-tree.js | ||
+++ b/node_modules/ember-electron/lib/utils/assemble-tree.js | ||
@@ -84,6 +84,7 @@ this addon once you removed the {{welcome-page}} template tag. | ||
include: [ | ||
'npm-shrinkwrap.json', | ||
'yarn.lock', | ||
+ '.yarnclean', | ||
], | ||
}), | ||
|
Oops, something went wrong.