diff options
| author | Indrajith K L | 2025-11-10 02:15:55 +0530 |
|---|---|---|
| committer | Indrajith K L | 2025-11-10 02:15:55 +0530 |
| commit | 0a248bc35e152355bdd78e1169a13c54be945bc8 (patch) | |
| tree | 57853b04591a4aa21a151657ba45d6b0db2a1972 | |
| parent | a125b1ef6d848bcdd4fb2831b87fb2be1136883c (diff) | |
| download | reilua-enhanced-0a248bc35e152355bdd78e1169a13c54be945bc8.tar.gz reilua-enhanced-0a248bc35e152355bdd78e1169a13c54be945bc8.tar.bz2 reilua-enhanced-0a248bc35e152355bdd78e1169a13c54be945bc8.zip | |
Fixes [Project Generator]: App Bundle File name was refering ReiLua instead of the generated executable namemain
| -rwxr-xr-x | scripts/create_project.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/create_project.sh b/scripts/create_project.sh index 9e71f8a..25c9651 100755 --- a/scripts/create_project.sh +++ b/scripts/create_project.sh @@ -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 @@ -558,7 +558,7 @@ cat > "$PROJECT_DIR/game/main.lua" << EOFLUA function RL.init() RL.SetWindowTitle( "$PROJECT_NAME" ) RL.SetWindowState( RL.FLAG_VSYNC_HINT ) - + print("$PROJECT_NAME initialized!") print("Version: $VERSION") print("Author: $AUTHOR_NAME") @@ -567,7 +567,7 @@ end function RL.update( delta ) -- Game logic goes here -- delta is time since last frame in seconds - + if RL.IsKeyPressed( RL.KEY_ESCAPE ) then RL.CloseWindow() end @@ -575,7 +575,7 @@ end function RL.draw() RL.ClearBackground( RL.RAYWHITE ) - + RL.DrawText( "$PROJECT_NAME", { 10, 10 }, 40, RL.BLACK ) RL.DrawText( "Press ESC to exit", { 10, 60 }, 20, RL.DARKGRAY ) end |
