mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-23 21:55:09 +00:00
Changes for windows support
This commit is contained in:
parent
4b14cd4f6f
commit
f79ee94301
2 changed files with 13 additions and 2 deletions
|
@ -50,6 +50,15 @@ async function copyVenmic() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function copyVenbind() {
|
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([
|
return Promise.all([
|
||||||
copyFile(
|
copyFile(
|
||||||
"./node_modules/venbind/prebuilds/linux-x86_64/venbind-linux-x86_64.node",
|
"./node_modules/venbind/prebuilds/linux-x86_64/venbind-linux-x86_64.node",
|
||||||
|
|
|
@ -23,10 +23,12 @@ export function obtainVenbind() {
|
||||||
case "linux":
|
case "linux":
|
||||||
os = "linux";
|
os = "linux";
|
||||||
break;
|
break;
|
||||||
// case "win32":
|
case "win32":
|
||||||
// os = "windows";
|
os = "windows";
|
||||||
|
break;
|
||||||
// case "darwin":
|
// case "darwin":
|
||||||
// os = "darwin";
|
// os = "darwin";
|
||||||
|
// break;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue