[scripts] package.cmd: remove travis.sh check

We do CD /D anyway, might as well just go right to the destination.
This commit is contained in:
Egor 2022-08-11 15:32:27 +03:00
parent 894f15ce69
commit 6a4758deba

View File

@ -1,6 +1,6 @@
@ECHO OFF
SETLOCAL ENABLEEXTENSIONS
CD /D "%~dp0"
CD /D "%~dp0\.."
:: Packaging script for rom-properties, Windows version.
:: Requires the following:
@ -16,24 +16,6 @@ ECHO.
ECHO rom-properties packaging script for Windows
ECHO.
:: Check for a file known to be in the top-level source directory.
IF NOT EXIST travis.sh (
:: Maybe we're running from the scripts directory?
CD ..
IF NOT EXIST travis.sh (
ECHO *** ERROR: This batch file must be run from either the
ECHO top-level source directory or from the scripts directory.
ECHO.
ECHO Change to the top-level source directory and rerun this
ECHO batch file by typing:
ECHO.
ECHO scripts\package.cmd
ECHO.
PAUSE
EXIT /B 1
)
)
:: Determine the 32-bit "Program Files" directory.
IF NOT "%ProgramFiles(x86)%" == "" (
SET "PRGFILES=%ProgramFiles(x86)%"