Skip to content

Commit 4ab90f0

Browse files
feat(updater): refactor and improvements (#431)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Nogueira <lucas@tauri.app>
1 parent 84133b5 commit 4ab90f0

18 files changed

Lines changed: 1229 additions & 2726 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"updater": minor
3+
"updater-js": minor
4+
---
5+
6+
The updater plugin is recieving a few changes to improve consistency and ergonomics of the Rust and JS APIs
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright 2019-2023 Tauri Programme within The Commons Conservancy
2+
# SPDX-License-Identifier: Apache-2.0
3+
# SPDX-License-Identifier: MIT
4+
5+
name: integration tests
6+
7+
on:
8+
push:
9+
branches:
10+
- v1
11+
- v2
12+
paths:
13+
- ".github/workflows/integration-tests.yml"
14+
- "plugins/updater/src/**"
15+
pull_request:
16+
branches:
17+
- v1
18+
- v2
19+
paths:
20+
- ".github/workflows/integration-tests.yml"
21+
- "plugins/updater/src/**"
22+
23+
jobs:
24+
run-integration-tests:
25+
runs-on: ${{ matrix.platform }}
26+
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
platform: [ubuntu-latest, macos-latest, windows-latest]
31+
32+
steps:
33+
- uses: actions/checkout@v2
34+
with:
35+
fetch-depth: 0
36+
37+
- name: install stable
38+
uses: actions-rs/toolchain@v1
39+
with:
40+
toolchain: stable
41+
42+
- name: install Linux dependencies
43+
if: matrix.platform == 'ubuntu-latest'
44+
run: |
45+
sudo apt-get update
46+
sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev libfuse2
47+
48+
- uses: Swatinem/rust-cache@v2
49+
50+
- name: install Tauri CLI
51+
run: cargo install tauri-cli --git https://github.com/tauri-apps/tauri --branch dev
52+
53+
- name: run integration tests
54+
run: cargo test --test '*' -- --ignored

.github/workflows/test-rust.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ jobs:
193193
working-directory: examples/api
194194
run: mkdir dist
195195

196+
- name: Downgrade crates with MSRV conflict
197+
# The --precise flag can only be used once per invocation.
198+
run: |
199+
cargo update -p time@0.3.24 --precise 0.3.23
200+
196201
- name: test ${{ matrix.package }}
197202
if: matrix.package != 'tauri-plugin-sql'
198203
uses: actions-rs/cargo@v1

Cargo.lock

Lines changed: 86 additions & 78 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/updater/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,14 @@ percent-encoding = "2"
2323
semver = { version = "1", features = [ "serde" ] }
2424
futures-util = "0.3"
2525
tempfile = "3"
26-
flate2 = "1"
26+
zip = "0.6"
2727
tar = "0.4"
28-
ignore = "0.4"
2928

3029
[target."cfg(target_os = \"windows\")".dependencies]
3130
zip = { version = "0.6", default-features = false }
3231

3332
[dev-dependencies]
3433
mockito = "0.31"
35-
tokio-test = "0.4.2"
3634

3735
[features]
3836
native-tls = [ "reqwest/native-tls" ]

0 commit comments

Comments
 (0)