Release version 1.2 with Supernode user window
Build Windows Portable Package / portable (release) Successful in 9m52s
Build Windows Portable Package / portable (release) Successful in 9m52s
This commit is contained in:
@@ -9,7 +9,9 @@ $n2nRoot = Join-Path $projectRoot 'third_party\n2n'
|
||||
$releaseRoot = Join-Path $projectRoot 'release'
|
||||
$portableRoot = Join-Path $projectRoot 'release\super-n2n-portable'
|
||||
$stagingRoot = Join-Path $releaseRoot 'super-n2n-portable-staging'
|
||||
$archivePath = Join-Path $releaseRoot 'super-n2n-portable.zip'
|
||||
$packageJson = Get-Content (Join-Path $projectRoot 'package.json') -Raw | ConvertFrom-Json
|
||||
$artifactVersion = (($packageJson.version -split '\.')[0..1] -join '.')
|
||||
$archivePath = Join-Path $releaseRoot "super-n2n-portable-$artifactVersion.zip"
|
||||
$releaseRootFull = [System.IO.Path]::GetFullPath($releaseRoot)
|
||||
$portableRootFull = [System.IO.Path]::GetFullPath($portableRoot)
|
||||
$stagingRootFull = [System.IO.Path]::GetFullPath($stagingRoot)
|
||||
@@ -21,7 +23,7 @@ if ((Split-Path -Parent $portableRootFull) -ne $releaseRootFull -or (Split-Path
|
||||
if ((Split-Path -Parent $stagingRootFull) -ne $releaseRootFull -or (Split-Path -Leaf $stagingRootFull) -ne 'super-n2n-portable-staging') {
|
||||
throw "Refusing to replace an unexpected staging directory: $stagingRootFull"
|
||||
}
|
||||
if ((Split-Path -Parent $archivePathFull) -ne $releaseRootFull -or (Split-Path -Leaf $archivePathFull) -ne 'super-n2n-portable.zip') {
|
||||
if ((Split-Path -Parent $archivePathFull) -ne $releaseRootFull -or (Split-Path -Leaf $archivePathFull) -ne "super-n2n-portable-$artifactVersion.zip") {
|
||||
throw "Refusing to replace an unexpected portable archive: $archivePathFull"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user