mirror of
https://github.com/actions/node-versions.git
synced 2025-09-12 08:11:25 +08:00
Implement script to prepare packages with Node.js
This commit is contained in:
15
helpers/win-helpers.psm1
Normal file
15
helpers/win-helpers.psm1
Normal file
@@ -0,0 +1,15 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Unpack *.7z file
|
||||
#>
|
||||
function Extract-7ZipArchive {
|
||||
param(
|
||||
[Parameter(Mandatory=$true)]
|
||||
[String]$ArchivePath,
|
||||
[Parameter(Mandatory=$true)]
|
||||
[String]$OutputDirectory
|
||||
)
|
||||
|
||||
Write-Debug "Extract $ArchivePath to $OutputDirectory"
|
||||
7z x $ArchivePath -o"$OutputDirectory" -y | Out-Null
|
||||
}
|
Reference in New Issue
Block a user