mirror of
https://github.com/mileswolfallen2/OmniEmu2.0.git
synced 2026-09-08 11:23:17 +00:00
- 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.
28 lines
692 B
PowerShell
28 lines
692 B
PowerShell
# 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
|