diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 14fc8b5..a29afb8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,12 +1,13 @@ name: Testing build on: - pull_request: - workflow_dispatch: + issue_comment: + types: + - created jobs: build: - if: contains(github.event.pull_request.labels.*.name, 'build') || github.event_name == 'workflow_dispatch' + if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/build') }} strategy: fail-fast: false diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 1e7677d..dd8d6f1 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -2027,6 +2027,12 @@ version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" +[[package]] +name = "minisign-verify" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "933dca44d65cdd53b355d0b73d380a2ff5da71f87f036053188bf1eab6a19881" + [[package]] name = "miniz_oxide" version = "0.7.1" @@ -3521,6 +3527,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9bfe673cf125ef364d6f56b15e8ce7537d9ca7e4dae1cf6fbbdeed2e024db3d9" dependencies = [ "anyhow", + "base64 0.21.5", "bytes", "cocoa 0.24.1", "dirs-next", @@ -3534,6 +3541,7 @@ dependencies = [ "heck 0.4.1", "http", "ignore", + "minisign-verify", "notify-rust", "objc", "once_cell", @@ -3561,12 +3569,14 @@ dependencies = [ "tauri-utils", "tempfile", "thiserror", + "time", "tokio", "url", "uuid", "webkit2gtk", "webview2-com", "windows 0.39.0", + "zip", ] [[package]] @@ -4892,6 +4902,17 @@ dependencies = [ "zvariant", ] +[[package]] +name = "zip" +version = "0.6.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "760394e246e4c28189f19d488c058bf16f564016aefac5d32bb1f3b51d5e9261" +dependencies = [ + "byteorder", + "crc32fast", + "crossbeam-utils", +] + [[package]] name = "zvariant" version = "3.15.0" diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index d3c35a9..f1393f4 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -13,7 +13,7 @@ edition = "2021" tauri-build = { version = "1.5", features = [] } [dependencies] -tauri = { version = "1.5", features = [ "system-tray", "api-all", "global-shortcut", "macos-private-api"] } +tauri = { version = "1.5", features = [ "updater", "system-tray", "api-all", "global-shortcut", "macos-private-api"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" tokio = { version = "1.33.0", features = ["macros"] }