File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -35,24 +35,9 @@ let isInit = false;
3535// Default to the "stable" update channel
3636let canaryUpdates = false ;
3737
38- // Detect if we are running inside Rosetta emulation
39- const isRosetta = ( ) => {
40- if ( platform !== 'darwin' ) {
41- return false ;
42- }
43- const sysctlRosettaInfoKey = 'sysctl.proc_translated' ;
44- let results = '' ;
45- try {
46- results = execSync ( `sysctl ${ sysctlRosettaInfoKey } ` ) . toString ( ) ;
47- } catch ( error ) {
48- console . log ( 'Failed to detect Rosetta' ) ;
49- }
50- return results . includes ( `${ sysctlRosettaInfoKey } : 1` ) ;
51- } ;
52-
5338const buildFeedUrl = ( canary : boolean , currentVersion : string ) => {
5439 const updatePrefix = canary ? 'releases-canary' : 'releases' ;
55- const archSuffix = process . arch === 'arm64' || isRosetta ( ) ? '_arm64' : '' ;
40+ const archSuffix = process . arch === 'arm64' || app . runningUnderARM64Translation ? '_arm64' : '' ;
5641 return `https://${ updatePrefix } .hyper.is/update/${ isLinux ? 'deb' : platform } ${ archSuffix } /${ currentVersion } ` ;
5742} ;
5843
You can’t perform that action at this time.
0 commit comments