2020-12-11 00:04:49 +01:00
@ echo off
2020-12-08 21:46:17 +01:00
echo ===============================
echo == NMKD'S FLOWFRAMES BUILDER ==
echo ===============================
echo .
2021-01-04 15:03:35 +01:00
echo This script makes a build ready for distribution by creating three 7z archives, without python, with pytorch for Turing, and with pytorch for Ampere.
2020-12-08 21:46:17 +01:00
echo .
set " ver=16 "
set /p ver = " Enter the version number: "
2021-02-08 15:48:44 -05:00
cd ..
dotnet publish -c Release -o " Release/Build " " Code5 "
cd Release
2020-12-08 21:46:17 +01:00
rmdir /s/q FlowframesApp%ver%
2020-12-10 18:23:34 +01:00
mkdir " FlowframesApp %ver% "
mkdir " FlowframesApp %ver% /FlowframesData "
mkdir " FlowframesApp %ver% /FlowframesData/pkgs "
2020-12-08 21:46:17 +01:00
2021-02-08 15:48:44 -05:00
rem xcopy "../pkgs" "FlowframesApp%ver%/FlowframesData\pkgs\" /E
xcopy " ../pkgs/av " " FlowframesApp %ver% /FlowframesData\pkgs\av " /E /I
xcopy " ../pkgs/dain-ncnn " " FlowframesApp %ver% /FlowframesData\pkgs\dain-ncnn " /E /I
xcopy " ../pkgs/licenses " " FlowframesApp %ver% /FlowframesData\pkgs\licenses " /E /I
xcopy " ../pkgs/rife-cuda " " FlowframesApp %ver% /FlowframesData\pkgs\rife-cuda " /E /I
xcopy " ../pkgs/rife-ncnn " " FlowframesApp %ver% /FlowframesData\pkgs\rife-ncnn " /E /I
2020-12-08 21:46:17 +01:00
echo %ver% >> " FlowframesApp %ver% /FlowframesData/ver.ini "
2021-02-08 15:48:44 -05:00
xcopy /E " Build " " FlowframesApp %ver% "
2020-12-08 21:46:17 +01:00
2021-02-08 15:48:44 -05:00
cd ..\Build5
2020-12-08 21:46:17 +01:00
2021-02-08 15:48:44 -05:00
rmdir /s/q ..\Release\FlowframesApp%ver% \FlowframesData\logs
del ..\Release\FlowframesApp%ver% \FlowframesData\config.ini
2021-01-04 15:03:35 +01:00
2021-02-08 15:48:44 -05:00
del FF-%ver% -Slim.7z
7za.exe a FF-%ver% -Slim.7z -m0=flzma2 -mx5 " ..\Release\FlowframesApp %ver% "
2021-01-04 15:03:35 +01:00
2021-02-08 15:48:44 -05:00
xcopy " ../pkgs/py-tu " " ..\Release\FlowframesApp %ver% \FlowframesData\pkgs\py-tu " /E /I
del FF-%ver% -Full.7z
7za.exe a FF-%ver% -Full.7z -m0=flzma2 -mx7 " ..\Release\FlowframesApp %ver% "
2021-01-04 15:03:35 +01:00
2021-02-08 15:48:44 -05:00
rmdir /s/q ..\Release\FlowframesApp%ver% \FlowframesData\pkgs\py-tu
xcopy " ../pkgs/py-amp " " ..\Release\FlowframesApp %ver% \FlowframesData\pkgs\py-amp " /E /I
del FF-%ver% -Full-RTX3000.7z
7za.exe a FF-%ver% -Full-RTX3000.7z -m0=flzma2 -mx7 " ..\Release\FlowframesApp %ver% "
2021-01-04 15:03:35 +01:00
2020-12-08 21:46:17 +01:00
2021-02-08 15:48:44 -05:00
rmdir /s/q ..\Release\FlowframesApp%ver%
2020-12-08 21:46:17 +01:00
2020-12-11 00:04:49 +01:00
rem pause