From 5164c546b76abe6b6bfe5378e19414987c7dabf0 Mon Sep 17 00:00:00 2001 From: Brett Terpstra Date: Tue, 30 Aug 2022 05:11:08 -0500 Subject: [PATCH] Preparing for 2.0.21 release --- scripts/package.sh | 18 +++++++++--------- src/README.md | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/package.sh b/scripts/package.sh index b54604d..bee0e7f 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -1,6 +1,11 @@ #!/bin/bash +# Package and notarize a command line tool +# package.sh PRODUCT_NAME BUNDLE_ID EXECUTABLE_NAME VERSION -version=$1 +productname=$1 +identifier=$2 +executable=$3 +version=$4 # the email address of your developer account dev_account="me@brettterpstra.com" @@ -14,11 +19,6 @@ dev_team="47TRS7H4BH" # the label of the keychain item which contains an app-specific password dev_keychain_label="Developer-altool" -# put your project's information into these variables - -identifier="com.brettterpstra.gather-cli" -productname="gather-cli" - projectdir='.' builddir="$projectdir" @@ -77,11 +77,11 @@ notarizefile() { # $1: path to file to notarize, $2: identifier xcrun swift build -c release --arch arm64 --arch x86_64 bindir=$(xcrun swift build -c release --arch arm64 --arch x86_64 --show-bin-path) -codesign --force --verbose --sign 'Developer ID Application: Brett Terpstra' -o runtime --timestamp $bindir/gather -codesign --verify -vvvv $bindir/gather +codesign --force --verbose --sign 'Developer ID Application: Brett Terpstra' -o runtime --timestamp $bindir/$executable +codesign --verify -vvvv $bindir/$executable rm -rf package mkdir -p package/usr/local/bin -cp $bindir/gather package/usr/local/bin/ +cp $bindir/$executable package/usr/local/bin/ pkgpath="$builddir/$productname-$version.pkg" diff --git a/src/README.md b/src/README.md index b2cc37c..1fa7b0d 100644 --- a/src/README.md +++ b/src/README.md @@ -4,7 +4,7 @@ ![Howzit banner image](https://cdn3.brettterpstra.com/uploads/2022/08/gatherheader-rb.webp) -Current version: 2.0.19 +Current version: 2.0.20 This project is the successor to read2text, which was a Python based tool that used Arc90 Readability and html2text to convert web URLs to Markdown documents, ready to store in your notes. It takes its name from another of my similar projects that I've since retired. It was this, but with a GUI, and this is infinitely more scriptable and is designed to nestle into your favorite tools and projects.