Skip to content

Commit 9ce7024

Browse files
committed
* New name for the application
* multiplatform
1 parent cdb6a3f commit 9ce7024

File tree

7 files changed

+26
-19
lines changed

7 files changed

+26
-19
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/target
2-
Cargo.lock
2+
Cargo.lock
3+
/.idea

Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
[package]
2-
name = "winrsync"
2+
name = "rbackup"
33
version = "0.2.0"
44
edition = "2021"
55

66
[dependencies]
7-
walkdir = "2"
8-
clap = { version = "4", features = ["derive"] }
9-
serde = { version = "1", features = ["derive"] }
10-
serde_json = "1"
11-
sys-locale = "0.3"
12-
rayon = "1.10"
13-
indicatif = "0.17"
14-
chrono = "0.4"
7+
walkdir = "2.5.0"
8+
clap = { version = "4.5.40", features = ["derive"] }
9+
serde = { version = "1.0.219", features = ["derive"] }
10+
serde_json = "1.0.140"
11+
sys-locale = "0.3.2"
12+
rayon = "1.10.0"
13+
indicatif = "0.17.11"
14+
chrono = "0.4.41"
1515

1616
[build-dependencies]
17-
winres = "0.1"
17+
winres = "0.1.12"
1818

1919
[package.metadata.winres]
20-
manifest = "winrsync.manifest"
20+
manifest = "rbackup.manifest"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# WinRSync
1+
# rBackup

assets/translations.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"en": {
3-
"appname": "WinRSync",
3+
"appname": "rBackup",
44
"starting_backup": "Backup from:",
55
"to": "to:",
66
"copying_file": "Copying:",
@@ -11,7 +11,7 @@
1111
"files_skipped": "Files skipped or failed: {}"
1212
},
1313
"it": {
14-
"appname": "WinRSync",
14+
"appname": "rBackup",
1515
"starting_backup": "Backup da:",
1616
"to": "a:",
1717
"copying_file": "Copio:",

build.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
#[cfg(target_os = "windows")]
12
fn main() {
2-
winres::WindowsResource::new().compile().unwrap();
3+
embed_resource::compile("rbackup.rc").unwrap();
4+
}
5+
6+
#[cfg(not(target_os = "windows"))]
7+
fn main() {
8+
// No resource compilation needed on non-Windows platforms
39
}
File renamed without changes.

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ use utils::{copy_incremental, load_translations, log_output, Logger};
1111
#[command(
1212
author = "Alessandro Maestri",
1313
version,
14-
about = "Incremental directory backup for Windows",
15-
long_about = "winrsync: a Rust-based backup tool that copies only new or modified files from a source to a destination directory. Supports multithreading, language localization, logging, and progress display.",
14+
about = "rBackup - New incremental directory backup",
15+
long_about = "rbakcup: a Rust-based backup tool that copies only new or modified files from a source to a destination directory. Supports multithreading, language localization, logging, and progress display.",
1616
arg_required_else_help = true
1717
)]
1818
struct Args {
@@ -48,7 +48,7 @@ fn main() -> io::Result<()> {
4848

4949
if args.source.is_none() || args.destination.is_none() {
5050
eprintln!("Error: missing source or destination directory.\n");
51-
Args::command().print_help().unwrap();
51+
Args::command().print_help()?;
5252
println!();
5353
std::process::exit(1);
5454
}

0 commit comments

Comments
 (0)