mirror of
https://github.com/mileswolfallen2/OmniEmu2.0.git
synced 2026-09-08 11:23:17 +00:00
chore: update version to 0.3.1 across the application
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
OmniEmu is a cross-platform desktop application for managing emulators, launching games, and organizing ROM libraries. Built with Electron, React, and TypeScript.
|
||||
|
||||
**Repository:** [github.com/mileswolfallen2/OmniEmu2.0](https://github.com/mileswolfallen2/OmniEmu2.0)
|
||||
**Version:** 0.2.1
|
||||
**Version:** 0.3.1
|
||||
**License:** MIT (Copyright 2026 mileswa1q22)
|
||||
|
||||
---
|
||||
|
||||
@@ -290,7 +290,7 @@ async function fetchRemotePresets(): Promise<Record<string, ConfigPreset[]> | nu
|
||||
const { get } = await import('https');
|
||||
const data = await new Promise<string>((resolve, reject) => {
|
||||
get(presetSourceUrl, {
|
||||
headers: { 'User-Agent': 'OmniEmu/0.2.1' },
|
||||
headers: { 'User-Agent': 'OmniEmu/0.3.1' },
|
||||
timeout: 10000,
|
||||
}, (res) => {
|
||||
if (res.statusCode !== 200) { reject(new Error(`HTTP ${res.statusCode}`)); return; }
|
||||
|
||||
@@ -26,7 +26,7 @@ function downloadFile(url: string, dest: string, onProgress: (pct: number) => vo
|
||||
const doRequest = (currentUrl: string) => {
|
||||
const protocol = currentUrl.startsWith('https') ? httpsGet : httpGet;
|
||||
const opts: RequestOptions = {
|
||||
headers: { 'User-Agent': 'OmniEmu/0.2.1' },
|
||||
headers: { 'User-Agent': 'OmniEmu/0.3.1' },
|
||||
timeout: 30000,
|
||||
};
|
||||
protocol(currentUrl, opts, (response) => {
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ const raConsoleIds: Record<string, number> = {
|
||||
dreamcast: 27, arcade: 99,
|
||||
};
|
||||
|
||||
const userAgent = 'OmniEmu/0.2.1';
|
||||
const userAgent = 'OmniEmu/0.3.1';
|
||||
|
||||
function fetchText(url: string): Promise<string> {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
+5
-5
@@ -120,7 +120,7 @@ export async function findValidThumbnail(title: string, platform: string): Promi
|
||||
|
||||
function fetchText(url: string): Promise<string> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const req = httpsGet(url, { headers: { 'User-Agent': 'OmniEmu/0.2.1' }, timeout: 10000 }, (res) => {
|
||||
const req = httpsGet(url, { headers: { 'User-Agent': 'OmniEmu/0.3.1' }, timeout: 10000 }, (res) => {
|
||||
let data = '';
|
||||
res.on('data', (chunk: string) => data += chunk);
|
||||
res.on('end', () => resolve(data));
|
||||
@@ -134,7 +134,7 @@ function urlExists(url: string): Promise<boolean> {
|
||||
return new Promise((resolve) => {
|
||||
const req = httpsGet(url, {
|
||||
method: 'GET',
|
||||
headers: { 'User-Agent': 'OmniEmu/0.2.1' },
|
||||
headers: { 'User-Agent': 'OmniEmu/0.3.1' },
|
||||
timeout: 10000,
|
||||
}, (res) => {
|
||||
// GitHub raw returns 200 for existing or redirects to it
|
||||
@@ -242,7 +242,7 @@ export function cacheMetadata(romPath: string, metadata: GameMetadata): void {
|
||||
writeMetadataCache(cache);
|
||||
}
|
||||
|
||||
const mobygamesUA = 'Mozilla/5.0 (compatible; OmniEmu/0.2.1; +https://github.com/mileswolfallen2/OmniEmu2.0)';
|
||||
const mobygamesUA = 'Mozilla/5.0 (compatible; OmniEmu/0.3.1; +https://github.com/mileswolfallen2/OmniEmu2.0)';
|
||||
|
||||
function mobyFetch(url: string): Promise<string> {
|
||||
return new Promise((resolve, reject) => {
|
||||
@@ -419,7 +419,7 @@ function sgdbFetch(url: string, apiKey: string, retries = 2): Promise<string> {
|
||||
const req = httpsGet(url, {
|
||||
headers: {
|
||||
'Authorization': `Bearer ${apiKey}`,
|
||||
'User-Agent': 'OmniEmu/0.2.1',
|
||||
'User-Agent': 'OmniEmu/0.3.1',
|
||||
},
|
||||
timeout: 10000,
|
||||
}, (res) => {
|
||||
@@ -449,7 +449,7 @@ function sgdbDownloadBuffer(url: string, apiKey: string, retries = 2): Promise<B
|
||||
return new Promise((resolve, reject) => {
|
||||
const req = httpsGet(url, {
|
||||
headers: {
|
||||
'User-Agent': 'OmniEmu/0.2.1',
|
||||
'User-Agent': 'OmniEmu/0.3.1',
|
||||
},
|
||||
timeout: 15000,
|
||||
}, (res) => {
|
||||
|
||||
@@ -34,7 +34,7 @@ export function Sidebar({ currentPage, onNavigate }: TopBarProps) {
|
||||
</button>
|
||||
))}
|
||||
</nav>
|
||||
<div className="topbar-version">v0.2.1</div>
|
||||
<div className="topbar-version">v0.3.1</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -415,7 +415,7 @@ export function SettingsPage() {
|
||||
<div className="settings-section">
|
||||
<h3>About</h3>
|
||||
<p className="text-sm text-muted">
|
||||
OmniEmu v{updateInfo?.version || '0.2.1'} · Cross-platform emulator manager
|
||||
OmniEmu v{updateInfo?.version || '0.3.1'} · Cross-platform emulator manager
|
||||
<br />
|
||||
Built with Electron + React + TypeScript
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user