mirror of
https://github.com/mileswolfallen2/OmniEmu2.0.git
synced 2026-12-04 15:57:45 +00:00
chore: update version to 0.1.1 and adjust User-Agent headers
This commit is contained in:
1 parent
a75cfb8d2a
commit
b673e59d3c
6 files changed
+6
-6
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "omniemu2",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"description": "Cross-platform emulator manager, game launcher and ROM manager",
|
||||
"main": "dist/main/index.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -221,7 +221,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.1.0' },
|
||||
headers: { 'User-Agent': 'OmniEmu/0.1.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.1.0' },
|
||||
headers: { 'User-Agent': 'OmniEmu/0.1.1' },
|
||||
timeout: 30000,
|
||||
};
|
||||
protocol(currentUrl, opts, (response) => {
|
||||
|
||||
+1
-1
@@ -94,7 +94,7 @@ function urlExists(url: string): Promise<boolean> {
|
||||
return new Promise((resolve) => {
|
||||
const req = httpsGet(url, {
|
||||
method: 'GET',
|
||||
headers: { 'User-Agent': 'OmniEmu/0.1.0' },
|
||||
headers: { 'User-Agent': 'OmniEmu/0.1.1' },
|
||||
timeout: 10000,
|
||||
}, (res) => {
|
||||
// GitHub raw returns 200 for existing or redirects to it
|
||||
|
||||
@@ -35,7 +35,7 @@ export function Sidebar({ currentPage, onNavigate }: SidebarProps) {
|
||||
))}
|
||||
</nav>
|
||||
<div className="sidebar-footer">
|
||||
v0.1.0
|
||||
v0.1.1
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -168,7 +168,7 @@ export function SettingsPage() {
|
||||
<div className="settings-section">
|
||||
<h3>About</h3>
|
||||
<p className="text-sm text-muted">
|
||||
OmniEmu v0.1.0 · Cross-platform emulator manager
|
||||
OmniEmu v0.1.1 · Cross-platform emulator manager
|
||||
<br />
|
||||
Built with Electron + React + TypeScript
|
||||
</p>
|
||||
|
||||
Reference in new issue
Block a user