Skip to content

Commit 8310553

Browse files
committed
fix: brew tag config
1 parent 05fcb75 commit 8310553

10 files changed

Lines changed: 24 additions & 26 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ jobs:
2929
- name: Create tarball
3030
run: |
3131
VERSION=${{ steps.version.outputs.version }}
32-
mkdir -p release/macos-free-${VERSION}
33-
cp bin/free release/macos-free-${VERSION}/
34-
cp README.md LICENSE release/macos-free-${VERSION}/
35-
cd release && tar -czvf macos-free-${VERSION}-darwin-arm64.tar.gz macos-free-${VERSION}
32+
mkdir -p release/mac-free-${VERSION}
33+
cp bin/free release/mac-free-${VERSION}/
34+
cp README.md LICENSE release/mac-free-${VERSION}/
35+
cd release && tar -czvf mac-free-${VERSION}-darwin-arm64.tar.gz mac-free-${VERSION}
3636
3737
- name: Calculate SHA256
3838
id: sha
3939
run: |
4040
VERSION=${{ steps.version.outputs.version }}
41-
SHA256=$(shasum -a 256 release/macos-free-${VERSION}-darwin-arm64.tar.gz | cut -d ' ' -f 1)
41+
SHA256=$(shasum -a 256 release/mac-free-${VERSION}-darwin-arm64.tar.gz | cut -d ' ' -f 1)
4242
echo "sha256=$SHA256" >> $GITHUB_OUTPUT
4343
echo "SHA256: $SHA256"
4444
@@ -83,12 +83,11 @@ jobs:
8383
VERSION: ${{ needs.build.outputs.version }}
8484
SHA256: ${{ needs.build.outputs.sha256 }}
8585
run: |
86-
mkdir -p homebrew-tap/Formula
87-
cat > homebrew-tap/Formula/macos-free.rb << 'EOF'
86+
cat > mac-free.rb << 'EOF'
8887
class MacosFree < Formula
8988
desc "A 'free' command replacement for macOS - displays memory usage like Linux free"
9089
homepage "https://github.com/techquestsdev/mac-free"
91-
url "https://github.com/techquestsdev/mac-free/releases/download/${VERSION}/macos-free-${VERSION}-darwin-arm64.tar.gz"
90+
url "https://github.com/techquestsdev/mac-free/releases/download/${VERSION}/mac-free-${VERSION}-darwin-arm64.tar.gz"
9291
sha256 "${SHA256}"
9392
license "MIT"
9493
@@ -103,19 +102,18 @@ jobs:
103102
EOF
104103
105104
# Replace variables in the formula
106-
sed -i "s|\${VERSION}|${VERSION}|g" homebrew-tap/Formula/macos-free.rb
107-
sed -i "s|\${SHA256}|${SHA256}|g" homebrew-tap/Formula/macos-free.rb
105+
sed -i "s|\${VERSION}|${VERSION}|g" mac-free.rb
106+
sed -i "s|\${SHA256}|${SHA256}|g" mac-free.rb
108107
109-
cat homebrew-tap/Formula/macos-free.rb
108+
cat mac-free.rb
110109
111110
- name: Commit and push formula
112111
env:
113112
HOMEBREW_TOKEN: ${{ secrets.HOMEBREW_TOKEN }}
114113
run: |
115-
cd homebrew-tap
116114
git config user.name "github-actions[bot]"
117115
git config user.email "github-actions[bot]@users.noreply.github.com"
118116
git remote set-url origin https://x-access-token:${HOMEBREW_TOKEN}@github.com/techquestsdev/homebrew-tap.git
119-
git add Formula/macos-free.rb
120-
git commit -m "Update macos-free to ${{ needs.build.outputs.version }}" || echo "No changes to commit"
117+
git add mac-free.rb
118+
git commit -m "Update mac-free to ${{ needs.build.outputs.version }}" || echo "No changes to commit"
121119
git push

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Makefile for macos-free
1+
# Makefile for mac-free
22
#
33
# A 'free' command replacement for macOS
44
# License: MIT
@@ -123,7 +123,7 @@ test: $(TARGET)
123123

124124
# Help
125125
help:
126-
@echo "macos-free Makefile"
126+
@echo "mac-free Makefile"
127127
@echo ""
128128
@echo "Targets:"
129129
@echo " all Build the project (default)"
@@ -144,4 +144,4 @@ help:
144144
@echo " make"
145145
@echo " make debug"
146146
@echo " make install PREFIX=/opt/local"
147-
@echo " make clean"
147+
@echo " make clean"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# macos-free
1+
# mac-free
22

33
A `free` command replacement for macOS that displays memory usage information similar to the Linux `free` command.
44

src/display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* display.c - Output formatting and display implementation
33
*
4-
* Part of macos-free: A 'free' command replacement for macOS
4+
* Part of mac-free: A 'free' command replacement for macOS
55
* License: MIT
66
*/
77

src/display.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* display.h - Output formatting and display functions
33
*
4-
* Part of macos-free: A 'free' command replacement for macOS
4+
* Part of mac-free: A 'free' command replacement for macOS
55
* License: MIT
66
*/
77

src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* main.c - Entry point for macos-free
2+
* main.c - Entry point for mac-free
33
*
4-
* Part of macos-free: A 'free' command replacement for macOS
4+
* Part of mac-free: A 'free' command replacement for macOS
55
* License: MIT
66
*/
77

src/memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* memory.c - Memory information retrieval implementation
33
*
4-
* Part of macos-free: A 'free' command replacement for macOS
4+
* Part of mac-free: A 'free' command replacement for macOS
55
* License: MIT
66
*/
77

src/memory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* memory.h - Memory information retrieval for macOS
33
*
4-
* Part of macos-free: A 'free' command replacement for macOS
4+
* Part of mac-free: A 'free' command replacement for macOS
55
* License: MIT
66
*/
77

src/utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* utils.c - Utility function implementations
33
*
4-
* Part of macos-free: A 'free' command replacement for macOS
4+
* Part of mac-free: A 'free' command replacement for macOS
55
* License: MIT
66
*/
77

src/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* utils.h - Utility definitions and macros
33
*
4-
* Part of macos-free: A 'free' command replacement for macOS
4+
* Part of mac-free: A 'free' command replacement for macOS
55
* License: MIT
66
*/
77

0 commit comments

Comments
 (0)