Skip to content

Commit

Permalink
feat: compile & release bin for all OS
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Nov 14, 2024
1 parent 461ff31 commit 338502a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,16 @@ jobs:
run: bunx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Attach Binaries
uses: softprops/action-gh-release@v2
with:
body_path: CHANGELOG.md
files: |
bin/tlsx-linux-x64
bin/tlsx-linux-arm64
bin/tlsx-windows-x64.exe
bin/tlsx-darwin-x64
bin/tlsx-darwin-arm64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@
"files": ["dist", "scripts", "src"],
"scripts": {
"build": "bun build.ts && bun run compile",
"compile": "bun build ./bin/cli.ts --compile --minify --outfile dist/tlsx",
"compile": "bun build ./bin/cli.ts --compile --minify --outfile bin/tlsx",
"compile:all": "bun run compile:linux-x64 && bun run compile:linux-arm64 && bun run compile:windows-x64 && bun run compile:darwin-x64 && bun run compile:darwin-arm64",
"compile:linux-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-x64 --outfile bin/tlsx-linux-x64",
"compile:linux-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-arm64 --outfile bin/tlsx-linux-arm64",
"compile:windows-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-windows-x64 --outfile bin/tlsx-windows-x64.exe",
"compile:darwin-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-x64 --outfile bin/tlsx-darwin-x64",
"compile:darwin-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-arm64 --outfile bin/tlsx-darwin-arm64",
"postcompile": "bun ./scripts/post-compile.ts",
"lint": "bunx --bun eslint .",
"lint:fix": "bunx --bun eslint . --fix",
Expand Down

0 comments on commit 338502a

Please sign in to comment.