mac: Set process.mas to true for MAS build
This commit is contained in:
parent
b62e3554dc
commit
7b57a945f8
1 changed files with 4 additions and 0 deletions
|
@ -72,6 +72,10 @@ void AtomBindings::BindTo(v8::Isolate* isolate,
|
||||||
// Do not warn about deprecated APIs.
|
// Do not warn about deprecated APIs.
|
||||||
dict.Set("noDeprecation", true);
|
dict.Set("noDeprecation", true);
|
||||||
|
|
||||||
|
#if defined(MAS_BUILD)
|
||||||
|
dict.Set("mas", true);
|
||||||
|
#endif
|
||||||
|
|
||||||
mate::Dictionary versions;
|
mate::Dictionary versions;
|
||||||
if (dict.Get("versions", &versions)) {
|
if (dict.Get("versions", &versions)) {
|
||||||
versions.Set(ATOM_PROJECT_NAME, ATOM_VERSION_STRING);
|
versions.Set(ATOM_PROJECT_NAME, ATOM_VERSION_STRING);
|
||||||
|
|
Loading…
Reference in a new issue