1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-12-13 18:55:20 +01:00

Add self-extracting launcher for Windows

This commit is contained in:
sfan5
2025-12-02 21:18:24 +01:00
parent 92709b4671
commit ac7fb75ea3
7 changed files with 180 additions and 18 deletions

View File

@@ -32,6 +32,19 @@ install_linux_deps() {
fi
}
# Linux -> win32 cross-compiling only
install_mingw_deps() {
local bits=$1
local nsis=$2
local pkgs=(gettext wine wine$bits)
[[ "$nsis" == "true" ]] && pkgs+=(nsis ccache)
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y --no-install-recommends "${pkgs[@]}"
}
# macOS build only
install_macos_brew_deps() {
# Uninstall the bundled cmake, it is outdated, and brew does not want to install the newest version with this one present since they are from different taps.
@@ -50,8 +63,8 @@ install_macos_brew_deps() {
}
install_macos_precompiled_deps() {
osver=$1
arch=$2
local osver=$1
local arch=$2
local pkgs=(
cmake wget