From eca2a14988e0d48923f4929571c8f283ca7203a9 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Thu, 13 Jul 2023 20:41:39 +0300 Subject: [PATCH] github.com/sindresorhus/macos-term-size (#2331) * github.com/sindresorhus/macos-term-size * hmm... Will the compiled binary run? * codesign * check codesign --------- Co-authored-by: Jacob Heider --- .../sindresorhus/macos-term-size/package.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projects/github.com/sindresorhus/macos-term-size/package.yml diff --git a/projects/github.com/sindresorhus/macos-term-size/package.yml b/projects/github.com/sindresorhus/macos-term-size/package.yml new file mode 100644 index 00000000..0acf9933 --- /dev/null +++ b/projects/github.com/sindresorhus/macos-term-size/package.yml @@ -0,0 +1,30 @@ +distributable: + url: https://github.com/sindresorhus/macos-term-size/releases/download/v{{version}}/term-size.zip + strip-components: 1 + +warnings: + - vendored + +versions: + github: sindresorhus/macos-term-size + +platforms: + - darwin + +build: + script: + - mkdir -p {{prefix}}/bin + - run: | + CODESIGN="$(codesign -dvv term-size 2>&1)" + echo $CODESIGN | grep "Authority=$AUTHORITY" + echo $CODESIGN | grep "TeamIdentifier=$TEAMIDENTIFIER" + - install term-size {{prefix}}/bin + env: + AUTHORITY: "Developer ID Application: Node.js Foundation (HX7739G8FX)" + TEAMIDENTIFIER: HX7739G8FX + +provides: + - bin/term-size + +# FIXME: how do we test this? +test: ls -x {{prefix}}/bin/term-size | grep {{version}}