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

How can be downloaded the latest version? #27

Open
johnfound opened this issue Sep 27, 2019 · 3 comments
Open

How can be downloaded the latest version? #27

johnfound opened this issue Sep 27, 2019 · 3 comments

Comments

@johnfound
Copy link

I've discovered that on https://github.com/resilar/sqleet/releases/latest is a page about the latest version of SQLeet, but is there an URL to download directly the amalgamation source of the latest version?

@resilar
Copy link
Owner

resilar commented Sep 28, 2019

Direct link to the latest amalgamation .zip/.tar.gz package of sqleet? No, I don't think GitHub supports that. I agree that this could be an useful feature and easy to implement using HTTP redirects. I'm not aware of any URL shortening/redirection service that is free and does not suck, so implementation is not going to happen anytime soon¹.

Do you have a specific use case in mind?


(1) sqleet is steadily reaching a state where a major version number increment to v1.x.y is justified in terms of stability and features. I'm considering building a (minimal) web page for sqleet and releasing it at the same time with version 1.x.y. This obviously then allows providing a direct link to the amalgamation packages.

@johnfound
Copy link
Author

johnfound commented Oct 2, 2019

Well, I have created some kind of workaround. The idea is to obtain the latest amalgamation source:

  echo "Downloading latest SQLeet master branch archive..."
  { wget -q -O sqleet.zip https://github.com/resilar/sqleet/archive/master.zip; unzip -q sqleet.zip; rm sqleet.zip; } || { echo >&2 "Error: Can't download SQLeet sources."; exit 2;}
  cd ./sqleet-master
  echo "Building the amalgamation sqlite3.c ..."
  script/amalgamate.sh < ./sqleet.c > ../sqlite3.c
  cd ..
  rm -rf ./sqleet-master/ &

Hope this can be useful for someone.

EDIT: Better use .tar.gz instead of .zip:

  echo "Downloading latest SQLeet master branch archive..."
  { wget -q -O - https://github.com/resilar/sqleet/archive/master.tar.gz | tar -xz 2> /dev/null; } || { echo >&2 "Error: Can't download SQLeet sources."; exit 2;}
  cd ./sqleet-master
  echo "Building the amalgamation sqlite3.c ..."
  script/amalgamate.sh < ./sqleet.c > ../sqlite3.c
  cd ..
  rm -rf ./sqleet-master/ &

@resilar
Copy link
Owner

resilar commented Oct 3, 2019

Yeah, the lack of direct links is easy to overcome with shell scripting. Given git and a few extra commands, it is doable to fetch & build the latest release's amalgamation based on git tags.

Offering static links to the latest release amalgamations is still a worthwhile goal, so let's keep this issue open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants