Skip to content

Commit

Permalink
Update upgrade-libczicompressc.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ringler authored Nov 7, 2023
1 parent a1e577a commit dd541b0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions czishrink/upgrade-libczicompressc.ps1
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<#
.SYNOPSIS
Upgrades libczicompressc.nupkg in CziShrink with the latest cmake build of main of https://github.com/ZEISS/czicompress.
Upgrades libczicompressc.nupkg in CziShrink with the latest cmake build of the main branch of czicompress.
.DESCRIPTION
This script should be run in the czishrink directory of a clone of https://github.com/m-ringler/netczicompress.
Make sure that the working directory is clean. Otherwise the script will stash local changes.
This script should be run in the czishrink directory of a clone of https://github.com/ZEISS/czicompress.
Make sure that you do not have any uncommited changes before you run the script. Otherwise the script will stash such changes.
You must have git and dotnet on your path.
The script needs to have access to both the https://github.com/ZEISS/czicompress and the https://github.com/m-ringler/netczicompress github repo,
The script needs to have access to the https://github.com/ZEISS/czicompress github repo (or your fork of that repo),
you need to
* create a 'classic' personal access token at https://github.com/settings/tokens or with github cli,
* and authorize it for the ZEISS organization via the "Configure SSO" button,
* and store it in a GITHUB_TOKEN environment variable or pass it as the -GithubToken parameter to this script.
If you specify a -DownloadFolder the script will use the data downloaded to that folder in a previous run. This provides rudimentary resume-on-error functionality.
If you specify a -DownloadFolder the script will reuse data downloaded to that folder in a previous run. This provides rudimentary resume-on-error functionality.
.EXAMPLE
Expand Down Expand Up @@ -186,7 +186,7 @@ if (![string]::IsNullOrEmpty($PSScriptRoot)) {
{
Set-Location "libczicompressc"
} elseif ("libczicompress" -ne $current_dir_name) {
throw "Please CD to the /czishrink directory of a netczicompress clone."
throw "Please CD to the /czishrink directory of a czicompress clone."
}
}

Expand Down Expand Up @@ -360,4 +360,4 @@ if ($CreatePullRequest) {
$PullRequestUrl = ($ServerResponse | ConvertFrom-Json).html_url
Write-Output "Opened a PR at $PullRequestUrl"
Start-Process $PullRequestUrl
}
}

0 comments on commit dd541b0

Please sign in to comment.