mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-28 23:39:53 +00:00
better sentry upload
This commit is contained in:
parent
cdc3623986
commit
5e06b2248b
3
.github/workflows/linux.yml
vendored
3
.github/workflows/linux.yml
vendored
@ -41,8 +41,7 @@ jobs:
|
|||||||
- name: Upload symbols
|
- name: Upload symbols
|
||||||
run: |
|
run: |
|
||||||
sudo npm install -g @sentry/cli --unsafe-perm
|
sudo npm install -g @sentry/cli --unsafe-perm
|
||||||
sentry-cli releases new ${{ github.ref }} || true
|
./scripts/sentry-upload.js
|
||||||
sentry-cli upload-dif app/node_modules
|
|
||||||
env:
|
env:
|
||||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||||
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
||||||
|
7
.github/workflows/macos.yml
vendored
7
.github/workflows/macos.yml
vendored
@ -76,12 +76,7 @@ jobs:
|
|||||||
- name: Upload symbols
|
- name: Upload symbols
|
||||||
run: |
|
run: |
|
||||||
sudo npm install -g @sentry/cli --unsafe-perm
|
sudo npm install -g @sentry/cli --unsafe-perm
|
||||||
dsymutil app/node_modules/@serialport/bindings/build/Release/bindings.node
|
./scripts/sentry-upload.js
|
||||||
dsymutil app/node_modules/@terminus-term/node-pty/build/Release/pty.node
|
|
||||||
dsymutil app/node_modules/fontmanager-redux/build/Release/fontmanager.node
|
|
||||||
dsymutil app/node_modules/macos-native-processlist/build/Release/native.node
|
|
||||||
sentry-cli releases new ${{ github.ref }} || true
|
|
||||||
sentry-cli upload-dif app/node_modules
|
|
||||||
env:
|
env:
|
||||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||||
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
||||||
|
5
.github/workflows/windows.yml
vendored
5
.github/workflows/windows.yml
vendored
@ -37,10 +37,7 @@ jobs:
|
|||||||
- name: Upload symbols
|
- name: Upload symbols
|
||||||
run: |
|
run: |
|
||||||
npm install @sentry/cli
|
npm install @sentry/cli
|
||||||
node_modules/.bin/sentry-cli.cmd upload-dif app/node_modules
|
node scripts/sentry-upload.js
|
||||||
node_modules/.bin/sentry-cli.cmd releases new ${{ github.ref }} || true
|
|
||||||
node_modules/.bin/sentry-cli.cmd releases set-commits --auto ${{ github.ref }}
|
|
||||||
node_modules/.bin/sentry-cli.cmd releases files ${{ github.ref }} upload-sourcemaps app/dist terminus-core/dist terminus-terminal/dist terminus-serial/dist terminus-ssh/dist terminus-settings/dist terminus-plugin-manager/dist
|
|
||||||
env:
|
env:
|
||||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||||
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
||||||
|
24
scripts/sentry-upload.js
Executable file
24
scripts/sentry-upload.js
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
const sh = require('shelljs')
|
||||||
|
const vars = require('./vars')
|
||||||
|
|
||||||
|
const sentryCli = process.platform === 'win32' ? 'node_modules\\.bin\\sentry-cli.cmd' : 'sentry-cli'
|
||||||
|
|
||||||
|
sh.exec(`${sentryCli} releases new ${vars.version}`)
|
||||||
|
|
||||||
|
if (process.platform === 'darwin') {
|
||||||
|
for (const path of [
|
||||||
|
'app/node_modules/@serialport/bindings/build/Release/bindings.node',
|
||||||
|
'app/node_modules/@terminus-term/node-pty/build/Release/pty.node',
|
||||||
|
'app/node_modules/fontmanager-redux/build/Release/fontmanager.node',
|
||||||
|
'app/node_modules/macos-native-processlist/build/Release/native.node',
|
||||||
|
]) {
|
||||||
|
sh.exec('dsymutil ' + path)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sh.exec(`${sentryCli} upload-dif app/node_modules`)
|
||||||
|
sh.exec(`${sentryCli} releases set-commits --auto ${vars.version}`)
|
||||||
|
for (const p of vars.builtinPlugins) {
|
||||||
|
sh.exec(`${sentryCli} releases files ${vars.version} upload-sourcemaps app/dist ${p}/dist -u ${p}/dist/ -d ${process.platform}`)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user