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
@@ -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;