build: Linux dedicated server preset + deploy package (systemd + install script)

- export_presets.cfg: ajout preset.1 Linux Server (dedicated_server=true, embed_pck=true, x86_64)
- builds/DauphinCraftServer.x86_64: binaire serveur Linux 76MB
- builds/run_server.sh: launcher avec port configurable
- deploy/: dauphincraft.service (systemd) + install.sh (VM setup)
- deploy_package/: tarball + scripts prêts à transférer sur VM
- Rebuild client Windows inclus (DauphinCraft.exe 100MB, exit 0)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Floppyrj45
2026-04-19 17:55:40 +02:00
parent 5db858527e
commit 6069e6117e
10 changed files with 108 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

9
builds/run_server.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# DauphinCraft Dedicated Server Launcher
# Usage: ./run_server.sh [port]
PORT="${1:-7777}"
BINARY_DIR="$(dirname "$(readlink -f "$0")")"
cd "$BINARY_DIR"
exec ./DauphinCraftServer.x86_64 --server --port "$PORT" --headless

View File

@@ -0,0 +1,17 @@
[Unit]
Description=DauphinCraft Dedicated Server
After=network.target
[Service]
Type=simple
User=dauphin
Group=dauphin
WorkingDirectory=/opt/dauphincraft
ExecStart=/opt/dauphincraft/DauphinCraftServer.x86_64 --server --port 7777 --headless
Restart=always
RestartSec=5
StandardOutput=append:/var/log/dauphincraft.log
StandardError=append:/var/log/dauphincraft.log
[Install]
WantedBy=multi-user.target

18
deploy/install.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
# À exécuter sur la VM cible en root
set -e
mkdir -p /opt/dauphincraft
cp DauphinCraftServer.x86_64 /opt/dauphincraft/
cp run_server.sh /opt/dauphincraft/
chmod +x /opt/dauphincraft/DauphinCraftServer.x86_64 /opt/dauphincraft/run_server.sh
useradd -r -s /bin/false dauphin 2>/dev/null || true
chown -R dauphin:dauphin /opt/dauphincraft
cp dauphincraft.service /etc/systemd/system/
touch /var/log/dauphincraft.log
chown dauphin:dauphin /var/log/dauphincraft.log
systemctl daemon-reload
systemctl enable --now dauphincraft.service
sleep 2
systemctl status dauphincraft.service --no-pager
ufw allow 7777/udp 2>/dev/null || iptables -A INPUT -p udp --dport 7777 -j ACCEPT 2>/dev/null || true
echo "DauphinCraft Server installé. Port UDP 7777 ouvert."

Binary file not shown.

View File

@@ -0,0 +1,17 @@
[Unit]
Description=DauphinCraft Dedicated Server
After=network.target
[Service]
Type=simple
User=dauphin
Group=dauphin
WorkingDirectory=/opt/dauphincraft
ExecStart=/opt/dauphincraft/DauphinCraftServer.x86_64 --server --port 7777 --headless
Restart=always
RestartSec=5
StandardOutput=append:/var/log/dauphincraft.log
StandardError=append:/var/log/dauphincraft.log
[Install]
WantedBy=multi-user.target

18
deploy_package/install.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
# À exécuter sur la VM cible en root
set -e
mkdir -p /opt/dauphincraft
cp DauphinCraftServer.x86_64 /opt/dauphincraft/
cp run_server.sh /opt/dauphincraft/
chmod +x /opt/dauphincraft/DauphinCraftServer.x86_64 /opt/dauphincraft/run_server.sh
useradd -r -s /bin/false dauphin 2>/dev/null || true
chown -R dauphin:dauphin /opt/dauphincraft
cp dauphincraft.service /etc/systemd/system/
touch /var/log/dauphincraft.log
chown dauphin:dauphin /var/log/dauphincraft.log
systemctl daemon-reload
systemctl enable --now dauphincraft.service
sleep 2
systemctl status dauphincraft.service --no-pager
ufw allow 7777/udp 2>/dev/null || iptables -A INPUT -p udp --dport 7777 -j ACCEPT 2>/dev/null || true
echo "DauphinCraft Server installé. Port UDP 7777 ouvert."

View File

@@ -41,3 +41,32 @@ application/export_angle=0
application/export_d3d12=0
application/d3d12_agility_sdk_multiarch=true
ssh_remote_deploy/enabled=false
[preset.1]
name="Linux Server"
platform="Linux"
runnable=true
advanced_options=false
dedicated_server=true
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="builds/DauphinCraftServer.x86_64"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
script_export_mode=2
[preset.1.options]
custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=1
binary_format/embed_pck=true
texture_format/s3tc_bptc=true
texture_format/etc2_astc=false
binary_format/architecture="x86_64"
ssh_remote_deploy/enabled=false