Skip to content

Commit

Permalink
[setup] Exit silently on generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Apr 6, 2024
1 parent 8f02501 commit e6f2f49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sw/client/common/command/setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ SUBCOMMAND_DECL(setup)
auto id = get_sw_registry_key();
auto id1 = id + L".1";
auto _id = L"." + id;
auto base_command = prog + L" -pause-on-exit";
auto base_command = prog;
auto end = L" %1 %*"s;
auto make_command = [&](auto && ... args) {
auto c = base_command;
Expand All @@ -259,7 +259,7 @@ SUBCOMMAND_DECL(setup)

// we run these files & pause on exit, so user could check what went wrong
winreg::RegKey p(HKEY_CLASSES_ROOT, id1 + L"\\shell\\open\\command");
p.SetStringValue(L"", run_command(L"-shell -config r -config-name r"));
p.SetStringValue(L"", run_command(L"-pause-on-exit -shell -config r -config-name r"));

path shell_key = L"SystemFileAssociations";
shell_key /= _id;
Expand Down Expand Up @@ -319,9 +319,9 @@ SUBCOMMAND_DECL(setup)
f2(static_, cmd + L" -static");
};
auto generate = add_submenu(sw, L"generate", L"Generate");
f(generate, L"generate");
f(generate, L" -pause-on-error generate");
auto run = add_submenu(sw, L"run", L"Run");
f(run, L" -shell run"); // we use shell arg here to change working dir to storage dir
f(run, L" -pause-on-exit -shell run"); // we use shell arg here to change working dir to storage dir
}
}

Expand Down

0 comments on commit e6f2f49

Please sign in to comment.