Skip to content

Commit

Permalink
Revert "temp: lock chromium sysroots"
Browse files Browse the repository at this point in the history
This reverts commit 5d4c817.
  • Loading branch information
deepak1556 committed Jan 21, 2025
1 parent 65da6b8 commit e80c7c5
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/v32.2.7/script/sysroots.json`;
const sysrootJSONUrl = `https://raw.githubusercontent.com/electron/electron/v${getElectronVersion().electronVersion}/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 e80c7c5

Please sign in to comment.