Skip to content

Commit 85917d1

Browse files
committed
chore: bump kui to pick up notarization fix and knative guidebook fixes
1 parent 54f40c3 commit 85917d1

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

Casks/bump.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
3+
#
4+
# Update ./codeflare.rb to reflect the sha256sums of the latest macOS
5+
# electron builds. This assumes that those builds have already been
6+
# performed, and will fail otherwise.
7+
#
8+
9+
set -e
10+
set -o pipefail
11+
12+
SCRIPTDIR=$(cd $(dirname "$0") && pwd)
13+
14+
x64=$(sha256sum "$SCRIPTDIR"/../dist/electron/CodeFlare-darwin-x64.tar.bz2 | cut -f1 -d' ')
15+
arm64=$(sha256sum "$SCRIPTDIR"/../dist/electron/CodeFlare-darwin-arm64.tar.bz2 | cut -f1 -d' ')
16+
17+
cp "$SCRIPTDIR"/codeflare.rb "$SCRIPTDIR"/codeflare.rb.bak
18+
19+
cat "$SCRIPTDIR"/codeflare-template.rb \
20+
| sed -r "s/{{ x64 }}/$x64/g" \
21+
| sed -r "s/{{ arm64 }}/$arm64/g" \
22+
> "$SCRIPTDIR"/codeflare.rb

Casks/codeflare-template.rb

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
cask "codeflare" do
2+
version "0.9.3"
3+
4+
name "CodeFlare"
5+
desc "CLI for Project CodeFlare"
6+
homepage "https://github.com/project-codeflare/codeflare-cli"
7+
8+
if Hardware::CPU.intel?
9+
url "https://github.com/project-codeflare/codeflare-cli/releases/download/v#{version}/CodeFlare-darwin-x64.tar.bz2"
10+
sha256 "{{ x64 }}"
11+
app "CodeFlare-darwin-x64/CodeFlare.app"
12+
else
13+
url "https://github.com/project-codeflare/codeflare-cli/releases/download/v#{version}/CodeFlare-darwin-arm64.tar.bz2"
14+
sha256 "{{ arm64 }}"
15+
app "CodeFlare-darwin-arm64/CodeFlare.app"
16+
end
17+
18+
livecheck do
19+
url :url
20+
strategy :git
21+
regex(/^v(\d+(?:\.\d+)*)$/)
22+
end
23+
24+
binary "#{appdir}/CodeFlare.app/Contents/Resources/codeflare"
25+
26+
zap trash: "~/Library/Application\ Support/CodeFlare"
27+
end

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "dist/headless/codeflare.min.js",
66
"scripts": {
77
"release": "dotenv -e ~/.codeflare-release.env release-it -- -V",
8+
"release:cask": "./Casks/bump.sh",
89
"watch:source": "tsc --build . --watch",
910
"compile": "npx tsc --build . && npx kui-babel && npx kui-prescan",
1011
"compile:clean": "tsc --build tsconfig.json --clean",
@@ -91,7 +92,10 @@
9192
"hooks": {
9293
"before:release": [
9394
"npm ci",
94-
"npm run build:electron:all"
95+
"rm -rf ./dist/electron",
96+
"rm -rf ./dist/headless",
97+
"npm run build:electron:all",
98+
"npm run release:cask"
9599
]
96100
},
97101
"npm": {

0 commit comments

Comments
 (0)