Skip to content

Build Windows

Build Windows #8

Workflow file for this run

# Windows build – Visual Studio sadece GitHub runner'da gerekir, bilgisayarında kurulu olması gerekmez.
# Push sonrası Actions sekmesinden artifact olarak installer/portable indirebilirsin.
name: Build Windows
on:
push:
branches: [main, master, develop]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
env:
# Runner'da VS var; rebuild çalışsın
SKIP_NATIVE_REBUILD: ""
- name: Download Claude binary (Windows x64)
run: bun run claude:download
env:
# Mevcut platform = Windows
CI: true
- name: Download Codex binary (Windows x64)
run: bun run codex:download
- name: Build app
run: bun run build
- name: Package Windows (NSIS + portable)
run: bun run package:win
- name: Get version
id: version
run: |
$version = node -p "require('./package.json').version"
$product = node -p "require('./package.json').productName"
echo "VERSION=$version" >> $env:GITHUB_OUTPUT
echo "PRODUCT=$product" >> $env:GITHUB_OUTPUT
shell: pwsh
- name: Upload Windows artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ steps.version.outputs.PRODUCT }}-${{ steps.version.outputs.VERSION }}-windows
path: |
release/*.exe
release/*.exe.blockmap
release/*-portable.exe