@lvce-editor/shared-process 0.52.2 → 0.52.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/shared-process",
|
|
3
|
-
"version": "0.52.
|
|
3
|
+
"version": "0.52.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@lvce-editor/assert": "1.3.0",
|
|
21
|
-
"@lvce-editor/extension-host-helper-process": "0.52.
|
|
21
|
+
"@lvce-editor/extension-host-helper-process": "0.52.3",
|
|
22
22
|
"@lvce-editor/ipc": "14.1.0",
|
|
23
23
|
"@lvce-editor/json-rpc": "5.4.0",
|
|
24
24
|
"@lvce-editor/jsonc-parser": "1.5.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"xdg-basedir": "^5.1.0"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@lvce-editor/embeds-process": "3.
|
|
33
|
+
"@lvce-editor/embeds-process": "3.4.0",
|
|
34
34
|
"@lvce-editor/file-system-process": "2.0.0",
|
|
35
35
|
"@lvce-editor/file-watcher-process": "3.1.0",
|
|
36
36
|
"@lvce-editor/network-process": "4.0.0",
|
|
@@ -2,6 +2,6 @@ import { join } from 'path';
|
|
|
2
2
|
import { fileURLToPath } from 'url';
|
|
3
3
|
export const getBuiltinExtensionsPath = () => {
|
|
4
4
|
const staticServerPath = fileURLToPath(import.meta.resolve('@lvce-editor/static-server'));
|
|
5
|
-
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '
|
|
5
|
+
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', 'edb3c94', 'extensions');
|
|
6
6
|
return builtinExtensionsPath;
|
|
7
7
|
};
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import * as ConnectIpcToElectron from '../ConnectIpcToElectron/ConnectIpcToElectron.js';
|
|
2
2
|
import * as EmbedsProcessPath from '../EmbedsProcessPath/EmbedsProcessPath.js';
|
|
3
3
|
import * as HandleIpc from '../HandleIpc/HandleIpc.js';
|
|
4
|
+
import * as IpcId from '../IpcId/IpcId.js';
|
|
4
5
|
import * as IpcParent from '../IpcParent/IpcParent.js';
|
|
5
6
|
import * as IpcParentType from '../IpcParentType/IpcParentType.js';
|
|
6
|
-
import * as
|
|
7
|
+
import * as Platform from '../Platform/Platform.js';
|
|
8
|
+
import * as Preferences from '../Preferences/Preferences.js';
|
|
9
|
+
const getConfiguredUrl = async () => {
|
|
10
|
+
if (Platform.isProduction) {
|
|
11
|
+
return EmbedsProcessPath.embedsProcessPath;
|
|
12
|
+
}
|
|
13
|
+
const allPreferences = await Preferences.getAll();
|
|
14
|
+
const embedsProcessPath = allPreferences['develop.embedsProcessPath'] || EmbedsProcessPath.embedsProcessPath;
|
|
15
|
+
return embedsProcessPath;
|
|
16
|
+
};
|
|
7
17
|
export const launchEmbedsProcess = async () => {
|
|
18
|
+
const path = await getConfiguredUrl();
|
|
8
19
|
const ipc = await IpcParent.create({
|
|
9
20
|
method: IpcParentType.ElectronUtilityProcess,
|
|
10
|
-
path
|
|
21
|
+
path,
|
|
11
22
|
argv: [],
|
|
12
23
|
stdio: 'inherit',
|
|
13
24
|
name: 'Embeds Process',
|
|
@@ -41,9 +41,9 @@ export const getAppImageName = () => {
|
|
|
41
41
|
export const getSetupName = () => {
|
|
42
42
|
return 'Lvce-Setup';
|
|
43
43
|
};
|
|
44
|
-
export const version = '0.52.
|
|
45
|
-
export const commit = '
|
|
46
|
-
export const date = '2025-05-
|
|
44
|
+
export const version = '0.52.3';
|
|
45
|
+
export const commit = 'edb3c94';
|
|
46
|
+
export const date = '2025-05-13T17:28:16.000Z';
|
|
47
47
|
export const getVersion = () => {
|
|
48
48
|
return version;
|
|
49
49
|
};
|