Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Builds via AppBuilder Need to Include EXE Extension #5

Open
TheTalisman opened this issue Jan 19, 2016 · 0 comments
Open

Builds via AppBuilder Need to Include EXE Extension #5

TheTalisman opened this issue Jan 19, 2016 · 0 comments

Comments

@TheTalisman
Copy link

When using the described AppBuilder to generate builds for Windows the name passed to BuildPipeline needs to include the extension '.exe' for users to be able to run the generated build.

For Example, the StartBuildProcess() method in the SettingsWindow class can be changed as follows:

private void StartBuildProcess() {
     Builder.CreateBuildFolder();
   // We iterate over the toggle values to check what to build
     foreach(KeyValuePair<BuildTarget, string> entry in _targets) {
       if(GetPlatformToggleValue(entry.Key)) {
            if (entry.Key == BuildTarget.StandaloneWindows) {
                        Builder.Build(entry.Key, "build.exe");
            }
            else {
                        Builder.Build(entry.Key, "build");
            }
        }
     }
     EditorUtility.DisplayDialog ("AppBuilder", "Build process has finished!", "Ok");
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant