Skip to content

Commit a7ce235

Browse files
committed
Remove pdb from build script
1 parent 23115a2 commit a7ce235

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

build/internal/build.ps1

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,7 @@ function BuildChecksumsFile()
662662
"processhacker-build-setup.exe",
663663
"processhacker-build-sdk.zip",
664664
"processhacker-build-bin.zip",
665-
"processhacker-build-src.zip",
666-
"processhacker-build-pdb.zip";
665+
"processhacker-build-src.zip"; # processhacker-build-pdb.zip
667666

668667
Write-Host "Generating checksums" -NoNewline -ForegroundColor Cyan
669668

@@ -813,7 +812,7 @@ function UpdateBuildService()
813812
$sdkZip = "${env:BUILD_OUTPUT_FOLDER}\processhacker-build-sdk.zip"
814813
$binZip = "${env:BUILD_OUTPUT_FOLDER}\processhacker-build-bin.zip"
815814
$srcZip = "${env:BUILD_OUTPUT_FOLDER}\processhacker-build-src.zip"
816-
$pdbZip = "${env:BUILD_OUTPUT_FOLDER}\processhacker-build-pdb.zip"
815+
#$pdbZip = "${env:BUILD_OUTPUT_FOLDER}\processhacker-build-pdb.zip"
817816
$checksums ="${env:BUILD_OUTPUT_FOLDER}\processhacker-build-checksums.txt"
818817

819818
Write-Host "Updating build service" -NoNewline -ForegroundColor Cyan
@@ -837,7 +836,7 @@ function UpdateBuildService()
837836
$sdkHash = $array[1].Hash;
838837
$binHash = $array[2].Hash;
839838
$srcHash = $array[3].Hash;
840-
$pdbHash = $array[4].Hash;
839+
#$pdbHash = $array[4].Hash;
841840
}
842841
else
843842
{
@@ -861,13 +860,11 @@ function UpdateBuildService()
861860
$srcHash = (Get-FileHash "$srcZip" -Algorithm SHA256).Hash;
862861
}
863862

864-
if (Test-Path "$pdbZip")
865-
{
866-
$pdbHash = (Get-FileHash "$pdbZip" -Algorithm SHA256).Hash;
867-
}
863+
#if (Test-Path "$pdbZip")
864+
#$pdbHash = (Get-FileHash "$pdbZip" -Algorithm SHA256).Hash;
868865
}
869866

870-
if ($global:signature_output -and $global:buildMessage -and $exeHash -and $sdkHash -and $binHash -and $srcHash -and $pdbHash -and $fileTime -and $fileSize -and $global:fileVersion)
867+
if ($global:signature_output -and $global:buildMessage -and $exeHash -and $sdkHash -and $binHash -and $srcHash -and $fileTime -and $fileSize -and $global:fileVersion)
871868
{
872869
$jsonString = @{
873870
"version"="$global:fileVersion"
@@ -880,7 +877,6 @@ function UpdateBuildService()
880877
"hash_sdk"="$sdkHash"
881878
"hash_bin"="$binHash"
882879
"hash_src"="$srcHash"
883-
"hash_pdb"="$pdbHash"
884880
"message"="$global:buildMessage"
885881
"sig"="$global:signature_output"
886882
} | ConvertTo-Json | Out-String;
@@ -889,14 +885,14 @@ function UpdateBuildService()
889885
Remove-Item "${env:BUILD_OUTPUT_FOLDER}\processhacker-$global:fileVersion-sdk.zip" -Force -ErrorAction SilentlyContinue
890886
Remove-Item "${env:BUILD_OUTPUT_FOLDER}\processhacker-$global:fileVersion-bin.zip" -Force -ErrorAction SilentlyContinue
891887
Remove-Item "${env:BUILD_OUTPUT_FOLDER}\processhacker-$global:fileVersion-src.zip" -Force -ErrorAction SilentlyContinue
892-
Remove-Item "${env:BUILD_OUTPUT_FOLDER}\processhacker-$global:fileVersion-pdb.zip" -Force -ErrorAction SilentlyContinue
888+
#Remove-Item "${env:BUILD_OUTPUT_FOLDER}\processhacker-$global:fileVersion-pdb.zip" -Force -ErrorAction SilentlyContinue
893889
Remove-Item "${env:BUILD_OUTPUT_FOLDER}\processhacker-$global:fileVersion-checksums.txt" -Force -ErrorAction SilentlyContinue
894890

895891
Rename-Item "$exeSetup" "processhacker-$global:fileVersion-setup.exe" -Force
896892
Rename-Item "$sdkZip" "processhacker-$global:fileVersion-sdk.zip" -Force
897893
Rename-Item "$binZip" "processhacker-$global:fileVersion-bin.zip" -Force
898894
Rename-Item "$srcZip" "processhacker-$global:fileVersion-src.zip" -Force
899-
Rename-Item "$pdbZip" "processhacker-$global:fileVersion-pdb.zip" -Force
895+
#Rename-Item "$pdbZip" "processhacker-$global:fileVersion-pdb.zip" -Force
900896
Rename-Item "$checksums" "processhacker-$global:fileVersion-checksums.txt" -Force
901897

902898
if (($global:buildbot) -and (Test-Path Env:\APPVEYOR_BUILD_API))
@@ -907,7 +903,7 @@ function UpdateBuildService()
907903
Push-AppveyorArtifact "${env:BUILD_OUTPUT_FOLDER}\processhacker-$global:fileVersion-sdk.zip" -ErrorAction SilentlyContinue
908904
Push-AppveyorArtifact "${env:BUILD_OUTPUT_FOLDER}\processhacker-$global:fileVersion-bin.zip" -ErrorAction SilentlyContinue
909905
Push-AppveyorArtifact "${env:BUILD_OUTPUT_FOLDER}\processhacker-$global:fileVersion-src.zip" -ErrorAction SilentlyContinue
910-
Push-AppveyorArtifact "${env:BUILD_OUTPUT_FOLDER}\processhacker-$global:fileVersion-pdb.zip" -ErrorAction SilentlyContinue
906+
#Push-AppveyorArtifact "${env:BUILD_OUTPUT_FOLDER}\processhacker-$global:fileVersion-pdb.zip" -ErrorAction SilentlyContinue
911907
Push-AppveyorArtifact "${env:BUILD_OUTPUT_FOLDER}\processhacker-$global:fileVersion-checksums.txt" -ErrorAction SilentlyContinue
912908
}
913909
}
@@ -979,7 +975,7 @@ BuildSetupExe;
979975
BuildSdkZip;
980976
BuildBinZip;
981977
BuildSourceZip;
982-
BuildPdbZip;
978+
#BuildPdbZip;
983979

984980
# Build the checksums
985981
BuildChecksumsFile;

0 commit comments

Comments
 (0)