Skip to content

Commit

Permalink
chore: Update Sentry (#7647)
Browse files Browse the repository at this point in the history
* chore: Update Sentry

* clean up
  • Loading branch information
marc2332 authored Jan 16, 2024
1 parent d982311 commit 0130397
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 132 deletions.
6 changes: 0 additions & 6 deletions packages/desktop/.sentrycliignore

This file was deleted.

4 changes: 2 additions & 2 deletions packages/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"dependencies": {
"@amplitude/analytics-node": "^1.1.3",
"@sentry/electron": "^2.5.4",
"@sentry/electron": "^4.10.0",
"@types/webpack-dev-server": "^4.7.2",
"dotenv": "^16.0.3",
"electron-dl": "^3.5.0",
Expand All @@ -42,8 +42,8 @@
"url": "^0.11.0"
},
"devDependencies": {
"@sentry/webpack-plugin": "^2.8.0",
"@electron/notarize": "^2.1.0",
"@sentry/webpack-plugin": "^1.18.5",
"@tsconfig/svelte": "^4.0.1",
"@types/webpack": "^5.28.1",
"copy-webpack-plugin": "^11.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/sentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const { getAppName } = require('./product.js')

/* eslint-disable-next-line no-undef */
const Sentry = SENTRY_MAIN_PROCESS ? require('@sentry/electron/dist/main') : require('@sentry/electron/dist/renderer')
const Sentry = SENTRY_MAIN_PROCESS ? require('@sentry/electron/main') : require('@sentry/electron/renderer')

const debug = true
/* eslint-disable no-undef */
Expand Down
22 changes: 13 additions & 9 deletions packages/desktop/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import CopyPlugin from 'copy-webpack-plugin'
import { DefinePlugin } from 'webpack'
import path from 'path'
import sveltePreprocess from 'svelte-preprocess'
import SentryWebpackPlugin from '@sentry/webpack-plugin'
import { sentryWebpackPlugin } from '@sentry/webpack-plugin'
import { version } from './package.json'
import features from './features/features'
import { Configuration as WebpackConfiguration } from 'webpack'
Expand Down Expand Up @@ -189,16 +189,20 @@ const preloadPlugins = [
]

const sentryPlugins = [
new SentryWebpackPlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
include: '.',
release: `${getAppName(prod)}@${NETWORK}-${version}`,
ignoreFile: '.sentrycliignore',
sentryWebpackPlugin({
org: 'iota-foundation-h4',
project: 'firefly-desktop',
finalize: false,
deploy: {
env: STAGE,
authToken: process.env.SENTRY_AUTH_TOKEN,
release: {
name: `${getAppName(prod)}@${NETWORK}-${version}`,
finalize: false,
deploy: {
env: STAGE,
},
},
sourcemaps: {
assets: '.',
ignore: ['node_modules', 'scripts', 'postcss.config.js', 'webpack.config.js', 'electron-builder-config.js'],
},
}),
]
Expand Down
Loading

0 comments on commit 0130397

Please sign in to comment.