-
Notifications
You must be signed in to change notification settings - Fork 1
88 lines (75 loc) · 2.6 KB
/
Copy pathrelease.yml
File metadata and controls
88 lines (75 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
platform: Windows (x64)
rust-target: x86_64-pc-windows-msvc
- os: macos-latest
platform: macOS (Universal)
rust-target: aarch64-apple-darwin x86_64-apple-darwin
- os: ubuntu-latest
platform: Linux (x64)
rust-target: x86_64-unknown-linux-gnu
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.rust-target }}
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install -y libwebkit2gtk-4.1-dev build-essential curl wget file \
libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev
- name: Install frontend dependencies
run: npm ci
- name: Build Tauri app
uses: tauri-apps/tauri-action@v0
id: tauri
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: ${{ github.ref_name }}
releaseName: 'AIKeyVault ${{ github.ref_name }}'
releaseBody: |
## Downloads
| Platform | Architecture | Package |
|----------|-------------|---------|
| Windows | x64 (also runs on ARM64 via PRISM) | `.msi` / `.exe` / `.zip` (portable) |
| macOS | Universal (Intel + Apple Silicon) | `.dmg` |
| Linux | x64 | `.deb` / `.AppImage` |
> Built automatically via GitHub Actions. All installers are self-contained.
>
> **Portable (.zip)**: No installation required. Extract and run `AIKeyVault.exe` directly.
releaseDraft: false
prerelease: false
- name: Create portable zip (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
Compress-Archive -Path src-tauri/target/release/aikeyvault.exe -DestinationPath AIKeyVault_portable_x64.zip -Force
- name: Upload portable zip to release
if: runner.os == 'Windows'
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.ref_name }} AIKeyVault_portable_x64.zip --repo Awfp1314/AIKeyVault --clobber