Create macOS bundle for simplified installation #58
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				BlockStorage/repertory/pipeline/head This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	BlockStorage/repertory/pipeline/head This commit looks good
				
			This commit is contained in:
		| @@ -13,7 +13,7 @@ | ||||
|   <string>@PROJECT_MAJOR_VERSION@.@PROJECT_MINOR_VERSION@.@PROJECT_REVISION_VERSION@-@PROJECT_RELEASE_ITER@_@PROJECT_GIT_REV@</string> | ||||
|   <key>CFBundlePackageType</key> | ||||
|   <string>APPL</string> | ||||
|   <key>LSBackgroundOnly</key> | ||||
|   <key>LSUIElement</key> | ||||
|   <true/> | ||||
| </dict> | ||||
| </plist> | ||||
|   | ||||
| @@ -88,7 +88,26 @@ auto main(int argc, char **argv) -> int { | ||||
| #endif // defined(__APPLE__) | ||||
|         ret = static_cast<std::int32_t>(exit_code::ui_failed); | ||||
|       } 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); | ||||
| #endif | ||||
|       } | ||||
|     } | ||||
|   } else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user