Fix
This commit is contained in:
1 file changed
+1
-9
@@ -27,7 +27,7 @@ export const handler = async (context: Context) => {
|
|||||||
if (versionsData.length != 1) return
|
if (versionsData.length != 1) return
|
||||||
|
|
||||||
const downloadData = JSON.parse(versionsData[0].downloadData)[
|
const downloadData = JSON.parse(versionsData[0].downloadData)[
|
||||||
(target + '-' + arch)
|
target
|
||||||
.replace('windows', 'win')
|
.replace('windows', 'win')
|
||||||
.replace('darwin', 'macos')
|
.replace('darwin', 'macos')
|
||||||
.replace('x86_64', 'x64')
|
.replace('x86_64', 'x64')
|
||||||
@@ -45,14 +45,6 @@ export const handler = async (context: Context) => {
|
|||||||
|
|
||||||
if (fileInfo.length != 1) return
|
if (fileInfo.length != 1) return
|
||||||
|
|
||||||
console.log({
|
|
||||||
version: versionsData[0].version,
|
|
||||||
notes: versionsData[0].notes,
|
|
||||||
pub_date: versionsData[0].releaseDate,
|
|
||||||
url: 'https://games-r2.lncvrt.xyz/' + fileInfo[0].path,
|
|
||||||
signature: downloadData.signature
|
|
||||||
})
|
|
||||||
|
|
||||||
connection.end()
|
connection.end()
|
||||||
return jsonResponse({
|
return jsonResponse({
|
||||||
version: versionsData[0].version,
|
version: versionsData[0].version,
|
||||||
|
|||||||
Reference in new issue
Block a user