test: add spec for --require filtering in NODE_OPTIONS (#29501)
This commit is contained in:
parent
d8d6e2ebc0
commit
8040cb788f
3 changed files with 28 additions and 0 deletions
|
@ -938,6 +938,10 @@ void App::SetAppLogsPath(gin_helper::ErrorThrower thrower,
|
|||
|
||||
// static
|
||||
bool App::IsPackaged() {
|
||||
auto env = base::Environment::Create();
|
||||
if (env->HasVar("ELECTRON_FORCE_IS_PACKAGED"))
|
||||
return true;
|
||||
|
||||
base::FilePath exe_path;
|
||||
base::PathService::Get(base::FILE_EXE, &exe_path);
|
||||
base::FilePath::StringType base_name =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue