mirror of
				https://kkgithub.com/actions/setup-node.git
				synced 2025-11-04 04:31:55 +08:00 
			
		
		
		
	dbg
This commit is contained in:
		@ -76,20 +76,9 @@ export async function getNode(
 | 
			
		||||
    let extPath: string;
 | 
			
		||||
    if (osPlat == 'win32') {
 | 
			
		||||
      let _7zPath = path.join(__dirname, '..', 'externals', '7zr.exe');
 | 
			
		||||
 | 
			
		||||
      console.log(
 | 
			
		||||
        `downloadPath: ${downloadPath}`,
 | 
			
		||||
        `isFile: ${fs.statSync(downloadPath).isFile()}`
 | 
			
		||||
      );
 | 
			
		||||
      console.log(JSON.stringify(fs.statSync(downloadPath)));
 | 
			
		||||
 | 
			
		||||
      extPath = await tc.extract7z(downloadPath, undefined, _7zPath);
 | 
			
		||||
      // 7z extracts to folder matching file name
 | 
			
		||||
      extPath = path.join(extPath, path.basename(info.fileName, '.7z'));
 | 
			
		||||
      console.log(
 | 
			
		||||
        `extPath: ${extPath}`,
 | 
			
		||||
        `isDirectory: ${fs.statSync(extPath).isDirectory()}`
 | 
			
		||||
      );
 | 
			
		||||
    } else {
 | 
			
		||||
      extPath = await tc.extractTar(downloadPath, undefined, [
 | 
			
		||||
        'xz',
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user