2026-03-25 16:37:18 +01:00
|
|
|
target_dir=bin/OneNightDuel-win-x64
|
|
|
|
|
launch_server_script="while :; do bin\ONDServer.exe; done"
|
|
|
|
|
launch_client_script="bin\ONDClient.exe"
|
|
|
|
|
|
|
|
|
|
dotnet publish MonoGameLibrary
|
|
|
|
|
ln -sfrv MonoGameLibrary/MonoGameLibrary/bin/Release/net9.0/publish/MonoGameLibrary.dll ONDClient/link/MonoGameLibrary.dll
|
|
|
|
|
|
|
|
|
|
dotnet publish --runtime win-x64 --self-contained
|
2026-03-29 18:35:39 +02:00
|
|
|
mkdir -p $target_dir/bin/
|
2026-03-25 16:37:18 +01:00
|
|
|
cp -r bin/Client/net9.0/win-x64/publish/* $target_dir/bin/
|
|
|
|
|
cp -r bin/Server/net9.0/win-x64/publish/* $target_dir/bin/
|
|
|
|
|
|
|
|
|
|
echo "$launch_server_script" > $target_dir/launch-server-standalone.bat
|
|
|
|
|
echo "$launch_client_script" > $target_dir/OneNightDuel.bat
|
2026-03-29 18:35:39 +02:00
|
|
|
|
|
|
|
|
zip -r bin/OneNightDuel-win-x64.zip $target_dir
|