Create macOS bundle for simplified installation #58
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2025-08-07 21:44:16 -05:00
parent c7e27c0080
commit b0c9d55658
2 changed files with 20 additions and 1 deletions

View File

@@ -13,7 +13,7 @@
<string>@PROJECT_MAJOR_VERSION@.@PROJECT_MINOR_VERSION@.@PROJECT_REVISION_VERSION@-@PROJECT_RELEASE_ITER@_@PROJECT_GIT_REV@</string> <string>@PROJECT_MAJOR_VERSION@.@PROJECT_MINOR_VERSION@.@PROJECT_REVISION_VERSION@-@PROJECT_RELEASE_ITER@_@PROJECT_GIT_REV@</string>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>LSBackgroundOnly</key> <key>LSUIElement</key>
<true/> <true/>
</dict> </dict>
</plist> </plist>

View File

@@ -88,7 +88,26 @@ auto main(int argc, char **argv) -> int {
#endif // defined(__APPLE__) #endif // defined(__APPLE__)
ret = static_cast<std::int32_t>(exit_code::ui_failed); ret = static_cast<std::int32_t>(exit_code::ui_failed);
} else { } else {
#if defined(__APPLE__)
project_cleanup();
ret = utils::create_daemon([&]() -> int {
if (not repertory::project_initialize()) {
repertory::project_cleanup();
return -1;
}
if (not utils::file::change_to_process_directory()) {
return -1;
}
ui::handlers handlers(&config, &server);
project_cleanup();
return 0;
});
#else
ui::handlers handlers(&config, &server); ui::handlers handlers(&config, &server);
#endif
} }
} }
} else { } else {