mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-23 13:45: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() {
|
||||
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",
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue