From 1493bec26059aa62bd613c61e341523fa39dc85f Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 15 Jan 2025 22:53:56 +0800 Subject: [PATCH] fix package installdir --- dist/index.js | 2 +- src/package-cache.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index e376dc4..7f3971d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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; diff --git a/src/package-cache.ts b/src/package-cache.ts index d61dd7a..0bd36aa 100644 --- a/src/package-cache.ts +++ b/src/package-cache.ts @@ -22,7 +22,7 @@ async function getPackageCachePath(): Promise { 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;