mirror of
https://gitlab.acidiclight.dev/sociallydistant/sociallydistant.git
synced 2025-01-22 09:31:47 -05:00
75c8b5432c
* Fix crash on lower screen resolutions when clicking on Terminal Mouse coordinates were not being scaled from screenspace into canvas space, resulting in a crash when clicking on the Terminal. Also add documentation for internal VirtualScreen implementation, and define dynamic properties for CanvasWidth and CanvasHeight in the UI system. Issue: #13 Signed-off-by: Ritchie Frodomar <alkalinethunder@gmail.com> * Remove old GuiService virtual screen and document IVirtualScreen Whoever wrote that old code was high, fuck... wait a minute... Signed-off-by: Ritchie Frodomar <alkalinethunder@gmail.com> * Fix various errors after emergency rebase * Remove Rider caches * Attempt to enable Wayland support * Add support for enabling/disabling Wayland support on Linux * Move SettingsManager to GameApplication so settings can be loaded before the game engine fully boots. * Test commit. Signed-off-by: Ritchie Frodomar <alkalinethunder@gmail.com> * Move Terminals to their own tile * Add support for getting CPU name on Windows via registry * Add support for disabling background blur * Fix window hints not being restored when switching between main tool tabs * Testing the DCO acknowledgement job Signed-off-by: Ritchie Frodomar <alkalinethunder@gmail.com>
48 lines
1.7 KiB
Bash
Executable file
48 lines
1.7 KiB
Bash
Executable file
#!/bin/bash
|
|
# This script is used to setup the needed Wine environment
|
|
# so that mgfxc can be run on Linux / macOS systems.
|
|
|
|
# check dependencies
|
|
if ! type "wine64" > /dev/null 2>&1
|
|
then
|
|
echo "wine64 not found"
|
|
exit 1
|
|
fi
|
|
|
|
if ! type "7z" > /dev/null 2>&1
|
|
then
|
|
echo "7z not found"
|
|
exit 1
|
|
fi
|
|
|
|
# init wine stuff
|
|
export WINEARCH=win64
|
|
export WINEPREFIX=$HOME/.winemonogame
|
|
wine64 wineboot
|
|
|
|
TEMP_DIR="${TMPDIR:-/tmp}"
|
|
SCRIPT_DIR="$TEMP_DIR/winemg2"
|
|
mkdir -p "$SCRIPT_DIR"
|
|
|
|
# get dotnet
|
|
DOTNET_URL="https://download.visualstudio.microsoft.com/download/pr/adeab8b1-1c44-41b2-b12a-156442f307e9/65ebf805366410c63edeb06e53959383/dotnet-sdk-3.1.201-win-x64.zip"
|
|
curl $DOTNET_URL --output "$SCRIPT_DIR/dotnet-sdk.zip"
|
|
7z x "$SCRIPT_DIR/dotnet-sdk.zip" -o"$WINEPREFIX/drive_c/windows/system32/"
|
|
|
|
# Once more to grab .NET 8
|
|
DOTNET_URL="https://download.visualstudio.microsoft.com/download/pr/93d39941-31b3-4c50-b124-0de50d464fe5/93a0dddb827811ff50586cb361f613b0/dotnet-sdk-8.0.303-win-x64.zip"
|
|
curl $DOTNET_URL --output "$SCRIPT_DIR/dotnet-sdk-8.zip"
|
|
7z x "$SCRIPT_DIR/dotnet-sdk-8.zip" -o"$WINEPREFIX/drive_c/windows/system32/"
|
|
|
|
# get d3dcompiler_47
|
|
FIREFOX_URL="https://download-installer.cdn.mozilla.net/pub/firefox/releases/62.0.3/win64/ach/Firefox%20Setup%2062.0.3.exe"
|
|
curl $FIREFOX_URL --output "$SCRIPT_DIR/firefox.exe"
|
|
7z x "$SCRIPT_DIR/firefox.exe" -o"$SCRIPT_DIR/firefox_data/"
|
|
cp -f "$SCRIPT_DIR/firefox_data/core/d3dcompiler_47.dll" "$WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll"
|
|
|
|
# append MGFXC_WINE_PATH env variable
|
|
echo "export MGFXC_WINE_PATH=$HOME/.winemonogame" >> ~/.profile
|
|
echo "export MGFXC_WINE_PATH=$HOME/.winemonogame" >> ~/.zprofile
|
|
|
|
# cleanup
|
|
rm -rf "$SCRIPT_DIR"
|