Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,42 @@ jobs:
retention-days: 30
if-no-files-found: error

build-windows:
name: Build Windows
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required for git describe to find tags

- uses: ./.github/actions/setup-mux

- name: Install GNU Make (for build)
run: choco install -y make

- name: Verify tools
shell: bash
run: |
make --version
bun --version
magick --version | head -1

- name: Build application
run: bun run build

# No code signing - releases use release.yml (triggered by tag publish).
- name: Package for Windows
run: make dist-win

- name: Upload Windows exe
uses: actions/upload-artifact@v4
with:
name: windows-exe
path: release/*.exe
retention-days: 30
if-no-files-found: error

build-vscode-extension:
name: Build VS Code Extension
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-16' || 'ubuntu-latest' }}
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,22 @@ jobs:
- name: Build application
run: bun run build

- name: Setup code signing
shell: bash
run: |
if [ -n "$WINDOWS_CERTIFICATE" ]; then
echo "Setting up Windows code signing certificate..."
echo "$WINDOWS_CERTIFICATE" | base64 -d > /tmp/certificate.pfx
echo "CSC_LINK=/tmp/certificate.pfx" >> "$GITHUB_ENV"
echo "CSC_KEY_PASSWORD=$WINDOWS_CERTIFICATE_PWD" >> "$GITHUB_ENV"
echo "✅ Windows code signing configured"
else
echo "⚠️ No Windows code signing certificate provided - building unsigned"
fi
env:
WINDOWS_CERTIFICATE: ${{ secrets.WINDOWS_CERTIFICATE }}
WINDOWS_CERTIFICATE_PWD: ${{ secrets.WINDOWS_CERTIFICATE_PWD }}

- name: Package and publish for Windows (.exe)
run: bun x electron-builder --win --publish always
env:
Expand Down