Support Windows
Build a windows-x64 binary and add install.ps1. The editor, browser links, paths, clipboard images and t3tui upgrade all learn Windows' way of doing things; t3tui tmux says it needs WSL.
This commit is contained in:
1 parent
2845b6fe2b
commit
df2c8e0907
23 files changed
+355
-72
No files matched your search
@@ -1,5 +1,5 @@
|
||||
# Pushing a tag like v0.1.0 builds a binary per platform, runs each on its own OS, and
|
||||
# publishes them as a GitHub Release for install.sh and `t3tui upgrade`. Run it by hand
|
||||
# publishes them as a GitHub Release for install.sh, install.ps1 and `t3tui upgrade`. Run it by hand
|
||||
# to build and check the binaries without releasing them.
|
||||
name: Release
|
||||
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
- run: bun run typecheck
|
||||
- run: bun run lint
|
||||
- run: bun test
|
||||
- run: bun run compile linux-x64 linux-arm64 darwin-x64 darwin-arm64
|
||||
- run: bun run compile linux-x64 linux-arm64 darwin-x64 darwin-arm64 windows-x64
|
||||
- name: Compress and checksum
|
||||
working-directory: release
|
||||
run: |
|
||||
@@ -72,9 +72,22 @@ jobs:
|
||||
grep -q "Waiting for threads" out.txt || { cat out.txt; echo "the dashboard didn't draw"; exit 1; }
|
||||
kill $!
|
||||
|
||||
# Windows has no `script` to give the dashboard a terminal, so this stops at the binary starting.
|
||||
smoke-windows:
|
||||
needs: build
|
||||
runs-on: windows-latest
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: release
|
||||
- run: gunzip -c t3tui-windows-x64.exe.gz > t3tui.exe && ./t3tui.exe version
|
||||
|
||||
release:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
needs: smoke
|
||||
needs: [smoke, smoke-windows]
|
||||
runs-on: ubuntu-24.04
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -94,6 +107,7 @@ jobs:
|
||||
Built against T3 Code \`${t3code:-$commit}\`.
|
||||
|
||||
Install: \`curl -fsSL https://raw.githubusercontent.com/${{ github.repository }}/main/install.sh | sh\`
|
||||
On Windows: \`irm https://raw.githubusercontent.com/${{ github.repository }}/main/install.ps1 | iex\`
|
||||
Already installed: \`t3tui upgrade\`
|
||||
EOF
|
||||
gh release create "$GITHUB_REF_NAME" release/* --title "$GITHUB_REF_NAME" --notes-file notes.md --generate-notes
|
||||
Reference in new issue
Block a user