made windows save executable as .exe
This commit is contained in:
@@ -23,6 +23,7 @@ int launcher_build()
|
||||
}
|
||||
ldProject = compileProject.Compile();
|
||||
ldProject.linkType = ELINK_EXECUTABLE;
|
||||
CUtlString szBinaryOutput = CUtlString("%s/bin/funnygame", szOutputDir.GetString());
|
||||
|
||||
if (bStaticBuild)
|
||||
{
|
||||
@@ -68,11 +69,12 @@ int launcher_build()
|
||||
ldProject.libraries.AppendTail("oleaut32");
|
||||
IFileSystem2::CopyFile(CUtlString("%s/bin", szOutputDir.GetString()), "external/windows/libgcc_s_seh-1.dll");
|
||||
IFileSystem2::CopyFile(CUtlString("%s/bin", szOutputDir.GetString()), "external/windows/libwinpthread-1.dll");
|
||||
szBinaryOutput = CUtlString("%s/bin/funnygame.exe", szOutputDir.GetString());
|
||||
}
|
||||
};
|
||||
|
||||
CUtlString outputProject = ldProject.Link();
|
||||
IFileSystem2::CopyFile(CUtlString("%s/bin/funnygame", szOutputDir.GetString()), outputProject);
|
||||
IFileSystem2::CopyFile(szBinaryOutput, outputProject);
|
||||
|
||||
return 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user