Skip to content

Commit f928e93

Browse files
committed
chore: minify binaries
1 parent 95a1b1d commit f928e93

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

.github/workflows/release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ jobs:
4343
uses: softprops/action-gh-release@v2
4444
with:
4545
files: |
46-
bin/clarity-linux-x64
47-
bin/clarity-linux-arm64
48-
bin/clarity-windows-x64.exe
49-
bin/clarity-darwin-x64
50-
bin/clarity-darwin-arm64
46+
bin/clarity-linux-x64.zip
47+
bin/clarity-linux-arm64.zip
48+
bin/clarity-windows-x64.zip
49+
bin/clarity-darwin-x64.zip
50+
bin/clarity-darwin-arm64.zip
5151
env:
5252
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ temp
1313
docs/.vitepress/cache
1414
test-logs
1515
test-logs-*
16+
bin/clarity
17+
bin/clarity*

bin/clarity

-54.2 MB
Binary file not shown.

package.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,18 @@
5252
"compile:windows-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-windows-x64 --outfile bin/clarity-windows-x64.exe",
5353
"compile:darwin-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-x64 --outfile bin/clarity-darwin-x64",
5454
"compile:darwin-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-arm64 --outfile bin/clarity-darwin-arm64",
55+
"zip": "bun run zip:all",
56+
"zip:all": "bun run zip:linux-x64 && bun run zip:linux-arm64 && bun run zip:windows-x64 && bun run zip:darwin-x64 && bun run zip:darwin-arm64",
57+
"zip:linux-x64": "zip -j bin/clarity-linux-x64.zip bin/clarity-linux-x64",
58+
"zip:linux-arm64": "zip -j bin/clarity-linux-arm64.zip bin/clarity-linux-arm64",
59+
"zip:windows-x64": "zip -j bin/clarity-windows-x64.zip bin/clarity-windows-x64.exe",
60+
"zip:darwin-x64": "zip -j bin/clarity-darwin-x64.zip bin/clarity-darwin-x64",
61+
"zip:darwin-arm64": "zip -j bin/clarity-darwin-arm64.zip bin/clarity-darwin-arm64",
5562
"lint": "bunx --bun eslint .",
5663
"lint:fix": "bunx --bun eslint . --fix",
5764
"fresh": "bunx rimraf node_modules/ bun.lock && bun i",
5865
"changelog": "bunx changelogen --output CHANGELOG.md",
59-
"prepublishOnly": "bun --bun run build && bun run compile:all",
66+
"prepublishOnly": "bun --bun run build && bun run compile:all && bun run zip",
6067
"release": "bun run changelog && bunx bumpp package.json --all",
6168
"test": "bun test",
6269
"dev:docs": "bun --bun vitepress dev docs",

0 commit comments

Comments
 (0)