Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ jobs:
macos_arm_sha=$(grep "codes-$TAG-aarch64-apple-darwin.tar.gz" SHA256SUMS.txt | awk '{print $1}')
sed -i "s|version \".*\"|version \"$VERSION\"|" ../Formula/codes.rb
sed -i -E "s|/download/[^/]+/|/download/$TAG/|g" ../Formula/codes.rb
sed -i -E "s|codes-v[0-9]+\\.[0-9]+\\.[0-9]+-aarch64-apple-darwin\\.tar\\.gz|codes-$TAG-aarch64-apple-darwin.tar.gz|" ../Formula/codes.rb
sed -i -E "s|codes-v[0-9]+\\.[0-9]+\\.[0-9]+-x86_64-apple-darwin\\.tar\\.gz|codes-$TAG-x86_64-apple-darwin.tar.gz|" ../Formula/codes.rb
sed -i -E "s|codes-v[0-9]+\\.[0-9]+\\.[0-9]+-x86_64-unknown-linux-gnu\\.tar\\.gz|codes-$TAG-x86_64-unknown-linux-gnu.tar.gz|" ../Formula/codes.rb
sed -i "s|sha256 \".*\" # macos_arm64|sha256 \"$macos_arm_sha\" # macos_arm64|" ../Formula/codes.rb
sed -i "s|sha256 \".*\" # macos_x86|sha256 \"$macos_x64_sha\" # macos_x86|" ../Formula/codes.rb
sed -i "s|sha256 \".*\" # linux_x86|sha256 \"$linux_sha\" # linux_x86|" ../Formula/codes.rb
Expand All @@ -170,6 +173,7 @@ jobs:
windows_sha=$(grep "codes-$TAG-x86_64-pc-windows-msvc.zip" SHA256SUMS.txt | awk '{print $1}')
sed -i "s|\"version\": \".*\"|\"version\": \"$VERSION\"|" ../bucket/codes.json
sed -i -E "s|/download/[^/]+/|/download/$TAG/|g" ../bucket/codes.json
sed -i -E "s|codes-v[0-9]+\\.[0-9]+\\.[0-9]+-x86_64-pc-windows-msvc\\.zip|codes-$TAG-x86_64-pc-windows-msvc.zip|" ../bucket/codes.json
sed -i "s|\"hash\": \".*\"|\"hash\": \"$windows_sha\"|" ../bucket/codes.json
- name: Commit package manifests
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions Formula/codes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ class Codes < Formula

on_macos do
if Hardware::CPU.arm?
url "https://github.com/4fuu/code-search-cli/releases/download/v0.1.3/codes-v0.0.0-aarch64-apple-darwin.tar.gz"
url "https://github.com/4fuu/code-search-cli/releases/download/v0.1.3/codes-v0.1.3-aarch64-apple-darwin.tar.gz"
sha256 "679079e66260e89558cc6c4331bc32ab0c16b3a24f70505d03a6a5f57d4517a4" # macos_arm64
else
url "https://github.com/4fuu/code-search-cli/releases/download/v0.1.3/codes-v0.0.0-x86_64-apple-darwin.tar.gz"
url "https://github.com/4fuu/code-search-cli/releases/download/v0.1.3/codes-v0.1.3-x86_64-apple-darwin.tar.gz"
sha256 "a8a7bd78ff8d245517390909bad1ec59af78f5cc59b8b23ef620cb0fc88c4507" # macos_x86
end
end

on_linux do
url "https://github.com/4fuu/code-search-cli/releases/download/v0.1.3/codes-v0.0.0-x86_64-unknown-linux-gnu.tar.gz"
url "https://github.com/4fuu/code-search-cli/releases/download/v0.1.3/codes-v0.1.3-x86_64-unknown-linux-gnu.tar.gz"
sha256 "b498129c3b4487e8c3d8e5dba3ad421d64499b7f2d784e15ff8d081aae5cc27d" # linux_x86
end

Expand Down
2 changes: 1 addition & 1 deletion bucket/codes.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "MIT",
"architecture": {
"64bit": {
"url": "https://github.com/4fuu/code-search-cli/releases/download/v0.1.3/codes-v0.0.0-x86_64-pc-windows-msvc.zip",
"url": "https://github.com/4fuu/code-search-cli/releases/download/v0.1.3/codes-v0.1.3-x86_64-pc-windows-msvc.zip",
"hash": "e86394fdcf43fda729984f5dac587bf9f0dd7bbc37061281b9912f0391a093cf"
}
},
Expand Down