added wine execute
Some checks failed
demo.yaml / added wine execute (push) Failing after 0s

This commit is contained in:
Jorijn van der Graaf 2026-02-24 02:47:46 +01:00
commit 48417a4c7c

View file

@ -72,12 +72,21 @@ int main(int argc, char* argv[]) {
std::tuple<Configuration&, BuildResult> config = project.Build(argument);
if(std::get<1>(config).errors.empty()) {
if(run){
std::string binDir = std::format("{}/{}", project.binDir.string(), std::get<0>(config).name);
if(std::get<0>(config).debug) {
system(std::format("cd {} && ./{}", (project.path.parent_path()/binDir).string(), project.name).c_str());
//system(std::format("cd {} && lldb -o run {}", (fs::path(projectPath).parent_path()/binDir).string(), project.name).c_str());
std::string binDir = std::format("{}/{}", project.binDir.string(), std::get<0>(config).name);
if(std::get<0>(config).target == "x86_64-w64-mingw32") {
if(std::get<0>(config).debug) {
system(std::format("cd {} && wine ./{}.exe", (project.path.parent_path()/binDir).string(), project.name).c_str());
//system(std::format("cd {} && lldb -o run {}", (fs::path(projectPath).parent_path()/binDir).string(), project.name).c_str());
} else {
system(std::format("cd {} && wine ./{}.exe", (project.path.parent_path()/binDir).string(), project.name).c_str());
}
} else {
system(std::format("cd {} && ./{}", (project.path.parent_path()/binDir).string(), project.name).c_str());
if(std::get<0>(config).debug) {
system(std::format("cd {} && ./{}", (project.path.parent_path()/binDir).string(), project.name).c_str());
//system(std::format("cd {} && lldb -o run {}", (fs::path(projectPath).parent_path()/binDir).string(), project.name).c_str());
} else {
system(std::format("cd {} && ./{}", (project.path.parent_path()/binDir).string(), project.name).c_str());
}
}
}
} else {