mirror of
https://github.com/naruxde/revpicommander.git
synced 2025-11-08 16:43:53 +01:00
build: Use right backslashes in make.bat file for Windows
Calling programs is written with a single backslash. When passing parameters to a program, double backslashes should be used, otherwise a single one could be interpreted as an escape character.
This commit is contained in:
22
make.bat
22
make.bat
@@ -2,7 +2,7 @@
|
|||||||
set PACKAGE=revpicommander
|
set PACKAGE=revpicommander
|
||||||
set APP_NAME=RevPi Commander
|
set APP_NAME=RevPi Commander
|
||||||
|
|
||||||
set PYTHON=venv\\Scripts\\python.exe
|
set PYTHON=venv\Scripts\python.exe
|
||||||
|
|
||||||
if "%1" == "venv" goto venv
|
if "%1" == "venv" goto venv
|
||||||
if "%1" == "test" goto test
|
if "%1" == "test" goto test
|
||||||
@@ -24,7 +24,7 @@ goto end
|
|||||||
|
|
||||||
:venv
|
:venv
|
||||||
python -m venv venv
|
python -m venv venv
|
||||||
venv\\Scripts\\pip.exe install -r requirements.txt
|
venv\Scripts\pip.exe install -r requirements.txt
|
||||||
goto end
|
goto end
|
||||||
|
|
||||||
:test
|
:test
|
||||||
@@ -41,7 +41,7 @@ goto end
|
|||||||
mkdir dist
|
mkdir dist
|
||||||
%PYTHON% -m piplicenses ^
|
%PYTHON% -m piplicenses ^
|
||||||
--format=markdown ^
|
--format=markdown ^
|
||||||
--output-file dist/bundled-libraries.md
|
--output-file dist\\bundled-libraries.md
|
||||||
%PYTHON% -m piplicenses ^
|
%PYTHON% -m piplicenses ^
|
||||||
--with-authors ^
|
--with-authors ^
|
||||||
--with-urls ^
|
--with-urls ^
|
||||||
@@ -49,7 +49,7 @@ goto end
|
|||||||
--with-license-file ^
|
--with-license-file ^
|
||||||
--no-license-path ^
|
--no-license-path ^
|
||||||
--format=json ^
|
--format=json ^
|
||||||
--output-file dist/open-source-licenses.json
|
--output-file dist\\open-source-licenses.json
|
||||||
%PYTHON% -m piplicenses ^
|
%PYTHON% -m piplicenses ^
|
||||||
--with-authors ^
|
--with-authors ^
|
||||||
--with-urls ^
|
--with-urls ^
|
||||||
@@ -57,18 +57,18 @@ goto end
|
|||||||
--with-license-file ^
|
--with-license-file ^
|
||||||
--no-license-path ^
|
--no-license-path ^
|
||||||
--format=plain-vertical ^
|
--format=plain-vertical ^
|
||||||
--output-file dist/open-source-licenses.txt
|
--output-file dist\\open-source-licenses.txt
|
||||||
%PYTHON% -m PyInstaller -n "%APP_NAME%" ^
|
%PYTHON% -m PyInstaller -n "%APP_NAME%" ^
|
||||||
--add-data="dist/bundled-libraries.md;%PACKAGE%\open-source-licenses" ^
|
--add-data="dist\\bundled-libraries.md;%PACKAGE%\\open-source-licenses" ^
|
||||||
--add-data="dist/open-source-licenses.*;%PACKAGE%\open-source-licenses" ^
|
--add-data="dist\\open-source-licenses.*;%PACKAGE%\\open-source-licenses" ^
|
||||||
--add-data="src\%PACKAGE%\locale;.\%PACKAGE%\locale" ^
|
--add-data="src\\%PACKAGE%\\locale;.\\%PACKAGE%\\locale" ^
|
||||||
--add-data="data\%PACKAGE%.ico;." ^
|
--add-data="data\\%PACKAGE%.ico;." ^
|
||||||
--icon=data\\%PACKAGE%.ico ^
|
--icon=data\\%PACKAGE%.ico ^
|
||||||
--noconfirm ^
|
--noconfirm ^
|
||||||
--clean ^
|
--clean ^
|
||||||
--onedir ^
|
--onedir ^
|
||||||
--windowed ^
|
--windowed ^
|
||||||
src\\%PACKAGE%\\__main__.py
|
src\%PACKAGE%\__main__.py
|
||||||
goto end
|
goto end
|
||||||
|
|
||||||
:distclean
|
:distclean
|
||||||
@@ -76,7 +76,7 @@ goto end
|
|||||||
|
|
||||||
:clean
|
:clean
|
||||||
rmdir /S /Q .pytest_cache
|
rmdir /S /Q .pytest_cache
|
||||||
rmdir /S /Q build dist src\%PACKAGE%.egg-info
|
rmdir /S /Q build dist src\\%PACKAGE%.egg-info
|
||||||
del /Q *.spec
|
del /Q *.spec
|
||||||
|
|
||||||
:end
|
:end
|
||||||
|
|||||||
Reference in New Issue
Block a user