@echo off @REM Pushd into the script's directory pushd "%~dp0" cargo build --release --bin ucopy --features copy --target-dir \target\win cargo build --release --bin ucopyw --features copy --target-dir \target\win cargo build --release --bin utrans --target-dir \target\win cargo build --release --bin utransw --target-dir \target\win mkdir win copy \target\win\release\*.exe win /y cargo clean @REM Setting the icons of each executable @REM Using rcedit rcedit win\ucopy.exe --set-icon media\default.ico rcedit win\ucopyw.exe --set-icon media\default.ico rcedit win\utrans.exe --set-icon media\default.ico rcedit win\utransw.exe --set-icon media\default.ico popd