@lvce-editor/main-process 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mainProcessMain.js +11 -11
- package/package.json +1 -1
package/dist/mainProcessMain.js
CHANGED
|
@@ -5,7 +5,7 @@ import { inspect } from 'node:util';
|
|
|
5
5
|
import { spawn } from 'node:child_process';
|
|
6
6
|
import { createWriteStream, readFileSync } from 'node:fs';
|
|
7
7
|
import * as NodePath from 'node:path';
|
|
8
|
-
import { dirname
|
|
8
|
+
import { dirname } from 'node:path';
|
|
9
9
|
import require$$0 from 'tty';
|
|
10
10
|
import require$$1 from 'util';
|
|
11
11
|
import require$$0$1 from 'os';
|
|
@@ -3755,8 +3755,12 @@ const getPortTuple = () => {
|
|
|
3755
3755
|
};
|
|
3756
3756
|
};
|
|
3757
3757
|
|
|
3758
|
+
const join = (...paths) => {
|
|
3759
|
+
return NodePath.join(...paths);
|
|
3760
|
+
};
|
|
3761
|
+
|
|
3758
3762
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
3759
|
-
const root = process.env.LVCE_ROOT || join
|
|
3763
|
+
const root = process.env.LVCE_ROOT || join(__dirname, '../../../../..');
|
|
3760
3764
|
|
|
3761
3765
|
const {
|
|
3762
3766
|
env: env$1,
|
|
@@ -3766,10 +3770,10 @@ const isLinux = platform === 'linux';
|
|
|
3766
3770
|
const isProduction = false;
|
|
3767
3771
|
const homeDirectory = homedir();
|
|
3768
3772
|
const applicationName = 'lvce-oss';
|
|
3769
|
-
const xdgCache = env$1.XDG_CACHE_HOME || (homeDirectory ? join
|
|
3770
|
-
const xdgData = env$1.XDG_DATA_HOME || (homeDirectory ? join
|
|
3771
|
-
join
|
|
3772
|
-
const chromeUserDataPath = xdgCache ? join
|
|
3773
|
+
const xdgCache = env$1.XDG_CACHE_HOME || (homeDirectory ? join(homeDirectory, '.cache') : undefined);
|
|
3774
|
+
const xdgData = env$1.XDG_DATA_HOME || (homeDirectory ? join(homeDirectory, '.local', 'share') : undefined);
|
|
3775
|
+
join(xdgData || tmpdir(), applicationName);
|
|
3776
|
+
const chromeUserDataPath = xdgCache ? join(xdgCache, applicationName, 'userdata') : '';
|
|
3773
3777
|
const scheme = 'lvce-oss';
|
|
3774
3778
|
const getSessionId = () => {
|
|
3775
3779
|
return process.env.SESSION_ID || `persist:${scheme}`;
|
|
@@ -3778,7 +3782,7 @@ const getSharedProcessPath = () => {
|
|
|
3778
3782
|
if (process.env.LVCE_SHARED_PROCESS_PATH) {
|
|
3779
3783
|
return process.env.LVCE_SHARED_PROCESS_PATH;
|
|
3780
3784
|
}
|
|
3781
|
-
return join
|
|
3785
|
+
return join(root, 'packages', 'shared-process', 'src', 'sharedProcessMain.ts');
|
|
3782
3786
|
};
|
|
3783
3787
|
|
|
3784
3788
|
const getSharedProcessArgv = () => {
|
|
@@ -9041,10 +9045,6 @@ const ElectronWebContentsView_ipc = {
|
|
|
9041
9045
|
name: name$5
|
|
9042
9046
|
};
|
|
9043
9047
|
|
|
9044
|
-
const join = (...paths) => {
|
|
9045
|
-
return NodePath.join(...paths);
|
|
9046
|
-
};
|
|
9047
|
-
|
|
9048
9048
|
const webContentsViewErrorPath = join(root, 'packages', 'main-process', 'pages', 'error', 'error.html');
|
|
9049
9049
|
|
|
9050
9050
|
// TODO create output channel for browser view debug logs
|