@@ -47,11 +47,14 @@ if (os.platform() === 'win32') {
47
47
48
48
const fileName = 'Azure.Functions.Cli.' + platform + '.' + version + '.zip' ;
49
49
const endpoint = 'https://cdn.functions.azure.com/public/' + consolidatedBuildId + '/' + fileName ;
50
+
50
51
console . log ( 'attempting to GET %j' , endpoint ) ;
51
52
const options = url . parse ( endpoint ) ;
53
+
52
54
// npm config preceed system environment
53
55
// https://github.com/npm/npm/blob/19397ad523434656af3d3765e80e22d7e6305f48/lib/config/reg-client.js#L7-L8
54
56
// https://github.com/request/request/blob/b12a6245d9acdb1e13c6486d427801e123fdafae/lib/getProxyFromURI.js#L66-L71
57
+
55
58
const proxy = process . env . npm_config_https_proxy ||
56
59
process . env . npm_config_proxy ||
57
60
process . env . HTTPS_PROXY ||
@@ -103,8 +106,12 @@ https.get(options, response => {
103
106
if ( os . platform ( ) === 'linux' || os . platform ( ) === 'darwin' ) {
104
107
fs . chmodSync ( `${ installPath } /func` , 0o755 ) ;
105
108
fs . chmodSync ( `${ installPath } /gozip` , 0o755 ) ;
106
- fs . chmodSync ( `${ installPath } /in-proc8/func` , 0o755 ) ;
107
- fs . chmodSync ( `${ installPath } /in-proc6/func` , 0o755 ) ;
109
+
110
+ // Skip for arm64 as it is not supported in the preview version
111
+ if ( os . arch ( ) != 'arm64' ) {
112
+ fs . chmodSync ( `${ installPath } /in-proc8/func` , 0o755 ) ;
113
+ fs . chmodSync ( `${ installPath } /in-proc6/func` , 0o755 ) ;
114
+ }
108
115
}
109
116
} ) ;
110
117
} ) ;
0 commit comments