@@ -20,19 +20,28 @@ if "%1" EQU "--target" (set TARGET=%~2) && shift && shift && goto CheckOpts
20
20
if " %1 " EQU " --dry-run" (set DRYRUN=true) && shift && goto CheckOpts
21
21
22
22
if not defined PLINK where plink > " %TEMP% \plink.loc" 2 > nul && set /P PLINK = < " %TEMP% \plink.loc" & del " %TEMP% \plink.loc"
23
+ if not defined PLINK where /R " %ProgramFiles(x86)% \PuTTY" plink > " %TEMP% \plink.loc" 2 > nul && set /P PLINK = < " %TEMP% \plink.loc" & del " %TEMP% \plink.loc"
23
24
if not defined PLINK where /R " %ProgramFiles(x86)% " plink > " %TEMP% \plink.loc" 2 > nul && set /P PLINK = < " %TEMP% \plink.loc" & del " %TEMP% \plink.loc"
24
25
if not defined PLINK echo Cannot locate plink.exe & exit /B 1
25
26
echo Found plink.exe at %PLINK%
26
27
27
28
if not defined PSCP where pscp > " %TEMP% \pscp.loc" 2 > nul && set /P pscp = < " %TEMP% \pscp.loc" & del " %TEMP% \pscp.loc"
29
+ if not defined PSCP where /R " %ProgramFiles(x86)% \PuTTY" pscp > " %TEMP% \pscp.loc" 2 > nul && set /P pscp = < " %TEMP% \pscp.loc" & del " %TEMP% \pscp.loc"
28
30
if not defined PSCP where /R " %ProgramFiles(x86)% " pscp > " %TEMP% \pscp.loc" 2 > nul && set /P pscp = < " %TEMP% \pscp.loc" & del " %TEMP% \pscp.loc"
29
31
if not defined PSCP echo Cannot locate pscp.exe & exit /B 1
30
32
echo Found pscp.exe at %PSCP%
31
33
34
+ if not defined GPG where gpg2 > " %TEMP% \gpg.loc" 2 > nul && set /P GPG = < " %TEMP% \gpg.loc" & del " %TEMP% \gpg.loc"
35
+ if not defined GPG where /R " %PCBUILD% ..\externals" gpg2 > " %TEMP% \gpg.loc" 2 > nul && set /P GPG = < " %TEMP% \gpg.loc" & del " %TEMP% \gpg.loc"
36
+ if not defined GPG echo Cannot locate gpg2.exe. Signatures will not be uploaded & pause
37
+ echo Found gpg2.exe at %GPG%
38
+
32
39
call " %PCBUILD% env.bat" > nul 2 > nul
33
40
pushd " %D% "
34
41
msbuild /v:m /nologo uploadrelease.proj /t:Upload /p:Platform=x86
35
42
msbuild /v:m /nologo uploadrelease.proj /t:Upload /p:Platform=x64 /p:IncludeDoc=false
43
+ msbuild /v:m /nologo uploadrelease.proj /t:ShowHashes /p:Platform=x86
44
+ msbuild /v:m /nologo uploadrelease.proj /t:ShowHashes /p:Platform=x64 /p:IncludeDoc=false
36
45
popd
37
46
exit /B 0
38
47
0 commit comments