Skip to content

Commit f678f28

Browse files
add architecture specific builds
1 parent 5b8210e commit f678f28

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

docs/Building.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,26 @@ Alternatively, you can build using Node.js and node-gyp (this creates a static l
4949

5050
3. **Build**:
5151

52+
**Default build (matches your Node.js architecture):**
53+
5254
```bash
5355
npm run build
5456
```
5557

58+
**Architecture-specific builds:**
59+
60+
```bash
61+
npm run build:x64 # 64-bit library
62+
npm run build:x86 # 32-bit library
63+
npm run build:arm64 # ARM64 library
64+
```
65+
66+
**Clean build artifacts:**
67+
68+
```bash
69+
npm run clean
70+
```
71+
5672
The output will be `MAPIStubLibrary.lib` in the `build/Release` directory.
5773

5874
## Build Output

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
"description": "MAPI Stub Library for 32 and 64 bit applications",
55
"scripts": {
66
"build": "node-gyp rebuild",
7-
"clean": "node-gyp clean"
7+
"build:x64": "node-gyp rebuild --arch=x64",
8+
"build:x86": "node-gyp rebuild --arch=ia32",
9+
"build:arm64": "node-gyp rebuild --arch=arm64",
10+
"clean": "node-gyp clean",
11+
"clean:all": "node-gyp clean && rmdir /s /q build 2>nul || true"
812
},
913
"devDependencies": {
1014
"clang-format": "^1.8.0"

0 commit comments

Comments
 (0)