You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/install.js
+28-18Lines changed: 28 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,6 @@
2
2
3
3
'use strict';
4
4
5
-
// TODO(v3): Remove this file
6
-
7
-
console.log(
8
-
'DEPRECATION NOTICE: The Sentry CLI install script has been deprecated. The package now uses "optionalDependencies" instead to install architecture-compatible binaries distributed over npm.'
9
-
);
10
-
11
5
constfs=require('fs');
12
6
constos=require('os');
13
7
constpath=require('path');
@@ -198,7 +192,7 @@ function validateChecksum(tempPath, name) {
198
192
asyncfunctiondownloadBinary(){
199
193
constarch=os.arch();
200
194
constplatform=os.platform();
201
-
constoutputPath=helper.getPath();
195
+
constoutputPath=helper.getFallbackBinaryPath();
202
196
203
197
if(process.env.SENTRYCLI_USE_LOCAL==='1'){
204
198
try{
@@ -323,14 +317,30 @@ if (process.env.SENTRYCLI_SKIP_DOWNLOAD === '1') {
// If the `resolve` call succeeds it means a binary was installed successfully via optional dependencies so we can skip the manual postinstall download.
330
+
process.exit(0);
331
+
}catch(e){
332
+
// Optional dependencies likely didn't get installed - proceed with fallback downloading manually
333
+
logger.log(
334
+
`Sentry CLI binary installation via optional dependencies was unsuccessful. Downloading manually instead.`
0 commit comments