浏览代码

Put in ISCmplr.dll hash.

Martijn Laan 6 月之前
父节点
当前提交
37833fb5ff
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 1 1
      Components/TrustFunc.pas
  2. 6 0
      build-ce.bat

+ 1 - 1
Components/TrustFunc.pas

@@ -39,7 +39,7 @@ begin
 {$IFNDEF TRUSTALL}
   try
     var Hash := GetSHA256OfFileAsString(FileName);
-    Result := (Hash = 'todo') or //ISCmplr.dll
+    Result := (Hash = '363b1d094b0ee65683f925d69453abd5c09ecb2089b5928784b0d2bf97206550') or //ISCmplr.dll
               (Hash = '062c808fab6f6f948652fd5708ccca4b4b91c33b8a66af1c3c6da5cdd94f113c');   //isscint.dll
   except
     Result := False;

+ 6 - 0
build-ce.bat

@@ -52,6 +52,12 @@ call :waitforfile ishelp\ishelpgen\ishelpgen.exe
 echo Found all, waiting 2 seconds more...
 timeout /t 2 /nobreak >nul
 
+call .\sign.bat files\iscmplr.dll
+powershell.exe -Command "Write-Host -NoNewline 'ISCmplr.dll SHA256 hash: '; (Get-FileHash -Algorithm SHA256 -Path files\iscmplr.dll).Hash.ToLower()"
+echo Simpletrustfunc first run: put this hash in TrustFunc.pas, save current ISCmplr.dll and abort+restart build
+echo Simpletrustfunc second run: replace current ISCmplr.dll with saved
+pause
+
 cd ishelp
 if errorlevel 1 goto failed
 call .\compile.bat