Skip to content

Commit da0aa86

Browse files
committedMar 25, 2023
feat: GUI
1 parent 0a3d789 commit da0aa86

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+7013
-1804
lines changed
 

‎.eslintrc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": [
5+
"@typescript-eslint"
6+
],
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/eslint-recommended",
10+
"plugin:@typescript-eslint/recommended"
11+
]
12+
}

‎.github/workflows/release.yml

+43-11
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,54 @@
1+
name: Release
12
on:
2-
release:
3-
types: [created]
3+
push:
4+
tags:
5+
- 'v*'
6+
workflow_dispatch:
47

58
jobs:
69
release:
7-
name: release ${{ matrix.target }}
8-
runs-on: ubuntu-latest
910
strategy:
1011
fail-fast: false
1112
matrix:
12-
target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl, x86_64-apple-darwin]
13+
platform: [macos-latest, ubuntu-20.04, windows-latest]
14+
runs-on: ${{ matrix.platform }}
1315
steps:
14-
- uses: actions/checkout@master
15-
- name: Compile and release
16-
uses: rust-build/rust-build.action@v1.3.2
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
- name: Install dependencies (ubuntu only)
20+
if: matrix.platform == 'ubuntu-20.04'
21+
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
22+
run: |
23+
sudo apt-get update
24+
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev
25+
26+
- name: Rust setup
27+
uses: dtolnay/rust-toolchain@stable
28+
29+
- name: Rust cache
30+
uses: swatinem/rust-cache@v2
31+
with:
32+
workspaces: './src-tauri -> target'
33+
34+
- name: Sync node version and setup cache
35+
uses: actions/setup-node@v3
36+
with:
37+
node-version: 'lts/*'
38+
cache: 'yarn' # Set this to npm, yarn or pnpm.
39+
40+
- name: Install app dependencies and build web
41+
# Remove `&& yarn build` if you build your frontend in `beforeBuildCommand`
42+
run: yarn && yarn build # Change this to npm, yarn or pnpm.
43+
44+
- name: Build the app
45+
uses: tauri-apps/tauri-action@v0
46+
1747
env:
1848
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1949
with:
20-
RUSTTARGET: ${{ matrix.target }}
21-
EXTRA_FILES: "README.md"
22-
TOOLCHAIN_VERSION: 1.64.0
50+
tagName: ${{ github.ref_name }} # This only works if your workflow triggers on new tags.
51+
releaseName: 'OResults connector v__VERSION__' # tauri-action replaces \_\_VERSION\_\_ with the app version.
52+
releaseBody: 'See the assets to download and install this version.'
53+
releaseDraft: true
54+
prerelease: false

0 commit comments

Comments
 (0)
Please sign in to comment.