Skip to content

Commit

Permalink
fix: aquire chromium versions
Browse files Browse the repository at this point in the history
  • Loading branch information
KuznetsovRoman committed Dec 17, 2024
1 parent bde19e0 commit 90c0be2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import fs from "fs-extra";
import { getBrowserPlatform } from "../../../utils";

export const fetchChromiumMilestoneVersions = async (): Promise<string[]> => {
try {
const platform = getBrowserPlatform();

const { default: versions } = await import(`../../browser-installer/chromium/revisions/${platform}`);
const revisionsPath = require.resolve(`../../../chromium/revisions/autogenerated/${platform}`);
const versions = await fs.readJSON(revisionsPath);

return Object.keys(versions);
} catch (err) {
Expand Down

0 comments on commit 90c0be2

Please sign in to comment.