Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

Commit

Permalink
Use xcrun to invoke stapler to support non-standard locations, bump u…
Browse files Browse the repository at this point in the history
…p bottle generation to include Monterey.
  • Loading branch information
davidvartan committed Feb 4, 2022
1 parent f38d06f commit 1c26487
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: |
# Experimental: brew the bottle ourselves to attach it to this release
set -eu
OS_NAME=big_sur
OS_NAME=monterey
VERSION=${GITHUB_REF#refs/tags/v*}
BOTTLE_DIR=bottle_build
BOTTLE_BIN_DIR=$BOTTLE_DIR/${{ env.PROJECT_NAME }}/$VERSION/bin
Expand All @@ -38,7 +38,7 @@ jobs:
id: rosetta_m1_bottle
run: |
set -eu
OS_NAME=arm64_big_sur
OS_NAME=arm64_monterey
VERSION=${GITHUB_REF#refs/tags/v*}
BOTTLE_NAME=${{ env.PROJECT_NAME }}-$VERSION.$OS_NAME.bottle.tar.gz
Expand All @@ -47,7 +47,7 @@ jobs:
id: vprev_bottle
run: |
set -eu
OS_NAME=catalina
OS_NAME=big_sur
VERSION=${GITHUB_REF#refs/tags/v*}
BOTTLE_NAME=${{ env.PROJECT_NAME }}-$VERSION.$OS_NAME.bottle.tar.gz
Expand All @@ -56,7 +56,7 @@ jobs:
id: vprev_prev_bottle
run: |
set -eu
OS_NAME=mojave
OS_NAME=catalina
VERSION=${GITHUB_REF#refs/tags/v*}
BOTTLE_NAME=${{ env.PROJECT_NAME }}-$VERSION.$OS_NAME.bottle.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "xcnotary"
version = "0.4.8"
version = "0.4.9"
authors = ["David Vartan <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions src/notarize/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ impl NotarizeOp {
}

fn staple(&self) -> Result<(), OperationError> {
let output = Command::new("/usr/bin/stapler")
.arg("staple")
let output = Command::new("/usr/bin/xcrun")
.args(["stapler", "staple"])
.arg(self.input_path.as_os_str())
.output()
.unwrap();
Expand Down

0 comments on commit 1c26487

Please sign in to comment.