Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(install): auto updating binary #213

Merged
merged 1 commit into from
Jun 30, 2024
Merged

Conversation

richardbremner
Copy link
Contributor

Note: install notes guide the user through these steps, this code doesn't run in a deployment

Review Type Requested (choose one):

  • Glance - superficial check (from domain experts)
  • [ x ] Logic - thorough check (from everybody doing review)

Summary

These files will be used in the installation instructions, to setup the auto updating binary.

Task/Issue reference

Closes: https://github.com/Lilypad-Tech/hni/issues/4

Details (optional)

This PR for doco should be merged after this is merged: Lilypad-Tech/lilypad-docs#42

Note: install notes guide the user through these steps, this code doesn't run in a deployment
export OSNAME

# Get the latest version URL
LATEST_URL=$(curl -s https://api.github.com/repos/lilypad-tech/lilypad/releases/latest | grep "browser_download_url.*lilypad-$OSNAME-$OSARCH" | cut -d : -f 2,3 | tr -d \")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this check work with the new things added to binaries? (I mean the binaries with cuda and the ones without)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll want to update this once we have the new releases pipeline in place:

grep "browser_download_url.*lilypad-$OSNAME-$OSARCH"

to

grep "browser_download_url.*lilypad-$OSNAME-$OSARCH-gpu"

Will add that to the releases pipeline PR if we merge this one first.

Copy link
Contributor

@bgins bgins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, nice awk magic! 🪄

@richardbremner richardbremner merged commit ee709d0 into main Jun 30, 2024
1 check passed
@richardbremner richardbremner deleted the feat/auto-update-binary branch June 30, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants