Skip to content

Commit

Permalink
release: v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
P-Asta committed May 21, 2024
1 parent 0c17191 commit 62e4912
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@ fn discord_status(name: String) {
#[tauri::command]
#[cfg(not(target_os = "windows"))]
fn custom_css() -> String {
#[allow(deprecated)]
let home = std::env::home_dir().unwrap().to_str().unwrap().to_owned();

std::fs::read_to_string(format!("{home}/.config/ny-music/theme.css")).unwrap_or_else(|e| {
std::fs::read_to_string(format!("{home}/.config/ny-music/theme.css")).unwrap_or_else(|_| {
std::fs::create_dir(format!("{home}/.config")).unwrap_or_else(|_| {});
std::fs::create_dir(format!("{home}/.config/ny-music")).unwrap_or_else(|_| {});

Expand All @@ -125,9 +126,10 @@ fn custom_css() -> String {
#[tauri::command]
#[cfg(target_os = "windows")]
fn custom_css() -> String {
#[allow(deprecated)]
let home = std::env::home_dir().unwrap().to_str().unwrap().to_owned();

std::fs::read_to_string(format!("{home}/.config/ny-music/theme.css")).unwrap_or_else(|e| {
std::fs::read_to_string(format!("{home}/.config/ny-music/theme.css")).unwrap_or_else(|_| {
std::fs::create_dir(format!("{home}/.config")).unwrap_or_else(|_| {});
std::fs::create_dir(format!("{home}/.config/ny-music")).unwrap_or_else(|_| {});

Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"package": {
"productName": "ny-music",
"version": "1.3.0"
"version": "1.3.1"
},
"tauri": {
"allowlist": {
Expand Down

0 comments on commit 62e4912

Please sign in to comment.