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.
74 lines
1.6 KiB
YAML
74 lines
1.6 KiB
YAML
name: Build and Release
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
tags:
|
|
- 'v*'
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- os: macos-latest
|
|
arch: x64
|
|
target: mac-x64
|
|
- os: macos-latest
|
|
arch: arm64
|
|
target: mac-arm64
|
|
- os: windows-latest
|
|
arch: x64
|
|
target: win-x64
|
|
- os: ubuntu-latest
|
|
arch: x64
|
|
target: linux-x64
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Package
|
|
run: npx electron-builder --${{ matrix.target == 'win-x64' && 'win' || matrix.target == 'mac-x64' && 'mac' || matrix.target == 'mac-arm64' && 'mac' || 'linux' }} --${{ matrix.arch }}
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: omniemu-${{ matrix.target }}
|
|
path: release/*
|
|
|
|
release:
|
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
needs: [build]
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Download all artifacts
|
|
uses: actions/download-artifact@v4
|
|
|
|
- name: Create Release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
files: omniemu-*/*
|
|
generate_release_notes: true
|