2021-01-04 22:44:24 +03:00
|
|
|
#!/usr/bin/env node
|
2023-02-26 22:42:31 +03:00
|
|
|
import sh from 'shelljs'
|
|
|
|
import * as vars from './vars.mjs'
|
2021-01-04 22:44:24 +03:00
|
|
|
|
|
|
|
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',
|
2023-06-26 17:28:43 +03:00
|
|
|
'app/node_modules/node-pty/build/Release/pty.node',
|
2021-01-04 22:44:24 +03:00
|
|
|
'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) {
|
2021-01-04 23:31:33 +03:00
|
|
|
sh.exec(`${sentryCli} releases files ${vars.version} upload-sourcemaps ${p}/dist -u ${p}/dist/ -d ${process.platform}-${p}`)
|
2021-01-04 22:44:24 +03:00
|
|
|
}
|