diff --git a/exe/.gitignore b/exe/.gitignore new file mode 100644 index 00000000..a6ac0212 --- /dev/null +++ b/exe/.gitignore @@ -0,0 +1,4 @@ +build/ +dist/ + +commit.txt \ No newline at end of file diff --git a/exe/build.bat b/exe/build.bat new file mode 100644 index 00000000..cc36b417 --- /dev/null +++ b/exe/build.bat @@ -0,0 +1,22 @@ +REM activate venv +..\api\onnx_env\Scripts\Activate.bat + +REM build bundle +pyinstaller win10.directml.dir.spec + +REM add additional files +xcopy \gfpgan \dist\server\gfpgan /t /e +xcopy ..\api\gui \dist\client /t /e +xcopy ..\api\schemas \dist\schemas /t /e +xcopy ..\api\logging.yaml \dist\logging.yaml +xcopy ..\api\params.json \dist\params.json +xcopy ..\docs \dist\docs /t /e +xcopy ..\models \dist\models /t /e +xcopy ..\outputs \dist\outputs /t /e + +REM get commit info +git rev-parse HEAD > commit.txt +set /p GIT_SHA=