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

@ -73,6 +73,14 @@ int main(int argc, char* argv[]) {
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).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 {
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());
@ -80,6 +88,7 @@ int main(int argc, char* argv[]) {
system(std::format("cd {} && ./{}", (project.path.parent_path()/binDir).string(), project.name).c_str());
}
}
}
} else {
std::cout << std::get<1>(config).errors << std::endl;
return 1;