diff --git a/src/client/lib/CliAcquisition.ts b/src/client/lib/CliAcquisition.ts index 2b696305..39cd3246 100644 --- a/src/client/lib/CliAcquisition.ts +++ b/src/client/lib/CliAcquisition.ts @@ -119,9 +119,9 @@ export class CliAcquisition implements IDisposable { case 'win32': return 'microsoft.powerapps.cli'; case 'darwin': - return 'microsoft.powerapps.cli.Core.osx-x64'; + return 'microsoft.powerapps.cli.core.osx-x64'; case 'linux': - return 'microsoft.powerapps.cli.Core.linux-x64'; + return 'microsoft.powerapps.cli.core.linux-x64'; default: throw new Error(`Unsupported OS platform for pac CLI: ${platformName}`); } diff --git a/src/client/test/unit/CliAcquisition.test.ts b/src/client/test/unit/CliAcquisition.test.ts index 5362e08f..8d0ac734 100644 --- a/src/client/test/unit/CliAcquisition.test.ts +++ b/src/client/test/unit/CliAcquisition.test.ts @@ -76,6 +76,7 @@ describe('CliAcquisition', () => { const exePath = await acq.ensureInstalled(); expect(exePath).to.be.not.undefined; + expect(fs.existsSync(path.resolve(exePath, 'pac'))).to.be.true; expect(spy.infoMessages).to.be.not.empty; expect(spy.noErrors).to.be.true; }).timeout(10000); @@ -87,6 +88,7 @@ describe('CliAcquisition', () => { const exePath = await acq.ensureInstalled(); expect(exePath).to.be.not.undefined; + expect(fs.existsSync(path.resolve(exePath, 'pac'))).to.be.true; expect(spy.infoMessages).to.be.not.empty; expect(spy.noErrors).to.be.true; const versionInfo = fs.readJSONSync(trackerFile); diff --git a/src/client/test/unit/data/microsoft.powerapps.cli.0.9.99.nupkg b/src/client/test/unit/data/microsoft.powerapps.cli.0.9.99.nupkg index 0c59f611..fef58b8c 100644 --- a/src/client/test/unit/data/microsoft.powerapps.cli.0.9.99.nupkg +++ b/src/client/test/unit/data/microsoft.powerapps.cli.0.9.99.nupkg @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:494c9dc6f2f2c554bcc2d36d8bc24325178df74834cd7a21d0b068812ba037fc -size 908 +oid sha256:022279b005841b65b9082ff5ad6a9271c05b0f0d71516cb073b679956df25fb7 +size 548 diff --git a/src/client/test/unit/data/microsoft.powerapps.cli.core.osx-x64.0.9.99.nupkg b/src/client/test/unit/data/microsoft.powerapps.cli.core.osx-x64.0.9.99.nupkg index b45a8591..fef58b8c 100644 --- a/src/client/test/unit/data/microsoft.powerapps.cli.core.osx-x64.0.9.99.nupkg +++ b/src/client/test/unit/data/microsoft.powerapps.cli.core.osx-x64.0.9.99.nupkg @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9277c85d9b999f66b1a161f30d94884b005d6c2810e104f890438ce372175373 -size 1012 +oid sha256:022279b005841b65b9082ff5ad6a9271c05b0f0d71516cb073b679956df25fb7 +size 548