@@ -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