Skip to content

Commit 18fc3e5

Browse files
committed
Add desktop build support
1 parent a6114ce commit 18fc3e5

34 files changed

Lines changed: 5795 additions & 31 deletions

.github/workflows/desktop.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Tauri Build and Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Version number for the release'
8+
required: true
9+
default: '0.1.0'
10+
prerelease:
11+
description: 'Is this a pre-release?'
12+
type: boolean
13+
default: false
14+
15+
jobs:
16+
build:
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
platform: [macos-latest, ubuntu-latest, windows-latest]
21+
22+
runs-on: ${{ matrix.platform }}
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 20
31+
cache: 'npm'
32+
33+
- name: Install Rust (stable)
34+
uses: dtolnay/rust-toolchain@stable
35+
36+
- name: Install dependencies (ubuntu only)
37+
if: matrix.platform == 'ubuntu-latest'
38+
run: |
39+
sudo apt-get update
40+
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
41+
42+
- name: Install dependencies
43+
run: npm ci
44+
45+
- name: Build Tauri app
46+
uses: tauri-apps/tauri-action@v0
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
with:
50+
tagName: v${{ github.event.inputs.version }}
51+
releaseName: "Blockcore Notes v${{ github.event.inputs.version }}"
52+
releaseBody: "See the assets to download this version and install."
53+
releaseDraft: true
54+
prerelease: ${{ github.event.inputs.prerelease }}
55+
56+
- name: Upload artifacts
57+
uses: actions/upload-artifact@v3
58+
with:
59+
name: artifacts-${{ matrix.platform }}
60+
path: |
61+
target/release/bundle/

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,3 @@ testem.log
4040
# System files
4141
.DS_Store
4242
Thumbs.db
43-
src/app/app.html

.vscode/extensions.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3-
"recommendations": ["angular.ng-template"]
2+
"recommendations": [
3+
"tauri-apps.tauri-vscode",
4+
"rust-lang.rust-analyzer",
5+
"angular.ng-template"
6+
]
47
}

0 commit comments

Comments
 (0)