Update this
This commit is contained in:
1 file changed
+4
-4
@@ -20,7 +20,7 @@ export const handler = async (context: Context) => {
|
||||
let platString = null
|
||||
if (!showAll) {
|
||||
if (platform == 'windows') {
|
||||
if (arch == 'x86_64') platString = 'windows'
|
||||
if (arch == 'x86_64') platString = 'windows-x64'
|
||||
else if (arch == 'aarch64') platString = 'windows-arm64'
|
||||
else {
|
||||
connection.end()
|
||||
@@ -30,7 +30,7 @@ export const handler = async (context: Context) => {
|
||||
)
|
||||
}
|
||||
} else if (platform == 'linux') {
|
||||
if (arch == 'x86_64') platString = 'linux'
|
||||
if (arch == 'x86_64') platString = 'linux-x64'
|
||||
else {
|
||||
connection.end()
|
||||
return jsonResponse(
|
||||
@@ -39,8 +39,8 @@ export const handler = async (context: Context) => {
|
||||
)
|
||||
}
|
||||
} else if (platform == 'macos') {
|
||||
if (arch == 'x86_64') platString = 'macos-intel'
|
||||
else if (arch == 'aarch64') platString = 'macos-silicon'
|
||||
if (arch == 'x86_64') platString = 'macos-x64'
|
||||
else if (arch == 'aarch64') platString = 'macos-arm64'
|
||||
else {
|
||||
connection.end()
|
||||
return jsonResponse(
|
||||
|
||||
Reference in new issue
Block a user