[READ-ONLY] Mirror of https://github.com/probablykasper/time-machine-inspector. Time Machine backup size inspector app
backup macos tauri time-machine
0

Configure Feed

Select the types of activity you want to include in your feed.

Fix CSP issue

Kasper (May 17, 2022, 5:39 AM +0200) 776d9adf 9cd87c06

+11 -1
+3
CHANGELOG.md
··· 1 1 # Changelog 2 2 3 + ## Next 4 + - Fix app not working due to Content Security Policy issue 5 + 3 6 ## 1.1.3 - 2022 May 17 4 7 - Slight design improvements 5 8 - Richer error message
+2
src-tauri/src/cmd.rs
··· 86 86 87 87 full_disk_access(w).await?; 88 88 let dir_map = listbackups::listbackups()?; 89 + println!("Listed backups {:#?}", dir_map); 89 90 state.lock()?.replace(dir_map.clone()); 91 + println!("Replaced state"); 90 92 91 93 Ok(dir_map) 92 94 }
+2
src-tauri/src/compare.rs
··· 125 125 pub fn compare(old: &str, new: &str) -> Result<DirMap<LoadedBackupItem>, String> { 126 126 let mut anchor = Instant::now(); 127 127 128 + println!("tmutil compare -X -s '{}' '{}'", old, new); 129 + 128 130 let mut cmd = Command::new("tmutil") 129 131 .arg("compare") 130 132 .arg("-X")
+3
src-tauri/src/listbackups.rs
··· 9 9 // .to_string(), 10 10 // )); 11 11 12 + println!("tmutil listbackups"); 13 + 12 14 let output = Command::new("tmutil") 13 15 .arg("listbackups") 14 16 .output() 15 17 .expect("Error calling command"); 16 18 check_cmd_success(&output.status, output.stderr.clone())?; 19 + println!("Success listing backups"); 17 20 18 21 let output_str = parse_output(output.stdout)?; 19 22
+1 -1
src-tauri/tauri.conf.json
··· 57 57 } 58 58 }, 59 59 "security": { 60 - "csp": "default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'" 60 + "csp": null 61 61 } 62 62 } 63 63 }