From 61aa4e17439700fc123a6eeec3e80f53753dd428 Mon Sep 17 00:00:00 2001 From: Will Date: Tue, 11 Mar 2025 13:02:36 -0400 Subject: [PATCH] Updating formula to build properly --- .github/workflows/release.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c06df96..df2e33c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -91,7 +91,7 @@ jobs: python -m venv .venv source .venv/bin/activate pip install --upgrade pip - pip install ra-aid homebrew-pypi-poet + pip install homebrew-pypi-poet ra-aid==${{ env.version }} - name: Clone homebrew-ra-aid repository run: | @@ -100,15 +100,19 @@ jobs: - name: Generate Brew Formula with poet run: | + source .venv/bin/activate cd homebrew-ra-aid poet -f ra-aid > Formula/ra-aid.rb - name: Update Formula/ra-aid.rb run: | cd homebrew-ra-aid + # --- Class documentaion + sed -i '' '1s/^/# Homebrew formula for RA.Aid\n/' Formula/ra-aid.rb # --- Update description and homepage --- sed -i '' 's/desc "Shiny new formula"/desc "RA.Aid (pronounced \\\"raid\\\") helps you develop software autonomously"/' Formula/ra-aid.rb - sed -i '' 's/homepage "None"/homepage "https:\/\/github.com\/ai-christianson\/RA.Aid"/' Formula/ra-aid.rb + sed -i '' 's/homepage "None"/homepage "https:\/\/github.com\/ai-christianson\/RA.Aid"\ + version "${{ env.version }}"/' Formula/ra-aid.rb # Insert the license line after the homepage line using awk awk '/homepage "https:\/\/github.com\/ai-christianson\/RA.Aid"/ {print; print " license \"Apache-2.0\""; next} 1' Formula/ra-aid.rb > tmp && mv tmp Formula/ra-aid.rb @@ -304,6 +308,11 @@ jobs: end EOF + - name: Show updated Formula + run: | + cd homebrew-ra-aid + cat Formula/ra-aid.rb + # - name: Commit and push changes # run: | # cd homebrew-ra-aid