mirror of
https://github.com/smartfrigde/armcord.git
synced 2026-06-23 05:25:43 +00:00
19 lines
710 B
TypeScript
19 lines
710 B
TypeScript
import { existsSync, mkdirSync } from "node:fs";
|
|
import { copyFile } from "node:fs/promises";
|
|
|
|
async function copyVenmic() {
|
|
if (process.platform !== "linux") return;
|
|
if (!existsSync("./dist")) mkdirSync("./dist");
|
|
return Promise.all([
|
|
copyFile(
|
|
"./node_modules/@vencord/venmic/prebuilds/venmic-addon-linux-x64/node-napi-v7.node",
|
|
"./dist/venmic-x64.node",
|
|
),
|
|
copyFile(
|
|
"./node_modules/@vencord/venmic/prebuilds/venmic-addon-linux-arm64/node-napi-v7.node",
|
|
"./dist/venmic-arm64.node",
|
|
),
|
|
]).catch(() => console.warn("Failed to copy venmic. Building without venmic support"));
|
|
}
|
|
|
|
await Promise.all([copyVenmic()]);
|