Changes for windows support

This commit is contained in:
checkraisefold 2025-01-07 23:13:37 -08:00 committed by Tuxinal
parent 4b14cd4f6f
commit f79ee94301
2 changed files with 13 additions and 2 deletions

View file

@ -50,6 +50,15 @@ async function copyVenmic() {
}
async function copyVenbind() {
if (process.platform === "win32") {
return Promise.all([
copyFile(
"./node_modules/venbind/prebuilds/windows-x86_64/venbind-windows-x86_64.node",
"./static/dist/venbind-windows-x86_64.node"
)
]).catch(() => console.warn("Failed to copy venbind. Building without venbind support"));
}
return Promise.all([
copyFile(
"./node_modules/venbind/prebuilds/linux-x86_64/venbind-linux-x86_64.node",

View file

@ -23,10 +23,12 @@ export function obtainVenbind() {
case "linux":
os = "linux";
break;
// case "win32":
// os = "windows";
case "win32":
os = "windows";
break;
// case "darwin":
// os = "darwin";
// break;
default:
return null;
}