Skip to content

Commit d7a4864

Browse files
authored
LibJS: Change URL and name to reflect move to LadybirdBrowser/ladybird (#57)
Development of the cross-platform parts of LibWeb/LibJS/LibWasm for the Ladybird Browser project has split off into a new repository. Point esvu to the new repository and its artifacts
1 parent 75b9d3c commit d7a4864

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ installing engines to make eshost automatically find the installed engines.
4040
| [engine262][] | `engine262` ||||||||
4141
| [GraalJS][] | `graaljs` ||| ||| ||
4242
| [Hermes][] | `hermes` ||| | | | ||
43-
| [LibJS][] | `serenity-js` ||| || | | |
43+
| [LibJS][] | `ladybird-js` ||| || | | |
4444
| [JavaScriptCore][] | `jsc`, `javascriptcore` ||| || | ||
4545
| [QuickJS][] | `quickjs`, `quickjs-run-test262` || ||| |||
4646
| [SpiderMonkey][] | `sm`, `spidermonkey` ||||| |||
@@ -55,7 +55,7 @@ Some binaries may be exposed as batch/shell scripts to properly handling shared
5555
[engine262]: https://engine262.js.org
5656
[GraalJS]: https://github.com/graalvm/graaljs
5757
[Hermes]: https://hermesengine.dev
58-
[LibJS]: https://github.com/serenityos/serenity
58+
[LibJS]: https://github.com/ladybirdbrowser/ladybird
5959
[JavaScriptCore]: https://developer.apple.com/documentation/javascriptcore
6060
[QuickJS]: https://bellard.org/quickjs/
6161
[SpiderMonkey]: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey

src/engines/libjs.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,43 +28,43 @@ class LibJSInstaller extends Installer {
2828
}
2929

3030
static async resolveVersion(version) {
31-
const artifactName = `serenity-js-${getFilename()}`;
31+
const artifactName = `ladybird-js-${getFilename()}`;
3232
if (version !== 'latest') {
3333
throw new Error('LibJS only provides binary builds for \'latest\'');
3434
}
3535

36-
const artifactId = await fetch('https://api.github.com/repos/serenityos/serenity/actions/artifacts')
36+
const artifactId = await fetch('https://api.github.com/repos/ladybirdbrowser/ladybird/actions/artifacts')
3737
.then((x) => x.json())
3838
.then((x) => x.artifacts.filter((a) => a.name === artifactName))
3939
.then((x) => x[0].id)
4040
.catch(() => {
41-
throw new Error(`Failed to find any releases for ${artifactName} on SerenityOS/serenity`);
41+
throw new Error(`Failed to find any releases for ${artifactName} on LadybirdBrowser/ladybird`);
4242
});
43-
const runId = await fetch('https://api.github.com/repos/serenityos/serenity/actions/runs?event=push&branch=master&status=success')
43+
const runId = await fetch('https://api.github.com/repos/ladybirdbrowser/ladybird/actions/runs?event=push&branch=master&status=success')
4444
.then((x) => x.json())
4545
.then((x) => x.workflow_runs.filter((a) => a.name === 'Package the js repl as a binary artifact'))
4646
.then((x) => x.sort((a, b) => a.check_suite_id > b.check_suite_id))
4747
.then((x) => x[0].check_suite_id)
4848
.catch(() => {
49-
throw new Error('Failed to find any recent serenity-js build');
49+
throw new Error('Failed to find any recent ladybird-js build');
5050
});
5151
return `${runId}/${artifactId}`;
5252
}
5353

5454
getDownloadURL(version) {
5555
const ids = version.split('/');
56-
return `https://nightly.link/serenityos/serenity/suites/${ids[0]}/artifacts/${ids[1]}`;
56+
return `https://nightly.link/ladybirdbrowser/ladybird/suites/${ids[0]}/artifacts/${ids[1]}`;
5757
}
5858

5959
async extract() {
6060
await unzip(this.downloadPath, `${this.extractedPath}zip`);
61-
await untar(path.join(`${this.extractedPath}zip`, `serenity-js-${getFilename()}.tar.gz`), this.extractedPath);
61+
await untar(path.join(`${this.extractedPath}zip`, `ladybird-js-${getFilename()}.tar.gz`), this.extractedPath);
6262
}
6363

6464
async install() {
6565
await this.registerAssets('lib/**');
6666
const js = await this.registerAsset('bin/js');
67-
this.binPath = await this.registerScript('serenity-js', `"${js}"`);
67+
this.binPath = await this.registerScript('ladybird-js', `"${js}"`);
6868
}
6969

7070
async test() {

0 commit comments

Comments
 (0)