File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -432,7 +432,7 @@ jobs:
432
432
exit 0;
433
433
fi
434
434
435
- SEGMENT_WRITE_KEY=$SEGMENT_WRITE_KEY_STAGE yarn package:<< parameters.env >>
435
+ UPGRADES_LINK=$UPGRADES_LINK_STAGE SEGMENT_WRITE_KEY=$SEGMENT_WRITE_KEY_STAGE yarn package:<< parameters.env >>
436
436
- persist_to_workspace :
437
437
root : .
438
438
paths :
@@ -474,7 +474,7 @@ jobs:
474
474
exit 0;
475
475
fi
476
476
477
- SEGMENT_WRITE_KEY=$SEGMENT_WRITE_KEY_STAGE yarn package:<< parameters.env >>
477
+ UPGRADES_LINK=$UPGRADES_LINK_STAGE SEGMENT_WRITE_KEY=$SEGMENT_WRITE_KEY_STAGE yarn package:<< parameters.env >>
478
478
rm -rf release/mac
479
479
no_output_timeout : 15m
480
480
- persist_to_workspace :
@@ -514,7 +514,7 @@ jobs:
514
514
exit 0;
515
515
fi
516
516
517
- SEGMENT_WRITE_KEY=$SEGMENT_WRITE_KEY_STAGE yarn package:<< parameters.env >>
517
+ UPGRADES_LINK=$UPGRADES_LINK_STAGE SEGMENT_WRITE_KEY=$SEGMENT_WRITE_KEY_STAGE yarn package:<< parameters.env >>
518
518
rm -rf release/win-unpacked
519
519
shell : bash.exe
520
520
no_output_timeout : 20m
Original file line number Diff line number Diff line change @@ -44,14 +44,14 @@ if (process.env.NODE_ENV !== 'production') {
44
44
log . info ( 'App starting.....' ) ;
45
45
46
46
export default class AppUpdater {
47
- constructor ( ) {
47
+ constructor ( url : string = '' ) {
48
48
log . info ( 'AppUpdater initialization' ) ;
49
49
log . transports . file . level = 'info' ;
50
50
51
51
try {
52
52
autoUpdater . setFeedURL ( {
53
53
provider : 'generic' ,
54
- url : process . env . MANUAL_UPGRADES_LINK || process . env . UPGRADES_LINK ,
54
+ url,
55
55
} ) ;
56
56
} catch ( error ) {
57
57
log . error ( error ) ;
@@ -119,8 +119,10 @@ const bootstrap = async () => {
119
119
trayInstance = tray . buildTray ( ) ;
120
120
}
121
121
122
- if ( process . env . NODE_ENV === 'production' ) {
123
- new AppUpdater ( ) ;
122
+ const upgradeUrl = process . env . MANUAL_UPGRADES_LINK || process . env . UPGRADES_LINK ;
123
+
124
+ if ( upgradeUrl ) {
125
+ new AppUpdater ( upgradeUrl ) ;
124
126
}
125
127
126
128
app . setName ( 'RedisInsight' ) ;
You can’t perform that action at this time.
0 commit comments