Files
OmniEmu2.0/scripts/install.sh
T
miles 27a5394510 feat: add core functionality for emulator management and game library
- Implement IPC handlers for system info, emulator management, ROM scanning, and settings.
- Create platform utilities to retrieve system information.
- Develop preload script to expose API to renderer process.
- Establish settings management with file read/write capabilities.
- Build main application layout with React, including sidebar navigation and multiple pages (Dashboard, Emulators, Library, Settings).
- Design and implement styles for a cohesive user interface.
- Add type definitions for shared data structures between main and renderer processes.
- Configure TypeScript and Vite for building the application.
2026-07-08 15:59:59 -05:00

60 lines
1.3 KiB
Bash

#!/usr/bin/env bash
set -euo pipefail
# Cross-platform install script for OmniEmu
# Detects OS/arch and downloads the appropriate artifact from GitHub releases
REPO="mileswolfallen2/OmniEmu2.0"
VERSION="${1:-latest}"
die() {
echo "Error: $*" >&2
exit 1
}
detect_platform() {
local os arch
case "$(uname -s)" in
Darwin) os="mac" ;;
Linux) os="linux" ;;
*) die "Unsupported OS: $(uname -s)" ;;
esac
case "$(uname -m)" in
x86_64|amd64) arch="x64" ;;
arm64|aarch64) arch="arm64" ;;
*) die "Unsupported arch: $(uname -m)" ;;
esac
echo "${os}-${arch}"
}
main() {
local platform
platform=$(detect_platform)
echo "==> Detected platform: $platform"
echo "==> Downloading OmniEmu for $platform..."
local url
if [ "$VERSION" = "latest" ]; then
url="https://github.com/$REPO/releases/latest/download/OmniEmu-${platform}.AppImage"
else
url="https://github.com/$REPO/releases/download/v${VERSION}/OmniEmu-${platform}.AppImage"
fi
local dest="/tmp/OmniEmu.AppImage"
curl -fsSL "$url" -o "$dest" || die "Download failed"
chmod +x "$dest"
local install_dir="${HOME}/Applications"
mkdir -p "$install_dir"
mv "$dest" "${install_dir}/OmniEmu.AppImage"
echo "==> Installed to ${install_dir}/OmniEmu.AppImage"
echo "==> Run it with: ${install_dir}/OmniEmu.AppImage"
}
main