Skip to content

Commit

Permalink
fix(auto-update): add back 'latest*.yml' files to artifacts (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsagetlethias committed May 17, 2022
1 parent 78810e4 commit 205fb42
Show file tree
Hide file tree
Showing 7 changed files with 492 additions and 629 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -5,6 +5,8 @@ tmpws/
coverage/
chromedriverlog.txt
bin/
*.p12
.secrets

##
## Should be global, but it's an open source project
Expand Down
1 change: 1 addition & 0 deletions .releaserc.js
Expand Up @@ -58,6 +58,7 @@ if (releaseMode === "normal") {
`bin/**/${binName}*.@(exe|dmg|AppImage|msi|zip)`,
`bin/**/${binName}*.sha512`,
`bin/**/${binName}*.blockmap`,
`bin/**/latest*.yml`,
],
releasedLabels: false,
successComment: false,
Expand Down
2 changes: 2 additions & 0 deletions global.d.ts
Expand Up @@ -18,6 +18,8 @@ declare module "*.png" {
export default content;
}

declare module "source-map-support";

declare namespace NodeJS {
interface ProcessEnv {
SENTRY_DSN: string;
Expand Down
11 changes: 6 additions & 5 deletions package.json
Expand Up @@ -117,7 +117,9 @@
"artifactName": "${name}-${os}.${ext}"
},
"nsis": {
"artifactName": "${name}-${os}-setup.${ext}"
"artifactName": "${name}-${os}-setup.${ext}",
"oneClick": false,
"allowToChangeInstallationDirectory": true
},
"linux": {
"category": "Office",
Expand Down Expand Up @@ -155,8 +157,8 @@
"axios": "^0.26.1",
"cross-env": "^7.0.3",
"dotenv": "^16.0.0",
"electron": "^18.1.0",
"electron-builder": "^22.14.5",
"electron": "^18.2.3",
"electron-builder": "^23.0.3",
"electron-notarize": "^1.1.1",
"electron-webpack": "^2.8.2",
"electron-webpack-ts": "^4.0.1",
Expand All @@ -165,7 +167,6 @@
"eslint-plugin-typescript-sort-keys": "^2.1.0",
"eslint-plugin-unused-imports": "^1",
"glob": "^8.0.1",
"husky": "^7.0.4",
"identity-obj-proxy": "^3.0.0",
"jest": "^27.4.7",
"jest-playwright-preset": "^1.7.0",
Expand Down Expand Up @@ -194,7 +195,7 @@
"@socialgouv/archimail-pst-extractor": "^0.0.2",
"d3": "^7.3.0",
"electron-store": "^8.0.1",
"electron-updater": "^4.6.1",
"electron-updater": "^5.0.1",
"electron-util": "^0.17.2",
"i18next": "^21.6.6",
"jotai": "^1.5.3",
Expand Down
4 changes: 4 additions & 0 deletions src/main/preload.ts
@@ -1,5 +1,9 @@
import "@sentry/electron/preload";

import sourceMapSupport from "source-map-support";

sourceMapSupport.install();

module.hot?.accept();

console.info("[Preload] Inited");
2 changes: 1 addition & 1 deletion webpack.main.config.js
Expand Up @@ -24,7 +24,7 @@ module.exports =
if (config.mode === "production") {
for (const plugin of config.plugins) {
if (plugin instanceof webpack.BannerPlugin) {
plugin.options.exclude = /\.worker\.js$/i;
plugin.options.exclude = /(preload|\.worker)\.js$/i;
}
}
}
Expand Down
1,099 changes: 476 additions & 623 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 205fb42

Please sign in to comment.