fix: fullstack server exec ext (#3198)

This commit is contained in:
Miles Murgaw 2024-11-12 08:57:55 -05:00 committed by GitHub
parent ce0c3771ec
commit 8a998e7d49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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