2019-06-01 10:01:43 -07:00
|
|
|
set script_name=build_working_folder.bat
|
|
|
|
echo Entering %script_name%
|
2019-02-17 09:54:02 -08:00
|
|
|
|
2019-06-01 11:08:31 -07:00
|
|
|
pwd
|
|
|
|
echo %script_name%: Working folder: %folder%
|
2019-02-17 09:54:02 -08:00
|
|
|
mkdir %folder%
|
|
|
|
|
|
|
|
cp java_console_binary/rusefi_console.jar %folder%
|
|
|
|
cp simulator/build/rusefi_simulator.exe %folder%
|
|
|
|
cp firmware/tunerstudio/rusefi.ini %folder%
|
|
|
|
|
|
|
|
cp firmware/svnversion.h %folder%
|
|
|
|
cp -r misc/install/openocd %folder%
|
|
|
|
cp java_console/rusefi.xml %folder%
|
|
|
|
rem 407 has two versions
|
|
|
|
cp firmware/deliver/rusefi_release.* %folder%
|
|
|
|
cp firmware/deliver/rusefi_debug.* %folder%
|
|
|
|
rem 746 builds one version at the moment
|
2019-02-17 10:53:02 -08:00
|
|
|
cp firmware/build/rusefi.* %folder%
|
2019-02-17 09:54:02 -08:00
|
|
|
cp misc/console_launcher/rusefi_console.exe %folder%
|
|
|
|
|
|
|
|
|
|
|
|
cd temp
|
|
|
|
echo "Please copy find.exe to findcyg.exe in cygwin folder"
|
|
|
|
findcyg . -name '.svn' > folders_to_delete.txt
|
2019-06-01 10:01:43 -07:00
|
|
|
IF NOT ERRORLEVEL 0 echo %script_name%: ERROR INVOKING findcyg
|
|
|
|
IF NOT ERRORLEVEL 0 EXIT /B 1
|
|
|
|
|
2019-02-17 09:54:02 -08:00
|
|
|
echo "Deleting .svn"
|
|
|
|
xargs rm -rf < folders_to_delete.txt
|
2019-06-01 10:13:04 -07:00
|
|
|
echo "%script_name%: Deleted .svn"
|
2019-02-17 09:54:02 -08:00
|
|
|
rm -rf folders_to_delete.txt
|
|
|
|
|
|
|
|
echo "Building bundle"
|
|
|
|
pwd
|
2019-06-01 10:01:43 -07:00
|
|
|
set zip_name=rusefi_bundle.zip
|
2019-06-01 10:13:04 -07:00
|
|
|
zip -r %zip_name% *
|
2019-06-01 10:01:43 -07:00
|
|
|
IF NOT ERRORLEVEL 0 echo %script_name%: ERROR INVOKING zip
|
2019-06-01 09:34:29 -07:00
|
|
|
IF NOT ERRORLEVEL 0 EXIT /B 1
|
|
|
|
|
2019-06-01 11:08:31 -07:00
|
|
|
echo %script_name%: Bundle %zip_name% ready
|
|
|
|
ls -l %zip_name%
|
2019-02-17 09:54:02 -08:00
|
|
|
cd ..
|
2019-06-01 10:01:43 -07:00
|
|
|
echo "%script_name%: We are back in root directory"
|
|
|
|
|
2019-02-17 09:54:02 -08:00
|
|
|
pwd
|
2019-06-01 10:01:43 -07:00
|
|
|
echo Exiting %script_name%
|