win32: don't try to rename the installer file when it's not being built on the builds...
[deb_libcec.git] / support / create-installer.bat
index fb68cb613fec3fef03c7c006fe19bf48c4c83849..2f19005ba7e611eac5bd55f690a0f2490d79293f 100644 (file)
@@ -127,9 +127,12 @@ IF EXIST "..\support\private\sign-binary.cmd" (
   CALL ..\support\private\sign-binary.cmd ..\build\libCEC-installer.exe
 )
 
-move ..\build\libCEC-installer.exe ..\build\libCEC-%1%-installer.exe
-
-echo. The installer can be found here: ..\build\libCEC-%1%-installer.exe
+IF "%1%"=="" (
+  echo. The installer can be found here: ..\build\libCEC-installer.exe
+) ELSE (
+  move ..\build\libCEC-installer.exe ..\build\libCEC-%1%-installer.exe
+  echo. The installer can be found here: ..\build\libCEC-%1%-installer.exe
+)
 
 GOTO EXIT