Skip to content

Commit 8db7e61

Browse files
Use bun-baseline for Windows x64 builds to make it work in ARM emulation mode
1 parent bf2e800 commit 8db7e61

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/@tailwindcss-standalone/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"homepage": "https://tailwindcss.com",
1313
"scripts": {
1414
"lint": "tsc --noEmit",
15-
"build": "bun ./build.ts"
15+
"build": "bun ./scripts/build.ts"
1616
},
1717
"bin": {
1818
"tailwindcss": "./dist/index.mjs"

packages/@tailwindcss-standalone/build.ts renamed to packages/@tailwindcss-standalone/scripts/build.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function buildForPlatform(triple: string, outfile: string) {
2222
async function build(triple: string, file: string) {
2323
let start = process.hrtime.bigint()
2424

25-
let outfile = path.resolve(__dirname, `dist/${file}`)
25+
let outfile = path.resolve(__dirname, `../dist/${file}`)
2626

2727
await buildForPlatform(triple, outfile)
2828

@@ -41,7 +41,7 @@ async function build(triple: string, file: string) {
4141
}
4242
}
4343

44-
await mkdir(path.resolve(__dirname, 'dist'), { recursive: true })
44+
await mkdir(path.resolve(__dirname, '../dist'), { recursive: true })
4545

4646
// Build platform binaries and checksum them
4747
let results = await Promise.all([
@@ -50,12 +50,12 @@ let results = await Promise.all([
5050
// build('linux-armv7', 'tailwindcss-linux-armv7'),
5151
build('bun-darwin-arm64', './tailwindcss-macos-arm64'),
5252
build('bun-darwin-x64', './tailwindcss-macos-x64'),
53-
build('bun-windows-x64', './tailwindcss-windows-x64.exe'),
53+
build('bun-windows-x64-baseline', './tailwindcss-windows-x64.exe'),
5454
// buildForPlatform('win32-arm64', 'tailwindcss-windows-arm64'),
5555
])
5656

5757
// Write the checksums to a file
58-
let sumsFile = path.resolve(__dirname, 'dist/sha256sums.txt')
58+
let sumsFile = path.resolve(__dirname, '../dist/sha256sums.txt')
5959
let sums = results.map(({ file, sum }) => `${sum} ${file}`)
6060

6161
console.table(

0 commit comments

Comments
 (0)