@@ -28,43 +28,43 @@ class LibJSInstaller extends Installer {
28
28
}
29
29
30
30
static async resolveVersion ( version ) {
31
- const artifactName = `serenity -js-${ getFilename ( ) } ` ;
31
+ const artifactName = `ladybird -js-${ getFilename ( ) } ` ;
32
32
if ( version !== 'latest' ) {
33
33
throw new Error ( 'LibJS only provides binary builds for \'latest\'' ) ;
34
34
}
35
35
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' )
37
37
. then ( ( x ) => x . json ( ) )
38
38
. then ( ( x ) => x . artifacts . filter ( ( a ) => a . name === artifactName ) )
39
39
. then ( ( x ) => x [ 0 ] . id )
40
40
. 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 ` ) ;
42
42
} ) ;
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' )
44
44
. then ( ( x ) => x . json ( ) )
45
45
. then ( ( x ) => x . workflow_runs . filter ( ( a ) => a . name === 'Package the js repl as a binary artifact' ) )
46
46
. then ( ( x ) => x . sort ( ( a , b ) => a . check_suite_id > b . check_suite_id ) )
47
47
. then ( ( x ) => x [ 0 ] . check_suite_id )
48
48
. 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' ) ;
50
50
} ) ;
51
51
return `${ runId } /${ artifactId } ` ;
52
52
}
53
53
54
54
getDownloadURL ( version ) {
55
55
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 ] } ` ;
57
57
}
58
58
59
59
async extract ( ) {
60
60
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 ) ;
62
62
}
63
63
64
64
async install ( ) {
65
65
await this . registerAssets ( 'lib/**' ) ;
66
66
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 } "` ) ;
68
68
}
69
69
70
70
async test ( ) {
0 commit comments