@@ -12,7 +12,7 @@ switch (platform) {
1212 // macOS specific code
1313 switch ( arch ) {
1414 case "x64" : {
15- if ( fs . existsSync ( path . join ( __dirname , "darwin-x64" , "postinstall" ) ) ) {
15+ if ( fs . existsSync ( path . join ( __dirname , "darwin-x64" , "postinstall" ) ) ) {
1616 const scripts = fs . readdirSync (
1717 path . join ( __dirname , "darwin-x64" , "postinstall" )
1818 ) ;
@@ -23,11 +23,13 @@ switch (platform) {
2323 ) ( ) ;
2424 }
2525 } ) ;
26- } else return ;
26+ } else return ;
2727 break ;
2828 }
2929 case "arm64" : {
30- if ( fs . existsSync ( path . join ( __dirname , "darwin-arm64" , "postinstall" ) ) ) {
30+ if (
31+ fs . existsSync ( path . join ( __dirname , "darwin-arm64" , "postinstall" ) )
32+ ) {
3133 const scripts = fs . readdirSync (
3234 path . join ( __dirname , "darwin-arm64" , "postinstall" )
3335 ) ;
@@ -38,15 +40,15 @@ switch (platform) {
3840 ) ( ) ;
3941 }
4042 } ) ;
41- } else return ;
43+ } else return ;
4244 break ;
4345 }
4446 default :
4547 console . log ( "Are you still using PowerPC?" ) ;
4648 }
4749 break ;
4850 case "linux" : {
49- if ( fs . existsSync ( path . join ( __dirname , "linux" , "postinstall" ) ) ) {
51+ if ( fs . existsSync ( path . join ( __dirname , "linux" , "postinstall" ) ) ) {
5052 const scripts = fs . readdirSync (
5153 path . join ( __dirname , "linux" , "postinstall" )
5254 ) ;
@@ -60,11 +62,11 @@ switch (platform) {
6062 execSync ( `${ path . join ( __dirname , "linux" , "postinstall" , script ) } ` ) ;
6163 }
6264 } ) ;
63- } else return ;
65+ } else return ;
6466 break ;
6567 }
6668 case "win32" : {
67- if ( fs . existsSync ( path . join ( __dirname , "win32" , "postinstall" ) ) ) {
69+ if ( fs . existsSync ( path . join ( __dirname , "win32" , "postinstall" ) ) ) {
6870 const scripts = fs . readdirSync (
6971 path . join ( __dirname , "win32" , "postinstall" )
7072 ) ;
@@ -75,7 +77,7 @@ switch (platform) {
7577 execSync ( `${ path . join ( __dirname , "win32" , "postinstall" , script ) } ` ) ;
7678 }
7779 } ) ;
78- } else return ;
80+ } else return ;
7981 break ;
8082 }
8183 default :
0 commit comments