Skip to content

Commit 636a86b

Browse files
committed
Fix error message
1 parent a6260f4 commit 636a86b

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

tools/CustomBuildTool/Build.cs

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -953,20 +953,6 @@ public static bool BuildDeployUpdateConfig()
953953
}
954954
}
955955

956-
foreach (BuildFile file in BuildConfig.Build_Release_Files)
957-
{
958-
if (!file.UploadNightly)
959-
continue;
960-
961-
string name = BuildOutputFolder + file.FileName;
962-
963-
if (!File.Exists(name))
964-
{
965-
Program.PrintColorMessage("[SKIPPED] " + name + " not found.", ConsoleColor.Yellow);
966-
return false;
967-
}
968-
}
969-
970956
string customSignToolPath = Verify.GetCustomSignToolFilePath();
971957

972958
if (File.Exists(customSignToolPath))
@@ -983,15 +969,22 @@ public static bool BuildDeployUpdateConfig()
983969
else
984970
{
985971
Program.PrintColorMessage("[SKIPPED] CustomSignTool not found.", ConsoleColor.Yellow);
972+
return true;
986973
}
987974

988975
if (BuildNightly && File.Exists(Verify.GetPath("nightly.key")))
989976
File.Delete(Verify.GetPath("nightly.key"));
990977

991978
if (string.IsNullOrEmpty(BuildBinSig))
979+
{
980+
Program.PrintColorMessage("build-bin.sig not found.", ConsoleColor.Red);
992981
return false;
982+
}
993983
if (string.IsNullOrEmpty(BuildSetupSig))
984+
{
985+
Program.PrintColorMessage("build-setup.sig not found.", ConsoleColor.Red);
994986
return false;
987+
}
995988

996989
buildFilename = BuildOutputFolder + "\\processhacker-build-bin.zip";
997990

@@ -1002,7 +995,10 @@ public static bool BuildDeployUpdateConfig()
1002995
}
1003996

1004997
if (string.IsNullOrEmpty(buildBinHash))
998+
{
999+
Program.PrintColorMessage("build-bin hash not found.", ConsoleColor.Red);
10051000
return false;
1001+
}
10061002

10071003
buildFilename = BuildOutputFolder + "\\processhacker-build-setup.exe";
10081004

@@ -1013,7 +1009,10 @@ public static bool BuildDeployUpdateConfig()
10131009
}
10141010

10151011
if (string.IsNullOrEmpty(buildSetupHash))
1012+
{
1013+
Program.PrintColorMessage("build-setup hash not found.", ConsoleColor.Red);
10161014
return false;
1015+
}
10171016

10181017
try
10191018
{
Binary file not shown.

0 commit comments

Comments
 (0)