mirror of https://github.com/rusefi/rusefi-1.git
46 lines
1.2 KiB
Batchfile
46 lines
1.2 KiB
Batchfile
set script_name=build_working_folder.bat
|
|
echo Entering %script_name%
|
|
|
|
echo Working folder: %folder%
|
|
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
|
|
cp firmware/build/rusefi.* %folder%
|
|
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
|
|
IF NOT ERRORLEVEL 0 echo %script_name%: ERROR INVOKING findcyg
|
|
IF NOT ERRORLEVEL 0 EXIT /B 1
|
|
|
|
echo "Deleting .svn"
|
|
xargs rm -rf < folders_to_delete.txt
|
|
echo "Deleted .svn"
|
|
rm -rf folders_to_delete.txt
|
|
|
|
echo "Building bundle"
|
|
pwd
|
|
set zip_name=rusefi_bundle.zip
|
|
zip -r %zip_name$ *
|
|
IF NOT ERRORLEVEL 0 echo %script_name%: ERROR INVOKING zip
|
|
IF NOT ERRORLEVEL 0 EXIT /B 1
|
|
|
|
echo "Bundle %zip_name$ ready"
|
|
ls %zip_name%
|
|
cd ..
|
|
echo "%script_name%: We are back in root directory"
|
|
|
|
pwd
|
|
echo Exiting %script_name% |