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.
This commit is contained in:
miles committed 2026-07-08 15:59:59 -05:00
1 parent 14f0114c90
commit 27a5394510
28 files changed
+2243

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
#!/usr/bin/env bash
set -euo pipefail
# Build OmniEmu for Linux
# Usage: ./scripts/build-linux.sh [arch]
# arch: x64 | arm64 (default: current arch)
# Targets: AppImage, deb
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
cd "$PROJECT_DIR"
ARCH="${1:-$(uname -m)}"
case "$ARCH" in
x86_64|amd64) ARCH_FLAG="x64" ;;
aarch64) ARCH_FLAG="arm64" ;;
*) echo "Unknown arch: $ARCH"; exit 1 ;;
esac
echo "==> Installing dependencies..."
npm install
echo "==> Building for Linux ($ARCH_FLAG)..."
npm run build
echo "==> Packaging for Linux ($ARCH_FLAG)..."
# Build AppImage and deb
npx electron-builder --linux --${ARCH_FLAG}
echo "==> Done! Artifacts in ./release/"
+29
View File
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
set -euo pipefail
# Build OmniEmu for macOS
# Usage: ./scripts/build-mac.sh [arch]
# arch: x64 | arm64 (default: current arch)
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
cd "$PROJECT_DIR"
ARCH="${1:-$(uname -m)}"
case "$ARCH" in
x86_64) ARCH_FLAG="x64" ;;
arm64) ARCH_FLAG="arm64" ;;
*) echo "Unknown arch: $ARCH"; exit 1 ;;
esac
echo "==> Installing dependencies..."
npm install
echo "==> Building for macOS ($ARCH_FLAG)..."
npm run build
echo "==> Packaging for macOS ($ARCH_FLAG)..."
npx electron-builder --mac --arm64="$([ "$ARCH_FLAG" = "arm64" ] && echo true || echo false)" --x64="$([ "$ARCH_FLAG" = "x64" ] && echo true || echo false)"
echo "==> Done! Artifacts in ./release/"
+27
View File
@@ -0,0 +1,27 @@
# Build OmniEmu for Windows
# Usage: .\scripts\build-win.ps1 [-Arch <x64|arm64>]
# Requires: Node.js, npm
param(
[ValidateSet("x64", "arm64")]
[string]$Arch = "x64"
)
$ErrorActionPreference = "Stop"
Push-Location (Split-Path $PSScriptRoot -Parent)
Write-Host "==> Installing dependencies..." -ForegroundColor Cyan
npm install
Write-Host "==> Building for Windows ($Arch)..." -ForegroundColor Cyan
npm run build
Write-Host "==> Packaging for Windows ($Arch)..." -ForegroundColor Cyan
if ($Arch -eq "arm64") {
npx electron-builder --win --arm64
} else {
npx electron-builder --win --x64
}
Write-Host "==> Done! Artifacts in ./release/" -ForegroundColor Green
Pop-Location
+59
View File
@@ -0,0 +1,59 @@
#!/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