Skip to content

Commit

Permalink
fix: build windows
Browse files Browse the repository at this point in the history
  • Loading branch information
vincehi committed Jun 13, 2024
1 parent 02feca5 commit f7aa19b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ jobs:
args: "--target aarch64-apple-darwin"
- platform: "macos-latest" # for Intel based macs.
args: "--target x86_64-apple-darwin"
- platform: "ubuntu-20.04" # for Tauri v1 you could replace this with ubuntu-20.04.
args: ""
# - platform: "ubuntu-20.04" # for Tauri v1 you could replace this with ubuntu-20.04.
# args: ""
- platform: "windows-latest"
args: ""
runs-on: ${{ matrix.platform }}
Expand Down
5 changes: 2 additions & 3 deletions src-tauri/src/cmds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use walkdir::WalkDir;
use crate::prisma_main_client::{directory, file};
use crate::utils::app::AppState;
use crate::utils::audio_utils::get_audio_metadata;

#[derive(Clone, serde::Serialize)]
struct Payload {
processing: bool,
Expand Down Expand Up @@ -179,9 +178,9 @@ pub async fn open_in_finder(path: String) {
}

#[cfg(target_os = "linux")]
use std::fs::metadata;
use std::path::PathBuf;
{
use std::fs::metadata;
use std::path::PathBuf;
if path.contains(",") {
// see https://gitlab.freedesktop.org/dbus/dbus/-/issues/76
let new_path = match metadata(&path).unwrap().is_dir() {
Expand Down
1 change: 1 addition & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(
all(not(debug_assertions), target_os = "windows"),
windows_subsystem = "windows"
Expand Down

0 comments on commit f7aa19b

Please sign in to comment.