Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
fbb4c91
Create SBOM files (#593)
j-chmielewski Sep 26, 2025
7f2f5cf
CI: scan code with trivy (#594)
j-chmielewski Sep 26, 2025
bead788
Periodic sbom regeneration (#599)
j-chmielewski Sep 29, 2025
338e83b
only generate sbom for full releases
j-chmielewski Sep 30, 2025
10a4d71
Merge pull request #600 from DefGuard/sbom-into-main
j-chmielewski Sep 30, 2025
30d2eaf
Merge branch 'main' into release/1.5.2
wojcik91 Oct 2, 2025
218135d
bump version to 1.5.2
wojcik91 Oct 3, 2025
59d6133
Merge pull request #605 from DefGuard/release/1.5.2
wojcik91 Oct 3, 2025
b3c1464
Fix pnpm build (#606)
moubctez Oct 3, 2025
a22afa9
Build Ubuntu 22/Debian 12 package (#611)
jakub-tldr Oct 7, 2025
8706cea
Setup ctrl+q keyboard shortcut (#618)
j-chmielewski Oct 13, 2025
fa11096
undo unnecessary deletion (#620)
jakub-tldr Oct 14, 2025
694894e
workflow test
jakub-tldr Oct 14, 2025
1e22971
add ruby
jakub-tldr Oct 14, 2025
c3c5917
fix ruby
jakub-tldr Oct 14, 2025
b693454
fix ruby 2
jakub-tldr Oct 14, 2025
5d0f435
sign apt repository workflow
jakub-tldr Oct 14, 2025
385fa67
typo fix
jakub-tldr Oct 14, 2025
08c11f5
change flag in deb-s3
jakub-tldr Oct 14, 2025
0d552ec
test apt signing
jakub-tldr Oct 14, 2025
53dbf8c
test apt signing 2
jakub-tldr Oct 14, 2025
b010bff
fix apt signing
jakub-tldr Oct 14, 2025
243afa2
change acl on files
jakub-tldr Oct 14, 2025
e42608b
add ubuntu 22.04 deb
jakub-tldr Oct 14, 2025
07359e9
fix workflow
jakub-tldr Oct 14, 2025
8b3ebe2
Add apt signing for bookworm
jakub-tldr Oct 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
988 changes: 567 additions & 421 deletions .github/workflows/release.yaml

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion .github/workflows/sbom-regenerate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
RELEASES_JSON=$(gh api repos/${{ github.repository }}/releases \
--jq '[.[] | select(.draft == false) | {tagName: .tag_name, uploadUrl: .upload_url}][:1]')
--jq '[.[]
| select(.draft == false and (.tag_name | test("^v[0-9]+\\.[0-9]+\\.[0-9]+$")))
| {tagName: .tag_name, uploadUrl: .upload_url}][:1]')
echo "releases=$RELEASES_JSON" >> $GITHUB_OUTPUT
regenerate-for-release:
name: Regenerate SBOM for release
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ Built packages are available after in `src-tauri/target/release/bundle`.

Remove `default-run` line from `[package]` section in `Cargo.toml` to build the project.

# Built and sponsored by

<p align="center">
<a href="https://teonite.com/services/rust/" target="_blank"><img src="https://drive.google.com/uc?export=view&id=1z0fxSsZztoaeVWxHw2MbPbuOHMe3OsqN" alt="build by teonite" /></a>
</p>

# Legal

WireGuard® is [registered trademarks](https://www.wireguard.com/trademark-policy/) of Jason A. Donenfeld.
Expand Down
2 changes: 1 addition & 1 deletion nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
makeDesktopItem,
}: let
pname = "defguard-client";
version = "1.5.1"; # TODO: Get this from Cargo.toml or git
version = "1.5.2"; # TODO: Get this from Cargo.toml or git

desktopItem = makeDesktopItem {
name = pname;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "defguard-client",
"private": false,
"version": "1.5.1",
"version": "1.5.2",
"type": "module",
"scripts": {
"dev": "npm-run-all --parallel vite typesafe-i18n",
Expand Down Expand Up @@ -132,4 +132,4 @@
"volta": {
"node": "20.5.1"
}
}
}
54 changes: 44 additions & 10 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ edition = "2021"
homepage = "https://github.com/DefGuard/client"
license-file = "../LICENSE.md"
rust-version = "1.80"
version = "1.5.1"
version = "1.5.2"

[package]
name = "defguard-client"
Expand Down Expand Up @@ -110,6 +110,7 @@ x25519-dalek = { version = "2", features = [
"serde",
"static_secrets",
] }
tauri-plugin-global-shortcut = "2.3.0"

[target.'cfg(unix)'.dependencies]
hyper-util = "0.1"
Expand Down
15 changes: 15 additions & 0 deletions src-tauri/src/bin/defguard-client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ use log::{Level, LevelFilter};
#[cfg(target_os = "macos")]
use tauri::{process, Env};
use tauri::{AppHandle, Builder, Manager, RunEvent, WindowEvent};
use tauri_plugin_global_shortcut::{Code, GlobalShortcutExt, Modifiers, Shortcut, ShortcutState};
use tauri_plugin_log::{Target, TargetKind};

#[macro_use]
Expand Down Expand Up @@ -263,6 +264,20 @@ fn main() {
.build(),
)?;

// Setup ctrl-q keyboard shortcut
let ctrl_q_shortcut = Shortcut::new(Some(Modifiers::CONTROL), Code::KeyQ);
app_handle.plugin(
tauri_plugin_global_shortcut::Builder::new()
.with_handler(move |app, shortcut, event| {
if shortcut == &ctrl_q_shortcut && event.state() == ShortcutState::Pressed {
info!("Ctrl-Q pressed, closing active connections and exiting");
app.exit(0);
}
})
.build(),
)?;
app.global_shortcut().register(ctrl_q_shortcut)?;

let state = AppState::new(config);
app.manage(state);

Expand Down
4 changes: 2 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"productName": "defguard-client",
"mainBinaryName": "defguard-client",
"identifier": "net.defguard",
"version": "1.5.1",
"version": "1.5.2",
"app": {
"security": {
"capabilities": [
Expand Down Expand Up @@ -107,4 +107,4 @@
}
}
}
}
}