File tree Expand file tree Collapse file tree 10 files changed +150
-71
lines changed Expand file tree Collapse file tree 10 files changed +150
-71
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*'
7
+ workflow_dispatch :
8
+
9
+ concurrency :
10
+ group : release-${{ github.ref }}
11
+ cancel-in-progress : true
12
+
13
+ jobs :
14
+ publish :
15
+ strategy :
16
+ fail-fast : false
17
+ matrix :
18
+ platform : [macos-latest, ubuntu-latest, windows-latest]
19
+
20
+ runs-on : ${{ matrix.platform }}
21
+ steps :
22
+ - uses : actions/checkout@v3
23
+
24
+ with :
25
+ version : 7
26
+ run_install : true
27
+
28
+ - name : Use Node.js
29
+ uses : actions/setup-node@v3
30
+ with :
31
+ node-version : ' 16'
32
+ cache : ' pnpm'
33
+
34
+ - name : install Rust stable
35
+ uses : actions-rs/toolchain@v1
36
+ with :
37
+ toolchain : stable
38
+
39
+ - name : install dependencies (ubuntu only)
40
+ if : matrix.platform == 'ubuntu-latest'
41
+ run : |
42
+ sudo apt-get update
43
+ sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
44
+
45
+ - name : Build Vite + Tauri
46
+ run : pnpm build
47
+
48
+ - name : Create release
49
+ uses : tauri-apps/tauri-action@v0
50
+ env :
51
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52
+ with :
53
+ tagName : v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
54
+ releaseName : ' v__VERSION__'
55
+ releaseBody : ' See the assets to download and install this version.'
56
+ releaseDraft : true
57
+ prerelease : false
Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ paths :
8
+ - ' src/**'
9
+ - ' src-tauri/**'
10
+ - ' tests/**'
11
+ - ' pnpm-lock.yaml'
12
+ - ' .github/workflows/test.yml'
13
+ workflow_dispatch :
14
+
15
+ concurrency :
16
+ group : build-${{ github.ref }}
17
+ cancel-in-progress : true
18
+
19
+ jobs :
20
+ test-build :
21
+ strategy :
22
+ fail-fast : true
23
+ matrix :
24
+ platform : [macos-latest, ubuntu-latest, windows-latest]
25
+
26
+ runs-on : ${{ matrix.platform }}
27
+ steps :
28
+ - uses : actions/checkout@v3
29
+
30
+ - name : Install pnpm + deps
31
+
32
+ with :
33
+ version : 7
34
+ run_install : true
35
+
36
+ - name : Use Node.js
37
+ uses : actions/setup-node@v3
38
+ with :
39
+ node-version : 16
40
+ cache : ' pnpm'
41
+
42
+ - name : Install Rust stable
43
+ uses : actions-rs/toolchain@v1
44
+ with :
45
+ toolchain : stable
46
+
47
+ - name : Install Linux dependencies
48
+ if : matrix.platform == 'ubuntu-latest'
49
+ run : |
50
+ sudo apt-get update
51
+ sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
52
+
53
+ - name : Build Vite + Tauri
54
+ run : pnpm build
Original file line number Diff line number Diff line change 28
28
29
29
steps :
30
30
- uses : actions/checkout@v3
31
-
32
- - name : Cache pnpm modules
33
- uses : actions/cache@v3
34
- with :
35
- path : /home/runner/.local/share/pnpm/store
36
- key : ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
37
- restore-keys : |
38
- ${{ runner.os }}-
39
31
40
32
with :
41
- version : 7.0.0-rc.8
33
+ version : 7
42
34
run_install : true
43
35
44
36
- name : Use Node.js
49
41
50
42
- name : Run unit tests
51
43
run : pnpm test
52
-
53
- build :
54
- needs : [test]
55
- if : ${{ github.event.pull_request.merged }}
56
- strategy :
57
- fail-fast : false
58
- matrix :
59
- platform : [macos-latest, ubuntu-latest, windows-latest]
60
-
61
- runs-on : ${{ matrix.platform }}
62
- steps :
63
- - uses : actions/checkout@v3
64
-
65
- - name : Cache pnpm modules
66
- uses : actions/cache@v3
67
- with :
68
- path : /home/runner/.local/share/pnpm/store
69
- key : ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
70
- restore-keys : |
71
- ${{ runner.os }}-
72
-
73
-
74
- with :
75
- version : 7.0.0-rc.8
76
- run_install : true
77
-
78
- - name : Use Node.js
79
- uses : actions/setup-node@v3
80
- with :
81
- node-version : ' 16'
82
- cache : ' pnpm'
83
-
84
- - name : Install Rust stable
85
- uses : actions-rs/toolchain@v1
86
- with :
87
- toolchain : stable
88
-
89
- - name : Install Linux dependencies
90
- if : matrix.platform == 'ubuntu-latest'
91
- run : |
92
- sudo apt-get update
93
- sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf libayatana-appindicator3-dev
94
-
95
- - name : Build Vite + Tauri
96
- run : pnpm build
97
-
98
- - uses : tauri-apps/tauri-action@v0
99
- env :
100
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 0.1.0 (2022-06-16)
4
+
5
+ Hello Tauri 1.0!
6
+
7
+ - Feat: Added a separate release workflow.
8
+ - Refactor: converted menu to use ` Menu::os_default ` . Thank You to @JonasKruckenberg ! for the tip!
9
+ - Docs: added more docs on usage, fixed prerequisites link.
10
+ - Chore: Bumped all Vite + Tauri deps.
11
+
3
12
## 0.0.1 (2022-04-27)
4
13
5
14
- Initial version
Original file line number Diff line number Diff line change 23
23
24
24
## Usage
25
25
26
+ ### Development
27
+
26
28
#### Running Tauri + Vite Development Server
27
29
28
30
``` sh
@@ -35,17 +37,30 @@ pnpm dev
35
37
pnpm test
36
38
```
37
39
40
+ #### Upgrading Rust Dependencies
41
+
42
+ You can upgrade your Rust dependencies with the included [ cargo-edit] ( https://github.com/killercup/cargo-edit ) tool. In ` src-tauri/ ` say
43
+
44
+ ``` sh
45
+ cargo upgrade
46
+ ```
47
+
48
+ ### Building and releasing
49
+
38
50
#### Building
39
51
52
+ The project has GitHub Actions set up which will automatically test and build your app with every push and PR. For building manually:
53
+
40
54
``` sh
41
55
pnpm build
42
56
```
43
57
44
- ## Roadmap
58
+ #### Releasing a new version
45
59
46
- - [x] Add basic usability features
47
- - [ ] Build + release with GitHub Actions
48
- - [ ] Add documentation for devtools etc
60
+ 1 . Bump version number (In ` package.json ` , and ` src-tauri/ ` )
61
+ 2 . Run ` pnpm check ` to update ` Cargo.lock `
62
+ 3 . Tag the commit you want to release with ` vX.Y.Z `
63
+ 4 . Github workflow will automatically build a new draft release for this version. Edit the release notes and publish when ready 🎉
49
64
50
65
## Elsewhere
51
66
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " tauri-vite -template" ,
2
+ "name" : " tauri-vue -template" ,
3
3
"private" : true ,
4
- "version" : " 0.0.2 " ,
4
+ "version" : " 0.1.0 " ,
5
5
"scripts" : {
6
6
"dev" : " vite-tauri dev" ,
7
7
"build" : " vite-tauri build" ,
8
8
"vite:dev" : " vite dev" ,
9
9
"vite:build" : " vite build" ,
10
10
"test" : " vitest" ,
11
11
"ts-check" : " vue-tsc --noEmit" ,
12
- "preview" : " vite preview"
12
+ "preview" : " vite preview" ,
13
+ "check" : " cd src-tauri && cargo check"
13
14
},
14
15
"dependencies" : {
15
16
"@tauri-apps/api" : " 1.0.0" ,
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " app"
3
- version = " 0.0.1 "
3
+ version = " 0.1.0 "
4
4
description = " A Tauri App"
5
5
authors = [" Ville Säävuori" ]
6
6
license = " MIT"
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ fn main() {
17
17
tauri:: Builder :: default ( )
18
18
. invoke_handler ( tauri:: generate_handler![ backend_add] )
19
19
. menu (
20
- tauri:: Menu :: os_default ( "Tauri Vite Template" ) . add_submenu ( Submenu :: new (
20
+ tauri:: Menu :: os_default ( "Tauri Vue Template" ) . add_submenu ( Submenu :: new (
21
21
"Help" ,
22
22
Menu :: with_items ( [ CustomMenuItem :: new (
23
23
"Online Documentation" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"package" : {
3
- "productName" : " tauri-vite -template" ,
4
- "version" : " 0.0.1 "
3
+ "productName" : " tauri-vue -template" ,
4
+ "version" : " 0.1.0 "
5
5
},
6
6
"build" : {
7
7
"distDir" : " ../dist" ,
51
51
},
52
52
"windows" : [
53
53
{
54
- "title" : " tauri-vite -template" ,
54
+ "title" : " tauri-vue -template" ,
55
55
"width" : 800 ,
56
56
"height" : 600 ,
57
57
"resizable" : true ,
You can’t perform that action at this time.
0 commit comments