fix: fullstack server exec ext (#3198)

This commit is contained in:
Miles Murgaw authored and GitHub committed 2024-11-12 08:57:55 -05:00
1 parent ce0c3771ec
commit 8a998e7d49
1 file changed
+12 -6
+12 -6
View File
@@ -601,12 +601,18 @@ impl AppBundle {
pub(crate) fn server_exe(&self) -> Option<PathBuf> {
if let Some(_server) = &self.server {
return Some(
self.build
.krate
.build_dir(Platform::Server, self.build.build.release)
.join("server"),
);
let mut path = self
.build
.krate
.build_dir(Platform::Server, self.build.build.release);
if cfg!(windows) {
path.push("server.exe");
} else {
path.push("server");
}
return Some(path);
}
None