Various Releases for rChore
Need to figure out robust binary distribution mechanisms for rChore
The following would be nice:
- [ ] NPM
- [ ] Bash Script to automatically pull from GitHub Release
Optional:
- [ ] Fedora Repository
- [ ] Ubuntu Repository
- [ ] Arch Repository
- [ ] Homebrew
I could write a AUR (Arch User Repository) script and also try to work on the Bash Script.
Sure @pspiagicw, thanks for taking this up! If possible, please look into the possibility of automatically releasing it via the GitHub Releaser CI
The AUR script is ready! You can find at https://github.com/pspiagicw/rchore I tested in on a ArchLinux machine in a VM . It grabs the latest release and downloads rchore-linux binary and installs in /usr/bin. It also downloads the readme file and puts in /usr/share/doc/rchore/ . Test yourself , if satisfied we can upload to AUR. Package Name: rchore-bin
For the debian package , I got this link https://www.internalpointers.com/post/build-binary-deb-package-practical-guide
I will try to build a DEB file and test ,if you are comfortable with it.
For the bash script , Linux and Mac OS is easy , but I am getting stuck at binary for Windows.
The AUR script is ready! You can find at https://github.com/pspiagicw/rchore I tested in on a ArchLinux machine in a VM . It grabs the latest release and downloads rchore-linux binary and installs in /usr/bin. It also downloads the readme file and puts in /usr/share/doc/rchore/ . Test yourself , if satisfied we can upload to AUR. Package Name: rchore-bin
That's great! Could you please open a PR for the same, and ensure its automated for every release?
For the debian package , I got this link https://www.internalpointers.com/post/build-binary-deb-package-practical-guide I will try to build a DEB file and test ,if you are comfortable with it.
Sure, you can definitely give it a try!
For the bash script , Linux and Mac OS is easy , but I am getting stuck at binary for Windows.
The bash script for cURL is already in the works, so that's completely fine. Feel free to work on deb and aur scripts and send a PR for the same!
DEB file is ready , it is in the same repository as AUR script. For automation we only have to change the version number in both scripts. I will look into GitHub Actions and try to automate that.
As a method of cross-platform/OS distribution, I would suggest to publish a Docker container. Any needed external files could be mounted, but env vars would suffice for API keys. Thus, you can create an alias for a command such as:
alias rchore='docker run --rm -it -e TERM DarthBenro008/rchore'
If rchore image is not present, it would be automatically pulled by Docker. Just rm'ing the image would serve as update.
@pataquets, this seems like a nice idea, but we might have a problem. rchore currently stores a physical db at .rchore in your home root directory, containerising the application would remove default configurations each time rchore image is removed. But nevertheless it seems like a fairly good method to run on multiple OS
What about docker volumes ? They persist throughout sessions ?
As @pspiagicw mentioned DB and other files can be mounted. Even RW or RO, which would give more sense to #22 as for splitting data storage in different files concerns. I'm also not very familiar with what is stored in the DB and which items are rebuildable and which not, such as options (which might make sense in a .conf readonly-mounted file) and whatever else there is, so please bear with my ignorance :grin:.
This seems like a viable solution to give a shot at, but i think it would be better if #22 is solved and closed first so that we can approach the Dockerizing solution