File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Expand file tree Collapse file tree 2 files changed +4
-14
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 @@ -119,17 +119,7 @@ const bootstrap = async () => {
119
119
trayInstance = tray . buildTray ( ) ;
120
120
}
121
121
122
- let upgradeUrl ;
123
- switch ( process . env . NODE_ENV ) {
124
- case 'production' :
125
- upgradeUrl = process . env . MANUAL_UPGRADES_LINK || process . env . UPGRADES_LINK ;
126
- break ;
127
- case 'staging' :
128
- upgradeUrl = process . env . MANUAL_UPGRADES_LINK || process . env . UPGRADES_LINK_STAGE ;
129
- break ;
130
- default :
131
- upgradeUrl = process . env . MANUAL_UPGRADES_LINK || '' ;
132
- }
122
+ const upgradeUrl = process . env . MANUAL_UPGRADES_LINK || process . env . UPGRADES_LINK ;
133
123
134
124
if ( upgradeUrl ) {
135
125
new AppUpdater ( upgradeUrl ) ;
You can’t perform that action at this time.
0 commit comments