Skip to content

Commit 9943e76

Browse files
committed
add tauri build ci
1 parent d29391a commit 9943e76

26 files changed

+5265
-48
lines changed

.github/workflows/publishtauri.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "publish"
2+
on: [push]
3+
4+
jobs:
5+
publish-tauri:
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
platform: [macos-latest, ubuntu-latest, windows-latest]
10+
11+
runs-on: ${{ matrix.platform }}
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: setup node
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 14
18+
- name: install Rust stable
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
toolchain: stable
22+
- name: install webkit2gtk (ubuntu only)
23+
if: matrix.platform == 'ubuntu-latest'
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get install -y webkit2gtk-4.0
27+
- name: install app dependencies and build it
28+
run: yarn && yarn build && yarn build:vscode && yarn release
29+
- uses: tauri-apps/tauri-action@v0
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
34+
releaseName: "App v__VERSION__"
35+
body: "See the assets to download this version and install."
36+
draft: true
37+
prerelease: false

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"main": "out/node/entry.js",
3737
"devDependencies": {
3838
"@schemastore/package": "^0.0.6",
39+
"@tauri-apps/cli": "^1.0.0-beta.5",
3940
"@types/body-parser": "^1.19.0",
4041
"@types/browserify": "^12.0.36",
4142
"@types/compression": "^1.7.0",

src-tauri/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
/target/
4+
WixTools

0 commit comments

Comments
 (0)