So you want to make your own package manager?
For something that feels like overkill to create standalone package manager, but is just too lazy to manually check for updates and download.
cargo install --git https://github.com/8LWXpg/gpm.git
gpm init
gpm type add <NAME> <EXT> <SHELL>
Change your shell config at ~/.gpm/types.toml
.
Note
EXT
is the file extension of the script file.
Script file is created at ~/.gpm/scripts/<NAME>.<EXT>
, see here for more information.
gpm add <NAME>
For more information see here.
Important
Package name must be the same as resulted file/folder name to work properly.
gpm repo <NAME> add <NAME> <TYPE> [ARGS]...
Important
Package name must be the same as file/folder name in order to work properly.
alias <NAME>='gpm repo <NAME>'
- Remove ETag field under
<repo>/version.toml
withgpm repo <repo> remove-etag
- Add a new repository.
- Copy the
<repo>/version.toml
to the new repository. - Update all packages with
gpm repo <repo> update -a
There's no standard way to pass arguments to executables in Windows, each executable has its own parsing logic. So, if you have issues with passing arguments to certain executables, please add a fix to the escape_win.rs file.