Skip to content

Commit 6799ff3

Browse files
Attempt to fix macos .pkg installation
1 parent 3144832 commit 6799ff3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88262,7 +88262,7 @@ class MacOSInstaller extends CliInstaller {
8826288262
}
8826388263
core.info("Installing 1Password CLI using MacOS .pkg installer");
8826488264
const pkgPath = await tool_cache.downloadTool(downloadUrl);
88265-
const { stderr } = await execAsync(`sudo installer -pkg ${pkgPath}.pkg -target /`);
88265+
const { stderr } = await execAsync(`sudo installer -pkg ${pkgPath}/op_apple_universal_${this.version}.pkg -target /`);
8826688266
if (stderr) {
8826788267
core.error(stderr);
8826888268
throw new Error(`Failed to install 1Password CLI: ${stderr}`);

src/cli-installer/macos.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class MacOSInstaller extends CliInstaller implements Installer {
6969
core.info("Installing 1Password CLI using MacOS .pkg installer");
7070
const pkgPath = await tc.downloadTool(downloadUrl);
7171
const { stderr } = await execAsync(
72-
`sudo installer -pkg ${pkgPath}.pkg -target /`,
72+
`sudo installer -pkg ${pkgPath}/op_apple_universal_${this.version}.pkg -target /`,
7373
);
7474
if (stderr) {
7575
core.error(stderr);

0 commit comments

Comments
 (0)