@@ -157,6 +157,31 @@ To build for Windows x64:
157157 </Tab >
158158</Tabs >
159159
160+ To build for Windows arm64:
161+
162+ <Tabs >
163+ <Tab title = " CLI" >
164+ ``` bash icon="terminal" terminal
165+ bun build --compile --target=bun-windows-arm64 ./path/to/my/app.ts --outfile myapp
166+
167+ # note: if no .exe extension is provided, Bun will automatically add it for Windows executables
168+ ```
169+
170+ </Tab >
171+ <Tab title = " JavaScript" >
172+ ``` ts build.ts icon="/icons/typescript.svg"
173+ await Bun .build ({
174+ entrypoints: [" ./path/to/my/app.ts" ],
175+ compile: {
176+ target: " bun-windows-arm64" ,
177+ outfile: " ./myapp" , // .exe added automatically
178+ },
179+ });
180+ ```
181+
182+ </Tab >
183+ </Tabs >
184+
160185To build for macOS arm64:
161186
162187<Tabs >
@@ -208,7 +233,7 @@ The order of the `--target` flag does not matter, as long as they're delimited b
208233| bun-linux-x64 | Linux | x64 | ✅ | ✅ | glibc |
209234| bun-linux-arm64 | Linux | arm64 | ✅ | N/A | glibc |
210235| bun-windows-x64 | Windows | x64 | ✅ | ✅ | - |
211- | ~~ bun-windows-arm64~~ | ~~ Windows~~ | ~~ arm64~~ | ❌ | ❌ | - |
236+ | bun-windows-arm64 | Windows | arm64 | ✅ | N/A | - |
212237| bun-darwin-x64 | macOS | x64 | ✅ | ✅ | - |
213238| bun-darwin-arm64 | macOS | arm64 | ✅ | N/A | - |
214239| bun-linux-x64-musl | Linux | x64 | ✅ | ✅ | musl |
@@ -1252,7 +1277,8 @@ type Target =
12521277 | " bun-linux-arm64-musl"
12531278 | " bun-windows-x64"
12541279 | " bun-windows-x64-baseline"
1255- | " bun-windows-x64-modern" ;
1280+ | " bun-windows-x64-modern"
1281+ | " bun-windows-arm64" ;
12561282```
12571283
12581284### Complete example
0 commit comments