Windows package updates

This commit is contained in:
Chris Cannam
2022-06-16 08:55:21 +01:00
parent 326f9b721d
commit bcdd1149df
2 changed files with 9 additions and 2 deletions

View File

@@ -133,8 +133,13 @@ int main(int argc, char **argv)
std::string myName(argv[0]); std::string myName(argv[0]);
bool isR3 = (myName.size() > 3 && bool isR3 =
myName.substr(myName.size() - 3, 3) == "-r3"); ((myName.size() > 3 &&
myName.substr(myName.size() - 3, 3) == "-r3") ||
(myName.size() > 7 &&
myName.substr(myName.size() - 7, 7) == "-r3.exe") ||
(myName.size() > 7 &&
myName.substr(myName.size() - 7, 7) == "-R3.EXE"));
while (1) { while (1) {
int optionIndex = 0; int optionIndex = 0;

View File

@@ -34,6 +34,7 @@ if errorlevel 1 exit /b %errorlevel%
cd build cd build
ren rubberband-program.exe rubberband.exe ren rubberband-program.exe rubberband.exe
ren rubberband-program-r3.exe rubberband-r3.exe
set NAME=Christopher Cannam set NAME=Christopher Cannam
signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 /a rubberband.exe signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 /a rubberband.exe
if errorlevel 1 exit /b %errorlevel% if errorlevel 1 exit /b %errorlevel%
@@ -43,6 +44,7 @@ set DIR=rubberband-%VERSION%-gpl-executable-windows
del /q /s %DIR% del /q /s %DIR%
mkdir %DIR% mkdir %DIR%
copy build\rubberband.exe %DIR% copy build\rubberband.exe %DIR%
copy build\rubberband-r3.exe %DIR%
copy "c:\Program Files\libsndfile\bin\sndfile.dll" %DIR% copy "c:\Program Files\libsndfile\bin\sndfile.dll" %DIR%
copy COPYING %DIR%\COPYING.txt copy COPYING %DIR%\COPYING.txt
copy README.md %DIR%\README.txt copy README.md %DIR%\README.txt