Merge branch 'main' of https://git.nianxx.cn/wangxuming/makelore
# Conflicts: # electron/coding-runtime/pi/extensions/makelore-runtime.ts
This commit is contained in:
@@ -678,8 +678,9 @@ export async function verifyPiProductArtifact({ projectRoot, executable }) {
|
||||
if (!await pathExists(appExecutable)) throw new Error(`Product executable is missing: ${appExecutable}`);
|
||||
const resourcesDirectory = packagedResourcesDirectory(appExecutable);
|
||||
const runtimeRoot = join(resourcesDirectory, 'pi-runtime');
|
||||
const agentServerPath = join(resourcesDirectory, 'resources', 'pi-agent-server.mjs');
|
||||
const appAsar = join(resourcesDirectory, 'app.asar');
|
||||
for (const required of [runtimeRoot, appAsar]) {
|
||||
for (const required of [runtimeRoot, agentServerPath, appAsar]) {
|
||||
if (!await pathExists(required)) throw new Error(`Product artifact resource is missing: ${required}`);
|
||||
}
|
||||
|
||||
@@ -761,6 +762,7 @@ export async function verifyPiProductArtifact({ projectRoot, executable }) {
|
||||
appAsar,
|
||||
runtimeRoot,
|
||||
cliPath: join(runtimeRoot, ...PI_RUNTIME_CLI_ENTRY.split('/')),
|
||||
agentServerPath,
|
||||
},
|
||||
platform: {
|
||||
platform: runtimePlatform.platform,
|
||||
|
||||
Reference in New Issue
Block a user