diff --git a/module/build.bat b/module/build.bat index df0f272..d1899cc 100644 --- a/module/build.bat +++ b/module/build.bat @@ -3,8 +3,8 @@ SET "binary=cvars.dll" SET "dest=C:\Program Files (x86)\Steam\SteamApps\common" -cargo build --lib --release --target i686-pc-windows-msvc -Z unstable-options --out-dir ./bin/%1/ --features %1 --no-default-features +cargo build --lib --release --target i686-pc-windows-msvc --features %1 --no-default-features IF "%1" == "portal2" ( - COPY /Y ".\bin\portal2\%binary%" "%dest%\Portal 2\%binary%" + COPY /Y ".\target\i686-pc-windows-msvc\release\%binary%" "%dest%\Portal 2\%binary%" ) diff --git a/module/build_x64.bat b/module/build_x64.bat index a32ac43..c8a9437 100644 --- a/module/build_x64.bat +++ b/module/build_x64.bat @@ -3,4 +3,8 @@ SET "binary=cvars.dll" SET "dest=C:\Program Files (x86)\Steam\SteamApps\common" -cargo build --lib --release --target x86_64-pc-windows-msvc -Z unstable-options --out-dir ./bin/%1/ --features %1 --no-default-features +cargo build --lib --release --target x86_64-pc-windows-msvc --features %1 --no-default-features + +IF "%1" == "portal2_ce" ( + COPY /Y ".\target\x86_64-pc-windows-msvc\release\%binary%" "%dest%\Portal Revolution\%binary%" +)