Create a MVP
jankatins opened this issue · 0 comments
jankatins commented
Make downloading and installing https://github.com/sharkdp/fd possible: it's a single binary built in rust, it has the same name as the github repo, and using the normal rust naming in the release files.
yep install sharkdp/fd
yep install sharkdp/fd --type=static-binary --from='gh-r'
yep install sharkdp/fd --type=static-binary --from='gh-r' --install-symlink
yep install sharkdp/fd --type=static-binary --from='gh-r' --install-symlink='fd'
yep install sharkdp/fd --type=static-binary --from='gh-r' --install-symlink='fd' --id-as="gh-r~~sharkdp~~fd"
- Assumes folders are set up (use a makefile?)
- Start with deleting the package specific dir if it exists and then add the package specific dir
- Dump the recipe into it in a json file
- Download from the latest release (no version choosing) to tempfile
- Download whatever https://github.com/jaemk/self_update wants to use (it's rust centric in the default usage)
- Extract it to a folder: extract into it, it should be empty at this point (no atomic switches or whatever -> failures would need reruns)
- Ensure that all executable files are actually executable (https://github.com/bojand/infer)
- Add a symlink into
~/.local/bin
for all executable files (https://github.com/fitzgen/is_executable)
Links:
- See https://rust-cli.github.io/book/ for cli parsing and logging
- https://github.com/jaemk/self_update to download from latest release and extract