separate venbind copy function

This commit is contained in:
Tuxinal 2024-08-18 19:43:28 +03:30
parent f0919833e6
commit 2fcf255f92

View file

@ -45,16 +45,22 @@ async function copyVenmic() {
copyFile(
"./node_modules/@vencord/venmic/prebuilds/venmic-addon-linux-arm64/node-napi-v7.node",
"./static/dist/venmic-arm64.node"
),
copyFile(
"./node_modules/venbind/prebuilds/linux-x86_64/venbind-linux-x86_64.node",
"./static/dist/venbind-linux-x86_64.node"
)
]).catch(() => console.warn("Failed to copy venmic. Building without venmic support"));
}
async function copyVenbind() {
return Promise.all([
copyFile(
"./node_modules/venbind/prebuilds/linux-x86_64/venbind-linux-x86_64.node",
"./static/dist/venbind-linux-x86_64.node"
)
]).catch(() => console.warn("Failed to copy venbind. Building without venbind support"));
}
await Promise.all([
copyVenmic(),
copyVenbind(),
createContext({
...NodeCommonOpts,
entryPoints: ["src/main/index.ts"],