Various build and developer fixes, some optimizations (#2975)

* Various build and developer fixes, some optimizations

* Fix the linux build

* Fix afterpack

* Fix notarization variables

* Revert macos-notification-state changes from this PR

* Only build the tar for PRs

* Also ci

* Fix copy script

* Fix copy script more

* Remove @babel/cli

* Fix windows build

* Fix MAS build
This commit is contained in:
Devin Binnie
2024-03-12 10:04:11 -04:00
committed by GitHub
parent e5efa727fe
commit e56b5cdd6a
36 changed files with 921 additions and 3761 deletions

View File

@@ -30,16 +30,24 @@ if (isTest) {
}
module.exports = {
// Some plugins cause errors on the app, so use few plugins.
// https://webpack.js.org/concepts/mode/#mode-production
mode: isProduction ? 'none' : 'development',
mode: isProduction ? 'production' : 'development',
bail: true,
plugins: [
new webpack.DefinePlugin(codeDefinitions),
],
module: {
rules: [{
test: /\.(js|jsx|ts|tsx)?$/,
exclude: /node_modules/,
loader: 'babel-loader',
}],
},
devtool: isProduction ? undefined : 'inline-source-map',
resolve: {
modules: [
'node_modules',
'./src',
],
alias: {
renderer: path.resolve(__dirname, 'src/renderer'),
main: path.resolve(__dirname, './src/main'),