- Home /
How to change the file name for the final build?
I have completed my project and am in the process of building it for standalone application on an intel based mac. My problem is that it builds the project with an old name that i used when i first started it. How do i change the build name?
@hansthered - you should post this as a new question rather than an answer to an existing question.
Answer by Mike 3 · May 05, 2010 at 11:08 AM
Edit>Project Settings>Player, change Product Name
yes, but how to get or set the build file name via a script ?
@eskivor: That's a whole other question. See this answer:
var exe_basename = Application.productName.Replace(" ", "");
var exe_path = CombinePaths(Application.dataPath, "..", exe_basename +".exe");
Answer by Cyclops · Mar 11, 2010 at 07:02 PM
Select File->Build Settings, then the Build button, and it prompts you for what filename to use. I presume you've been doing CTRL-B for Build-and-Run?
No I have been going to build and run and entering a fileName. The name that appears only if the screen is windowed. It appears to be an old folder name? Any help please.
Answer by agentsmith · Jul 09, 2010 at 09:36 AM
I'll add one caveat to Mike's answer. In Unity 2.6 if I change the Product Name to something new WITHOUT renaming the project folder too, then I got an error trying to build any of the Apple/Mac builds (from Windows 7). The error: "DirectoryNotFoundException"; however if I can build the Windows version fine. If I change the name of the folder to EXACTLY match the Edit>Project Settings>Player>Product Name then it'll build the Apple versions successfully.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
How to move a build file from mac to windows? 1 Answer
Build options with only resolution 2 Answers
Build setting's options are not working (MAC) 0 Answers
Can't use BuildFile.path. 0 Answers