Fix wine support

This commit is contained in:
Lncvrt committed 2026-02-27 11:12:52 -07:00
1 parent 5c9b4f9910
commit befa662b8c
1 file changed
+12 -2
+12 -2
View File
@@ -38,7 +38,12 @@ export const handler = async (context: Context) => {
} else if (platform == 'linux') {
if (arch == 'x86') platformsToShow = ['linux-x64']
else if (arch == 'x86_64' || arch == 'x64')
platformsToShow = ['linux-x86', 'linux-x64']
platformsToShow = [
'linux-x86',
'linux-x64',
'windows-x86',
'windows-x64'
]
else if (arch == 'aarch64' || arch == 'arm64')
platformsToShow = ['linux-arm64']
else {
@@ -123,10 +128,13 @@ export const handler = async (context: Context) => {
download = key
const idx = downloadKeys.indexOf(key)
executable = executables[idx] ?? null
break
}
}
}
const isWine = download?.startsWith('windows') ?? false
const { versionName, ...rest } = v
return {
...rest,
@@ -137,7 +145,9 @@ export const handler = async (context: Context) => {
? download
? downloads[download]
: undefined
: undefined
: undefined,
wine:
platformsToShow && platform == 'linux' && isWine ? true : undefined
}
})
.filter(v => {