Skip to content

Commit

Permalink
Only archive for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
partouf authored Nov 13, 2023
1 parent cd333de commit 1a8a792
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/scripts/Package-Windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,22 @@ function Package {

Remove-Item @RemoveArgs

if ( ( $BuildInstaller ) ) {
Log-Group "Packaging ${ProductName}..."
$IsccFile = "${ProjectRoot}/build_${Target}/installer-Windows.generated.iss"

if ( ! ( Test-Path -Path $IsccFile ) ) {
throw 'InnoSetup install script not found. Run the build script or the CMake build and install procedures first.'
}

Log-Information 'Creating InnoSetup installer...'
Push-Location -Stack BuildTemp
Ensure-Location -Path "${ProjectRoot}/release"
Copy-Item -Path ${Configuration} -Destination Package -Recurse
Invoke-External iscc ${IsccFile} /O"${ProjectRoot}/release" /F"${OutputName}-Installer"
Remove-Item -Path Package -Recurse
Pop-Location -Stack BuildTemp
} else {
# if ( ( $BuildInstaller ) ) {
# Log-Group "Packaging ${ProductName}..."
# $IsccFile = "${ProjectRoot}/build_${Target}/installer-Windows.generated.iss"

# if ( ! ( Test-Path -Path $IsccFile ) ) {
# throw 'InnoSetup install script not found. Run the build script or the CMake build and install procedures first.'
# }

# Log-Information 'Creating InnoSetup installer...'
# Push-Location -Stack BuildTemp
# Ensure-Location -Path "${ProjectRoot}/release"
# Copy-Item -Path ${Configuration} -Destination Package -Recurse
# Invoke-External iscc ${IsccFile} /O"${ProjectRoot}/release" /F"${OutputName}-Installer"
# Remove-Item -Path Package -Recurse
# Pop-Location -Stack BuildTemp
# } else {
Log-Group "Archiving ${ProductName}..."
$CompressArgs = @{
Path = (Get-ChildItem -Path "${ProjectRoot}/release/${Configuration}" -Exclude "${OutputName}*.*")
Expand All @@ -89,7 +89,7 @@ function Package {
}

Compress-Archive -Force @CompressArgs
}
# }
Log-Group
}

Expand Down

0 comments on commit 1a8a792

Please sign in to comment.