Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
diff --git a/src/main/versions.ts b/src/main/versions.ts
|
|
index 501ba1a..0c11ff7 100644
|
|
--- a/src/main/versions.ts
|
|
+++ b/src/main/versions.ts
|
|
@@ -5,7 +5,6 @@ import { IpcMainInvokeEvent, app } from 'electron';
|
|
import fs from 'fs-extra';
|
|
|
|
import { ipcMainManager } from './ipc';
|
|
-import releases from '../../static/releases.json';
|
|
import { InstallState, Version } from '../interfaces';
|
|
import { IpcEvents } from '../ipc-events';
|
|
|
|
@@ -72,7 +71,6 @@ export async function fetchVersions(): Promise<Version[]> {
|
|
|
|
export async function setupVersions() {
|
|
knownVersions = await ElectronVersions.create({
|
|
- initialVersions: releases,
|
|
paths: {
|
|
versionsCache: path.join(app.getPath('userData'), 'releases.json'),
|
|
},
|
|
diff --git a/tools/fetch-releases.ts b/tools/fetch-releases.ts
|
|
index 744b814..94fd971 100644
|
|
--- a/tools/fetch-releases.ts
|
|
+++ b/tools/fetch-releases.ts
|
|
@@ -6,6 +6,7 @@ import { ElectronVersions } from '@electron/fiddle-core';
|
|
const file = path.join(__dirname, '..', 'static', 'releases.json');
|
|
|
|
export async function populateReleases() {
|
|
+ return;
|
|
const elves = await ElectronVersions.create({ ignoreCache: true });
|
|
const releases = elves.versions.map(({ version }) =>
|
|
elves.getReleaseInfo(version),
|