separate venbind copy function
This commit is contained in:
parent
f0919833e6
commit
2fcf255f92
1 changed files with 10 additions and 4 deletions
|
@ -45,16 +45,22 @@ async function copyVenmic() {
|
||||||
copyFile(
|
copyFile(
|
||||||
"./node_modules/@vencord/venmic/prebuilds/venmic-addon-linux-arm64/node-napi-v7.node",
|
"./node_modules/@vencord/venmic/prebuilds/venmic-addon-linux-arm64/node-napi-v7.node",
|
||||||
"./static/dist/venmic-arm64.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"));
|
]).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([
|
await Promise.all([
|
||||||
copyVenmic(),
|
copyVenmic(),
|
||||||
|
copyVenbind(),
|
||||||
createContext({
|
createContext({
|
||||||
...NodeCommonOpts,
|
...NodeCommonOpts,
|
||||||
entryPoints: ["src/main/index.ts"],
|
entryPoints: ["src/main/index.ts"],
|
||||||
|
|
Loading…
Reference in a new issue