From 105251f5f80c44806794634417547055c323c048 Mon Sep 17 00:00:00 2001 From: Stephen Griffin Date: Thu, 2 Oct 2025 15:50:04 -0400 Subject: [PATCH] don't overwrite builds --- docs/Building.md | 7 ++++++- package.json | 7 ++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/Building.md b/docs/Building.md index 5157d3e..3f77212 100644 --- a/docs/Building.md +++ b/docs/Building.md @@ -61,6 +61,7 @@ Alternatively, you can build using Node.js and node-gyp (this creates a static l npm run build:x64 # 64-bit library npm run build:x86 # 32-bit library npm run build:arm64 # ARM64 library + npm run build:all # Build all architectures ``` **Clean build artifacts:** @@ -69,7 +70,11 @@ Alternatively, you can build using Node.js and node-gyp (this creates a static l npm run clean ``` -The output will be `MAPIStubLibrary.lib` in the `build/Release` directory. +The outputs will be in architecture-specific directories: + +- `build/lib/x64/MAPIStubLibrary.lib` - 64-bit library +- `build/lib/ia32/MAPIStubLibrary.lib` - 32-bit library +- `build/lib/arm64/MAPIStubLibrary.lib` - ARM64 library ## Build Output diff --git a/package.json b/package.json index dd3c40b..0ea5e08 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,10 @@ "description": "MAPI Stub Library for 32 and 64 bit applications", "scripts": { "build": "node-gyp rebuild", - "build:x64": "node-gyp rebuild --arch=x64", - "build:x86": "node-gyp rebuild --arch=ia32", - "build:arm64": "node-gyp rebuild --arch=arm64", + "build:x64": "node-gyp configure --arch=x64 && node-gyp build --arch=x64", + "build:x86": "node-gyp configure --arch=ia32 && node-gyp build --arch=ia32", + "build:arm64": "node-gyp configure --arch=arm64 && node-gyp build --arch=arm64", + "build:all": "npm run build:x64 && npm run build:x86 && npm run build:arm64", "clean": "node-gyp clean", "clean:all": "node-gyp clean && rmdir /s /q build 2>nul || true" },