Skip to content

Commit

Permalink
temp: lock chromium sysroots
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 committed Jan 10, 2025
1 parent f7a39cf commit 2b1d33d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions build/linux/debian/install-sysroot.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions build/linux/debian/install-sysroot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ interface IFetchOptions {
dest: string;
}

function getElectronVersion(): Record<string, string> {
/*function getElectronVersion(): Record<string, string> {
const npmrc = fs.readFileSync(path.join(REPO_ROOT, '.npmrc'), 'utf8');
const electronVersion = /^target="(.*)"$/m.exec(npmrc)![1];
const msBuildId = /^ms_build_id="(.*)"$/m.exec(npmrc)![1];
return { electronVersion, msBuildId };
}
}*/

function getSha(filename: fs.PathLike): string {
const hash = createHash('sha256');
Expand Down Expand Up @@ -175,7 +175,7 @@ export async function getVSCodeSysroot(arch: DebianArchString): Promise<string>
}

export async function getChromiumSysroot(arch: DebianArchString): Promise<string> {
const sysrootJSONUrl = `https://raw.githubusercontent.com/electron/electron/v${getElectronVersion().electronVersion}/script/sysroots.json`;
const sysrootJSONUrl = `https://raw.githubusercontent.com/electron/electron/v32.2.7/script/sysroots.json`;
const sysrootDictLocation = `${tmpdir()}/sysroots.json`;
const result = spawnSync('curl', [sysrootJSONUrl, '-o', sysrootDictLocation]);
if (result.status !== 0) {
Expand Down

0 comments on commit 2b1d33d

Please sign in to comment.