init
This commit is contained in:
28
mc_test/node_modules/@electron/universal/entry-asar/has-asar.js
generated
vendored
Executable file
28
mc_test/node_modules/@electron/universal/entry-asar/has-asar.js
generated
vendored
Executable file
@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const electron_1 = require("electron");
|
||||
const path_1 = __importDefault(require("path"));
|
||||
if (process.arch === 'arm64') {
|
||||
setPaths('arm64');
|
||||
}
|
||||
else {
|
||||
setPaths('x64');
|
||||
}
|
||||
function setPaths(platform) {
|
||||
// This should return the full path, ending in something like
|
||||
// Notion.app/Contents/Resources/app.asar
|
||||
const appPath = electron_1.app.getAppPath();
|
||||
const asarFile = `app-${platform}.asar`;
|
||||
// Maybe we'll handle this in Electron one day
|
||||
if (path_1.default.basename(appPath) === 'app.asar') {
|
||||
const platformAppPath = path_1.default.join(path_1.default.dirname(appPath), asarFile);
|
||||
// This is an undocumented API. It exists.
|
||||
electron_1.app.setAppPath(platformAppPath);
|
||||
}
|
||||
process._archPath = require.resolve(`../${asarFile}`);
|
||||
}
|
||||
require(process._archPath);
|
||||
//# sourceMappingURL=has-asar.js.map
|
||||
1
mc_test/node_modules/@electron/universal/entry-asar/has-asar.js.map
generated
vendored
Executable file
1
mc_test/node_modules/@electron/universal/entry-asar/has-asar.js.map
generated
vendored
Executable file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"has-asar.js","sourceRoot":"","sources":["has-asar.ts"],"names":[],"mappings":";;;;;AAAA,uCAA+B;AAC/B,gDAAwB;AAExB,IAAI,OAAO,CAAC,IAAI,KAAK,OAAO,EAAE;IAC5B,QAAQ,CAAC,OAAO,CAAC,CAAC;CACnB;KAAM;IACL,QAAQ,CAAC,KAAK,CAAC,CAAC;CACjB;AAED,SAAS,QAAQ,CAAC,QAAgB;IAChC,6DAA6D;IAC7D,yCAAyC;IACzC,MAAM,OAAO,GAAG,cAAG,CAAC,UAAU,EAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,OAAO,QAAQ,OAAO,CAAC;IAExC,8CAA8C;IAC9C,IAAI,cAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,UAAU,EAAE;QACzC,MAAM,eAAe,GAAG,cAAI,CAAC,IAAI,CAAC,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;QAEnE,0CAA0C;QAC1C,cAAG,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;KACjC;IAED,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,CAAC,CAAC;AACxD,CAAC;AAED,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC"}
|
||||
28
mc_test/node_modules/@electron/universal/entry-asar/no-asar.js
generated
vendored
Executable file
28
mc_test/node_modules/@electron/universal/entry-asar/no-asar.js
generated
vendored
Executable file
@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const electron_1 = require("electron");
|
||||
const path_1 = __importDefault(require("path"));
|
||||
if (process.arch === 'arm64') {
|
||||
setPaths('arm64');
|
||||
}
|
||||
else {
|
||||
setPaths('x64');
|
||||
}
|
||||
function setPaths(platform) {
|
||||
// This should return the full path, ending in something like
|
||||
// Notion.app/Contents/Resources/app
|
||||
const appPath = electron_1.app.getAppPath();
|
||||
const appFolder = `app-${platform}`;
|
||||
// Maybe we'll handle this in Electron one day
|
||||
if (path_1.default.basename(appPath) === 'app') {
|
||||
const platformAppPath = path_1.default.join(path_1.default.dirname(appPath), appFolder);
|
||||
// This is an undocumented private API. It exists.
|
||||
electron_1.app.setAppPath(platformAppPath);
|
||||
}
|
||||
process._archPath = require.resolve(`../${appFolder}`);
|
||||
}
|
||||
require(process._archPath);
|
||||
//# sourceMappingURL=no-asar.js.map
|
||||
1
mc_test/node_modules/@electron/universal/entry-asar/no-asar.js.map
generated
vendored
Executable file
1
mc_test/node_modules/@electron/universal/entry-asar/no-asar.js.map
generated
vendored
Executable file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"no-asar.js","sourceRoot":"","sources":["no-asar.ts"],"names":[],"mappings":";;;;;AAAA,uCAA+B;AAC/B,gDAAwB;AAExB,IAAI,OAAO,CAAC,IAAI,KAAK,OAAO,EAAE;IAC5B,QAAQ,CAAC,OAAO,CAAC,CAAC;CACnB;KAAM;IACL,QAAQ,CAAC,KAAK,CAAC,CAAC;CACjB;AAED,SAAS,QAAQ,CAAC,QAAgB;IAChC,6DAA6D;IAC7D,oCAAoC;IACpC,MAAM,OAAO,GAAG,cAAG,CAAC,UAAU,EAAE,CAAC;IACjC,MAAM,SAAS,GAAG,OAAO,QAAQ,EAAE,CAAC;IAEpC,8CAA8C;IAC9C,IAAI,cAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,KAAK,EAAE;QACpC,MAAM,eAAe,GAAG,cAAI,CAAC,IAAI,CAAC,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,CAAC;QAEpE,kDAAkD;QAClD,cAAG,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;KACjC;IAED,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,SAAS,EAAE,CAAC,CAAC;AACzD,CAAC;AAED,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC"}
|
||||
Reference in New Issue
Block a user