Update README and configuration for macOS support

- Revamped README.md to enhance clarity and detail on features, installation, and system requirements for Archipelago.
- Added macOS-specific configuration in `config.rs` to detect when running from a macOS app bundle, adjusting data directory paths accordingly.
- Introduced a new production build script in `package.json` for optimized deployment of the Neode UI.
This commit is contained in:
Dorian
2026-01-28 11:12:19 +00:00
parent f595af5fa4
commit 7069b20064
13 changed files with 2499 additions and 95 deletions

View File

@@ -57,6 +57,22 @@ impl Config {
pub async fn load() -> Result<Self> {
// Default configuration
let mut config = Self::default();
// Detect if running from macOS app bundle
if let Ok(exe_path) = std::env::current_exe() {
if let Some(exe_str) = exe_path.to_str() {
if exe_str.contains(".app/Contents/MacOS") {
// Running from macOS bundle - use user's Library directory
if let Some(home) = std::env::var_os("HOME") {
let app_support = PathBuf::from(home)
.join("Library/Application Support/Archipelago");
config.data_dir = app_support.join("data");
config.dev_data_dir = app_support.join("data");
tracing::info!("🍎 Detected macOS bundle, using: {}", app_support.display());
}
}
}
}
// Try to load from config file
let config_path = Path::new("/etc/archipelago/config.toml");