Skip to content

Commit 0bc52b8

Browse files
committed
feat: migrate to electron, add windows ci, update icon
1 parent 06322d5 commit 0bc52b8

28 files changed

+3137
-454
lines changed

.github/workflows/release.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build and Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, windows-latest]
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
23+
- name: Install Bun
24+
uses: oven-sh/setup-bun@v1
25+
26+
- name: Install Dependencies
27+
run: bun install
28+
29+
- name: Build Electron App
30+
env:
31+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
run: |
33+
bun run build
34+
# Note: 'build' script runs 'electron-builder'.
35+
# On Windows runner, it builds for Windows. On Linux runner, for Linux.
36+
# We might need to be explicit if we want to cross-compile, but matrix is better.
37+
38+
- name: Upload Artifacts to Release
39+
uses: softprops/action-gh-release@v1
40+
if: startsWith(github.ref, 'refs/tags/')
41+
with:
42+
files: |
43+
dist-electron-build/*.AppImage
44+
dist-electron-build/*.exe
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ lerna-debug.log*
1010
node_modules
1111
dist
1212
dist-ssr
13+
dist-electron
14+
dist-electron-build
1315
*.local
1416

1517
# Editor directories and files

AI_INDEPENDENT_PLAN.md

Lines changed: 0 additions & 314 deletions
This file was deleted.

0 commit comments

Comments
 (0)