Skip to content

Commit

Permalink
osx
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchinchilla committed Jun 26, 2024
1 parent 54675d6 commit 9ae5743
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions binaries/geph5-client-gui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ name = "geph5-client-gui"
version = "0.1.0"
edition = "2021"
build = "build.rs"
description="GUI client for Geph"

[package.metadata.bundle]
name = "Geph5"
identifier = "io.geph.geph5"
icon = ["icon.png"]

[dependencies]
anyhow = "1.0.86"
Expand Down
4 changes: 3 additions & 1 deletion binaries/geph5-client-gui/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ use tracing_subscriber::{layer::SubscriberExt as _, util::SubscriberInitExt, Env
// 0123456789

fn main() {
let instance = SingleInstance::new("geph5-client-gui").unwrap();
let instance = SingleInstance::new("geph5-client-gui");
if let Ok(instance) = instance {
if !instance.is_single() {
native_dialog::MessageDialog::new()
.set_type(MessageType::Error)
Expand All @@ -38,6 +39,7 @@ fn main() {
.unwrap();
std::process::exit(-1)
}
}

tracing_subscriber::registry()
.with(
Expand Down

0 comments on commit 9ae5743

Please sign in to comment.