Skip to content

Commit

Permalink
Update scripts to build on stable Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
NeKzor committed Jan 19, 2024
1 parent 4faef79 commit 61335dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions module/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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%"
)
6 changes: 5 additions & 1 deletion module/build_x64.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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%"
)

0 comments on commit 61335dd

Please sign in to comment.