Fixes [Project Generator]: App Bundle File name was refering ReiLua instead of the generated executable name

This commit is contained in:
2025-11-10 02:15:55 +05:30
parent a125b1ef6d
commit 0a248bc35e

View File

@@ -287,8 +287,8 @@ VERSION="__VERSION__"
AUTHOR_NAME="__AUTHOR_NAME__"
DESCRIPTION="__DESCRIPTION__"
if [ ! -f "build/ReiLua" ]; then
echo "ERROR: ReiLua executable not found! Build first."
if [ ! -f "build/$EXECUTABLE_NAME" ]; then
echo "ERROR: Game executable not found! Build first."
exit 1
fi
@@ -299,7 +299,7 @@ echo "Creating $APP_BUNDLE..."
mkdir -p "$APP_BUNDLE/Contents/MacOS"
mkdir -p "$APP_BUNDLE/Contents/Resources"
cp build/ReiLua "$APP_BUNDLE/Contents/MacOS/$APP_NAME"
cp build/$EXECUTABLE_NAME "$APP_BUNDLE/Contents/MacOS/$APP_NAME"
chmod +x "$APP_BUNDLE/Contents/MacOS/$APP_NAME"
# Convert icon