-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructured directories. Improved build pipeline. Updated readme. Ad…
…ded app icons (shoutout @trisweb!)
- Loading branch information
1 parent
6e282e8
commit 6793bff
Showing
52 changed files
with
2,187 additions
and
1,379 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
516 changes: 258 additions & 258 deletions
516
.yarn/releases/yarn-3.4.1.cjs → .yarn/releases/yarn-3.5.0.cjs
Large diffs are not rendered by default.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
const { api } = require('@electron-forge/core'); | ||
const { initializeProxy } = require('@electron/get'); | ||
const { officialPlatformArchCombos } = require('electron-packager/src/targets'); | ||
|
||
const dir = process.cwd(); | ||
const platforms = (process.env.PLATFORM || '').split(',').filter(Boolean); | ||
const arch = (process.env.ARCH || '').split(',').filter(Boolean); | ||
|
||
const makeOpts = { | ||
dir, | ||
interactive: true, | ||
skipPackage: false, | ||
}; | ||
|
||
// special handling for when we want to build for all architectures | ||
if (arch.length === 1 && arch[0].toLowerCase() === 'all') { | ||
makeOpts.arch = 'all'; | ||
} | ||
|
||
initializeProxy(); | ||
|
||
platforms.forEach(async (p) => { | ||
makeOpts.platform = p; | ||
if (makeOpts.arch !== 'all') { | ||
makeOpts.arch = arch.filter((v) => officialPlatformArchCombos[p].includes(v)).join(','); | ||
} | ||
|
||
if (makeOpts.arch.length === 0) { | ||
throw new Error(`No supported architectures specified for ${p}. Choices are ${officialPlatformArchCombos[p].join(', ')}`); | ||
} | ||
|
||
await api.make(makeOpts); | ||
}); |
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,11 @@ | ||
/* eslint-disable no-param-reassign */ | ||
module.exports = { | ||
webpack: { | ||
configure: (webpackConfig, { paths }) => { | ||
webpackConfig.entry = `${__dirname}/src/renderer/index.js`; | ||
paths.appIndexJs = `${__dirname}/src/renderer/index.js`; | ||
|
||
return webpackConfig; | ||
}, | ||
}, | ||
}; |
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
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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
Oops, something went wrong.