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 b1f55f96437b1f70eb8d2e8913e77ee2cfc978be..2f19005ba7e611eac5bd55f690a0f2490d79293f 100644 (file)
@@ -127,9 +127,12 @@ IF EXIST "..\support\private\sign-binary.cmd" (
   CALL ..\support\private\sign-binary.cmd ..\build\libCEC-installer.exe
 )
 
-mv ..\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