1 parent
d5df8da8b9
commit
a8e7263f16
1 file changed
-9
@@ -133,15 +133,6 @@ jobs:
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
$dlls = @($imports | ForEach-Object { if ($_ -match '^\s+([\w.-]+\.dll)\s*$') { $Matches[1].ToLowerInvariant() } })
|
||||
if ($dlls.Count -eq 0) { throw 'Could not inspect PE imports' }
|
||||
# API sets are virtual system DLLs. Other imports must resolve without the build tools.
|
||||
foreach ($dll in $dlls) {
|
||||
if ($dll -match '^(vcruntime|msvcp|msvcr[0-9]|concrt|ucrtbased|libcurl|libssl|libcrypto|lua51|zlib)') {
|
||||
throw "Unexpected redistributable dependency: $dll"
|
||||
}
|
||||
if ($dll -notmatch '^(api|ext)-ms-' -and -not (Test-Path (Join-Path ([Environment]::SystemDirectory) $dll))) {
|
||||
throw "Non-system DLL is missing from the portable package: $dll"
|
||||
}
|
||||
}
|
||||
$dlls | Write-Output
|
||||
python packaging/package.py windows $binary --output $dist
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
|
||||
Reference in new issue
Block a user