mediar-ai / screenpipe

rewind.ai x cursor.com = your AI assistant that has all the context. 24/7 screen & voice recording for the age of super intelligence. get your data ready or be left behind
https://screenpi.pe
MIT License
9.53k stars 553 forks source link

feat: automate brew formula update #709

Closed krushnarout closed 15 hours ago

krushnarout commented 1 day ago

name: feat: automate brew formula update about: automate brew formula update title: "feat: automate brew formula update" labels: '' assignees: ''


description

automate brew formula update using brew bump-formula-pr

Closes #692 /claim #692

type of change

checklist

additional notes

any other relevant information about the pr.

vercel[bot] commented 1 day ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
screenpipe ❌ Failed (Inspect) Nov 20, 2024 3:03pm
louis030195 commented 1 day ago

cool, great work!

how can i test this to make sure it works?

louis030195 commented 1 day ago

https://github.com/Homebrew/homebrew-core/pull/196345/files

@m13v any chance you can add the ui monitoring lib there? (maybe after this PR is merged)

think we need to send PR to brew official to add it

krushnarout commented 1 day ago

cool, great work!

how can i test this to make sure it works?

Thank you!

Use --dry-run to test this locally without creating PR.

tmp_dir=$(mktemp -d)
cd "$tmp_dir"

export VERSION="0.1.99"
export GITHUB_REPOSITORY="mediar-ai/screenpipe"
export MATRIX_TARGET="x86_64-apple-darwin"

curl -LO "https://github.com/${GITHUB_REPOSITORY}/releases/download/v${VERSION}/screenpipe-${VERSION}-${MATRIX_TARGET}.tar.gz"

export SHA=$(shasum -a 256 screenpipe-*.tar.gz | cut -d ' ' -f 1)
export URL="https://github.com/${GITHUB_REPOSITORY}/releases/download/v${VERSION}/screenpipe-${VERSION}-${MATRIX_TARGET}.tar.gz"

# Added --dry-run to test without creating PR
brew bump-formula-pr screenpipe \
  --version=${VERSION} \
  --url="${URL}" \
  --sha256="${SHA}" \
  --message="Test: Update screenpipe to version ${VERSION} for ${MATRIX_TARGET}" \
  --no-browse \
  --no-audit \
  --dry-run

  cd -
rm -rf "$tmp_dir"

https://github.com/user-attachments/assets/ec844163-3307-42e1-8c55-cc111bf4b6ea

louis030195 commented 15 hours ago

/approve thanks!

algora-pbc[bot] commented 15 hours ago

@louis030195: The claim has been successfully added to reward-all. You can visit your dashboard to complete the payment.

louis030195 commented 15 hours ago

@krushnarout do you have any idea how to make this work for updating the linux brew too?

krushnarout commented 14 hours ago

@krushnarout do you have any idea how to make this work for updating the linux brew too?

@louis030195 I’m not sure how to make it work for updating Linux brew at the moment. There's limited information available on this, but if I had more time to look into it, I might be able to find a solution.

louis030195 commented 14 hours ago

@krushnarout fyi this does not work https://github.com/mediar-ai/screenpipe/actions/runs/11958214212

louis030195 commented 13 hours ago

https://github.com/Homebrew/homebrew-core/pull/198524 broken 😕

krushnarout commented 6 hours ago

Homebrew/homebrew-core#198524 broken 😕

Hi @louis030195! I noticed you haven't released a new version yet, but you're trying to update the formula without one.

louis030195 commented 6 hours ago

@krushnarout what do you mean?

release-cli usually required:

git tag v<my version>
git push origin v<my version>

and it would release to brew end-to-end

now it's just broken

i released 3 times, lost 1h of my day and it does not work

krushnarout commented 6 hours ago

@krushnarout what do you mean?

release-cli usually required:

git tag v<my version>
git push origin v<my version>

and it would release to brew end-to-end

now it's just broken

i released 3 times, lost 1h of my day and it does not work

I understand your frustration. I tried running a --dry-run on my side, and it did show the SHA256 correctly. I mentioned this because I’ve checked how other formulas are updated when they release new versions. There isn’t much information available about this process, and it’s taken me a lot of time as well since Homebrew’s documentation isn’t very clear on this topic.