diff --git a/launcher/gui/CMakeLists.txt b/launcher/gui/CMakeLists.txt index 4461bea9..fb763ba5 100644 --- a/launcher/gui/CMakeLists.txt +++ b/launcher/gui/CMakeLists.txt @@ -13,4 +13,10 @@ add_executable(launcher ) target_link_libraries(launcher ${wxWidgets_LIBRARIES}) -target_link_libraries(launcher backend utils) \ No newline at end of file +target_link_libraries(launcher backend utils) + +set_target_properties(launcher PROPERTIES + MACOSX_BUNDLE TRUE + MACOSX_BUNDLE_GUI_IDENTIFIER "com.usatiuk.dhfs.launcher" + MACOSX_BUNDLE_BUNDLE_NAME "DHFS Launcher" +) \ No newline at end of file diff --git a/launcher/gui/src/LauncherAppMainFrame.cpp b/launcher/gui/src/LauncherAppMainFrame.cpp index c0f821b4..32a4b575 100644 --- a/launcher/gui/src/LauncherAppMainFrame.cpp +++ b/launcher/gui/src/LauncherAppMainFrame.cpp @@ -13,7 +13,10 @@ wxDEFINE_EVENT(DHFS_STATE_CHANGE_EVENT, wxCommandEvent); std::string getBundlePath() { if (wxGetenv("DHFS_BUNDLE_PATH") == NULL) return std::filesystem::path(wxStandardPaths::Get().GetExecutablePath().ToStdString()) - .parent_path().parent_path().string(); +#ifndef __APPLE__ + .parent_path() +#endif + .parent_path().string(); return wxGetenv("DHFS_BUNDLE_PATH"); }