File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,13 +69,17 @@ export async function installNitro(version: string) {
6969 let toolPath = tc . find ( toolName , version ) ;
7070
7171 if ( ! toolPath ) {
72- const downloadUrl = `https://github.com/ChilliCream/graphql-platform/releases/download/${ version } /nitro-${ osType } -${ archType } .zip` ;
72+ const extension = osType === "win" ? "zip" : "tar.gz" ;
73+ const downloadUrl = `https://github.com/ChilliCream/graphql-platform/releases/download/${ version } /nitro-${ osType } -${ archType } .${ extension } ` ;
7374
7475 core . info ( `Downloading Nitro CLI from: ${ downloadUrl } ` ) ;
7576
7677 const downloadPath = await tc . downloadTool ( downloadUrl ) ;
7778
78- const extractPath = await tc . extractZip ( downloadPath ) ;
79+ const extractPath =
80+ osType === "win"
81+ ? await tc . extractZip ( downloadPath )
82+ : await tc . extractTar ( downloadPath ) ;
7983
8084 toolPath = await tc . cacheDir ( extractPath , toolName , version ) ;
8185 }
You can’t perform that action at this time.
0 commit comments