mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-27 19:06:23 +02:00
Better Performance, Updated Compilation. Updated Settings UI, iOS 18.4db1 JIT, etc
This commit is contained in:
parent
bff023563b
commit
bffc5356a8
50 changed files with 6629 additions and 461 deletions
|
@ -3,11 +3,13 @@
|
|||
# Define the destination directory (hardcoded)
|
||||
DESTINATION_DIR="src/MeloNX/Dependencies/Dynamic\ Libraries/Ryujinx.Headless.SDL2.dylib"
|
||||
|
||||
dotnet clean
|
||||
|
||||
# Restore the project
|
||||
dotnet restore
|
||||
|
||||
# Build the project with the specified version
|
||||
dotnet build -c Release
|
||||
# dotnet build -c Release
|
||||
|
||||
# Publish the project with the specified runtime and settings
|
||||
dotnet publish -c Release -r ios-arm64 -p:ExtraDefineConstants=DISABLE_UPDATER src/Ryujinx.Headless.SDL2 --self-contained true
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
XCCONFIG_FILE="${SRCROOT}/MeloNX.xcconfig"
|
||||
# XCCONFIG_FILE="${SRCROOT}/MeloNX.xcconfig"
|
||||
|
||||
# Define the common paths to search for dotnet, including user-specific directories
|
||||
SEARCH_PATHS=(
|
||||
"/usr/local/share/dotnet"
|
||||
"/usr/local/bin"
|
||||
|
@ -14,10 +13,10 @@ SEARCH_PATHS=(
|
|||
"$HOME/Developer"
|
||||
)
|
||||
|
||||
# Initialize DOTNET_PATH as empty
|
||||
|
||||
|
||||
DOTNET_PATH=""
|
||||
|
||||
# Search in the defined paths
|
||||
for path in "${SEARCH_PATHS[@]}"; do
|
||||
if [ -d "$path" ]; then
|
||||
DOTNET_PATH=$(find "$path" -name dotnet -type f -print -quit 2>/dev/null)
|
||||
|
@ -27,20 +26,8 @@ for path in "${SEARCH_PATHS[@]}"; do
|
|||
fi
|
||||
done
|
||||
|
||||
# Check if the path was found
|
||||
if [ -z "$DOTNET_PATH" ]; then
|
||||
echo "Error: dotnet path not found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "dotnet path: $DOTNET_PATH"
|
||||
|
||||
# Escape the path for sed
|
||||
ESCAPED_PATH=$(echo "$DOTNET_PATH" | sed 's/\//\\\//g')
|
||||
|
||||
# Update the xcconfig file
|
||||
sed -i '' "s/^DOTNET = .*/DOTNET = $ESCAPED_PATH/g" "$XCCONFIG_FILE"
|
||||
|
||||
$DOTNET_PATH clean
|
||||
|
||||
echo "Updated MeloNX.xcconfig with DOTNET path: $DOTNET_PATH"
|
||||
echo "$DOTNET_PATH"
|
||||
|
|
21
distribution/ios/xc-compile.sh
Executable file
21
distribution/ios/xc-compile.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
dotnet_output=$(./distribution/ios/get_dotnet.sh)
|
||||
exit_code=$?
|
||||
|
||||
if [ $exit_code -eq 0 ]; then
|
||||
dotnet="$dotnet_output"
|
||||
else
|
||||
echo "error: .NET not found, Please follow the compilation instructions on the gitea." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
$dotnet publish -c Release -r ios-arm64 -p:ExtraDefineConstants=DISABLE_UPDATER src/Ryujinx.Headless.SDL2 --self-contained true
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "warning: Compiling MeloNX failed! Running dotnet clean + restore then Retrying..."
|
||||
|
||||
$dotnet clean
|
||||
|
||||
$dotnet restore
|
||||
|
||||
$dotnet publish -c Release -r ios-arm64 -p:ExtraDefineConstants=DISABLE_UPDATER src/Ryujinx.Headless.SDL2 --self-contained true
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue