Skip to content

Commit

Permalink
Merge pull request #85 from RobotsAndPencils/fix/useCorrectArchitecture
Browse files Browse the repository at this point in the history
fix: support intel mac architecture
  • Loading branch information
aerickson14 authored Oct 16, 2024
2 parents 325bfa6 + 9516ebc commit 0222226
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 3.0.2
## 3.1.0

- Adds ability to turn on debug logging for 1Password CLI commands
- Adds back support for intel based mac

## 3.0.0

Expand Down
6 changes: 3 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "1password-action",
"version": "3.0.4",
"version": "3.1.0",
"private": true,
"description": "Import items from 1Password securely",
"main": "lib/main.js",
Expand Down
6 changes: 3 additions & 3 deletions src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ const KEY_FINGERPRINT = '3FEF9748469ADBE15DA7CA80AC2D62742012EA22'

export async function install(onePasswordVersion: string): Promise<void> {
const platform = os.platform().toLowerCase()
let arch = os.arch() // This will return 'x64' for Intel and 'arm64' for Apple Silicon

let arch = 'amd64'
if (platform === 'darwin') {
arch = 'arm64'
if (arch === 'x64') {
arch = 'amd64'
}
const onePasswordUrl = `https://cache.agilebits.com/dist/1P/op2/pkg/v${onePasswordVersion}/op_${platform}_${arch}_v${onePasswordVersion}.zip`
core.info(
Expand Down

0 comments on commit 0222226

Please sign in to comment.