Skip to content

Commit 6f14921

Browse files
committed
feat: update Flatpak metadata, custom theme, and backend network/process utilities
1 parent f4b44da commit 6f14921

6 files changed

Lines changed: 26 additions & 23 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI (Lint & Compile Check)
22

33
on:
44
push:
5-
branches: [ master, dev ]
5+
branches: [master, dev]
66
pull_request:
7-
branches: [ master, dev ]
7+
branches: [master, dev]
88

99
jobs:
1010
validate:
@@ -14,6 +14,14 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: [ubuntu-22.04, windows-latest, macos-latest]
17+
env:
18+
# Skip the rclone/Go build + link check in CI. The build.rs will emit
19+
# cargo:warning=... instead of panicking when Go or the rclone source
20+
# tree isn't available. Clippy still type-checks the FFI module — it
21+
# just doesn't actually link librclone.a. Release builds (which DO
22+
# need rclone) should run in a separate workflow with Go + rclone
23+
# checked out, NOT set this env var.
24+
LIBRCLONE_SKIP_LINK_CHECK: '1'
1725

1826
steps:
1927
- name: Checkout Code
@@ -35,7 +43,7 @@ jobs:
3543
- name: Rust Cache
3644
uses: swatinem/rust-cache@v2
3745
with:
38-
workspaces: "./src-tauri -> target"
46+
workspaces: './src-tauri -> target'
3947

4048
# 4. Install OS-specific system libraries (Linux only)
4149
- name: Install Linux dependencies

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

7-
## [v0.2.9] - 2026-07-10
7+
## [v0.2.9] - 2026-07-11
88

99
### Added
1010
- **Context Menu Integration**: Added native context menu file manager integration support across Windows, Linux, and macOS. Allows users to register paths from the File Browser to right-click files/folders in the system file manager and upload them directly to a remote. #80 (Check the wiki: https://hakanismail.info/zarestia/rclone-manager/docs/integrations)

src-tauri/linux/flatpak.metainfo.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
</screenshot>
9898
</screenshots>
9999
<releases>
100-
<release version="0.2.9" date="2026-07-10">
100+
<release version="0.2.9" date="2026-07-11">
101101
<description>
102102
<p>Added</p>
103103
<ul>

src-tauri/src/utils/io/network.rs

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
use std::collections::HashMap;
2-
3-
use log::{error, info};
42
use tauri::{AppHandle, Emitter, command};
53

64
use crate::utils::types::events::NETWORK_STATUS_CHANGED;
@@ -115,7 +113,7 @@ pub fn is_metered() -> bool {
115113
let connection = match Connection::system() {
116114
Ok(c) => c,
117115
Err(e) => {
118-
error!("Failed to connect to D-Bus: {e}");
116+
log::error!("Failed to connect to D-Bus: {e}");
119117
return false;
120118
}
121119
};
@@ -128,15 +126,15 @@ pub fn is_metered() -> bool {
128126
) {
129127
Ok(p) => p,
130128
Err(e) => {
131-
error!("NetworkManager D-Bus proxy error: {e}");
129+
log::error!("NetworkManager D-Bus proxy error: {e}");
132130
return false;
133131
}
134132
};
135133

136134
match proxy.get_property::<u32>("Metered") {
137135
Ok(status) => matches!(status, 1 | 3),
138136
Err(e) => {
139-
error!("Failed to read Metered property: {e}");
137+
log::error!("Failed to read Metered property: {e}");
140138
false
141139
}
142140
}
@@ -150,7 +148,7 @@ pub async fn monitor_network_changes(app_handle: AppHandle) {
150148
let connection = match Connection::system().await {
151149
Ok(c) => c,
152150
Err(e) => {
153-
error!("Failed to connect to D-Bus: {e}");
151+
log::error!("Failed to connect to D-Bus: {e}");
154152
return;
155153
}
156154
};
@@ -165,13 +163,13 @@ pub async fn monitor_network_changes(app_handle: AppHandle) {
165163
{
166164
Ok(p) => p,
167165
Err(e) => {
168-
error!("Failed to create NetworkManager D-Bus proxy: {e}");
166+
log::error!("Failed to create NetworkManager D-Bus proxy: {e}");
169167
return;
170168
}
171169
};
172170

173171
let mut metered_changed_stream = proxy.receive_property_changed::<u32>("Metered").await;
174-
info!("Listening for NetworkManager 'Metered' property changes...");
172+
log::info!("Listening for NetworkManager 'Metered' property changes...");
175173

176174
while let Some(_metered_status) = metered_changed_stream.next().await {
177175
log::debug!("'Metered' property changed!");
@@ -180,15 +178,15 @@ pub async fn monitor_network_changes(app_handle: AppHandle) {
180178
};
181179

182180
if let Err(e) = app_handle.emit(NETWORK_STATUS_CHANGED, payload) {
183-
error!("Failed to emit network status change event: {e}");
181+
log::error!("Failed to emit network status change event: {e}");
184182
}
185183
}
186184
}
187185

188186
#[cfg(all(target_os = "linux", feature = "container"))]
189187
#[must_use]
190188
pub fn is_metered() -> bool {
191-
info!(
189+
log::info!(
192190
"is_metered: container mode does not support metered network detection, returning false."
193191
);
194192
false
@@ -198,15 +196,15 @@ pub fn is_metered() -> bool {
198196
pub async fn monitor_network_changes(app_handle: AppHandle) {
199197
let payload = NetworkStatusPayload { is_metered: false };
200198
if let Err(e) = app_handle.emit(NETWORK_STATUS_CHANGED, payload) {
201-
error!("Failed to emit network status change event: {e}");
199+
log::error!("Failed to emit network status change event: {e}");
202200
}
203201
}
204202

205203
#[cfg(target_os = "macos")]
206204
pub fn is_metered() -> bool {
207205
// macOS does not support metered network detection.
208206
// Always return false.
209-
info!("is_metered: macOS does not support metered network detection, returning false.");
207+
log::info!("is_metered: macOS does not support metered network detection, returning false.");
210208
false
211209
}
212210

@@ -239,13 +237,13 @@ pub async fn monitor_network_changes(app_handle: AppHandle) {
239237
is_metered: is_metered(),
240238
};
241239
if let Err(e) = app_handle.emit(NETWORK_STATUS_CHANGED, payload) {
242-
error!("Failed to emit network status change event: {e}");
240+
log::error!("Failed to emit network status change event: {e}");
243241
}
244242
Ok(())
245243
});
246244

247245
if let Err(e) = NetworkInformation::NetworkStatusChanged(&handler) {
248-
error!("Failed to register network status changed handler: {e}");
246+
log::error!("Failed to register network status changed handler: {e}");
249247
}
250248
}
251249

src-tauri/src/utils/process/command.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ impl Command {
2424

2525
#[cfg(windows)]
2626
{
27-
use std::os::windows::process::CommandExt;
2827
cmd.creation_flags(CREATE_NO_WINDOW);
2928
}
3029

src/custom-theme.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -955,11 +955,9 @@ button {
955955
align-items: center;
956956
justify-content: center;
957957

958-
.mat-button-wrapper,
959-
> span:not(.mat-mdc-button-persistent-ripple):not(.mat-ripple-element) {
958+
span {
960959
display: flex;
961960
flex-direction: row;
962-
align-items: center;
963961
gap: var(--space-xs);
964962
}
965963

0 commit comments

Comments
 (0)