Fix Node arch

This commit is contained in:
Gregory Schier
2024-07-19 16:08:37 -07:00
parent 7c1ccbec6d
commit c1fae5951a
3 changed files with 8 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ const SRC_BIN_MAP = {
};
(async function () {
const key = `${process.platform}_${process.arch}`;
const key = `${process.platform}_${process.env.NODE_ARCH ?? process.arch}`;
const url = URL_MAP[key];
const tmpDir = path.join(os.tmpdir(), `${Math.random()}`);
const dstDir = path.join(__dirname, `..`, 'src-tauri', 'vendored', 'protoc');