mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-28 20:47:49 +01:00
macos bundle
This commit is contained in:
@@ -13,4 +13,10 @@ add_executable(launcher
|
||||
)
|
||||
|
||||
target_link_libraries(launcher ${wxWidgets_LIBRARIES})
|
||||
target_link_libraries(launcher backend utils)
|
||||
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"
|
||||
)
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user