@@ -2421,24 +2421,28 @@ end levureStandaloneFolder
24212421
24222422
24232423/* *
2424- Summary: Returns the path of the application standalone.
2424+ Summary: Returns the name used for the application executable on the current platform.
2425+
2426+ Description:
2427+ The standalone name is the value assigned to the Name in the Standalone Builder with the
2428+ appropriate suffix added (e.g. `.app` for macOS, `.exe` for Windows, and nothing for Linux).
24252429
24262430Example:
2427- put levureStandaloneFilename () into tAppFilename
2431+ put levureStandaloneName () into tAppExecutable
24282432
2429- Returns: Path to file
2433+ Returns: Name
24302434*/
2431- function levureStandaloneFilename
2432- local tFilename
2435+ function levureStandaloneName
2436+ local tName
24332437
24342438 if the environment is "development" then
2435- put the cRevStandaloneSettings["name" ] of me into tFilename
2439+ put the cRevStandaloneSettings["name" ] of me into tName
24362440 switch the platform
24372441 case "macos"
2438- put ".app" after tFilename
2442+ put ".app" after tName
24392443 break
24402444 case "win32"
2441- put ".exe" after tFilename
2445+ put ".exe" after tName
24422446 break
24432447 case "linux"
24442448 default
@@ -2448,18 +2452,32 @@ function levureStandaloneFilename
24482452 set the itemDelimiter to "/"
24492453 switch the platform
24502454 case "macos"
2451- put specialFolderPath ("engine" ) into tFilename
2452- delete item - 2 to - 1 of tFilename # /Contents/MacOS
2453- put the last item of tFilename into tFilename
2455+ put specialFolderPath ("engine" ) into tName
2456+ delete item - 2 to - 1 of tName # /Contents/MacOS
2457+ put the last item of tName into tName
24542458 break
24552459 case "win32"
24562460 case "linux"
24572461 default
2458- put the last item of the address into tFilename
2462+ put the last item of the address into tName
24592463 break
24602464 end switch
24612465 end if
2462- return levureStandaloneFolder() & "/" & tFilename
2466+
2467+ return tName
2468+ end levureStandaloneName
2469+
2470+
2471+ /* *
2472+ Summary: Returns the path of the application standalone.
2473+
2474+ Example:
2475+ put levureStandaloneFilename() into tAppFilename
2476+
2477+ Returns: Path to file
2478+ */
2479+ function levureStandaloneFilename
2480+ return levureStandaloneFolder() & "/" & levureStandaloneName()
24632481end levureStandaloneFilename
24642482
24652483
0 commit comments