fix package installdir

This commit is contained in:
ruki
2025-01-15 22:53:56 +08:00
Unverified
parent 7185b3bf3b
commit 1493bec260
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -82722,7 +82722,7 @@ async function getPackageCachePath() {
packageCachePath += data.toString();
},
};
await (0, exec_1.exec)('xmake', ['l', 'core.package.package.installdir'], options);
await (0, exec_1.exec)('xmake', ['l', '-c', 'import("core.package.package"); print(package.installdir())'], options);
packageCachePath = packageCachePath.trim();
core.info(`packageCachePath: ${packageCachePath}`);
return packageCachePath;
+1 -1
View File
@@ -22,7 +22,7 @@ async function getPackageCachePath(): Promise<string> {
packageCachePath += data.toString();
},
};
await exec('xmake', ['l', 'core.package.package.installdir'], options);
await exec('xmake', ['l', '-c', 'import("core.package.package"); print(package.installdir())'], options);
packageCachePath = packageCachePath.trim();
core.info(`packageCachePath: ${packageCachePath}`);
return packageCachePath;