Skip to content

Commit

Permalink
helper script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jupeyy committed Dec 16, 2022
1 parent 3f73b81 commit 9079645
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions mk_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
# simple helper script to keep server and client in sync for playground

rm -R build_linux_rel
rm -R build_win_rel

mkdir build_linux_rel
mkdir build_win_rel

(
cd build_linux_rel
cmake .. -GNinja -DDOWNLOAD_GTEST=OFF
ninja package_default
)

(
cd build_win_rel
cmake .. -GNinja -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/mingw64.toolchain -DDOWNLOAD_GTEST=OFF
ninja package_default
)

cp build_linux_rel/DDNet-Server ~/ddnet_run
cp build_linux_rel/DDNet-*.tar.xz /var/www/html/downloads/DDNet.tar.xz
cp build_win_rel/DDNet-*.zip /var/www/html/downloads/DDNet.zip

0 comments on commit 9079645

Please sign in to comment.