BahPackageManager enables you to install and remove package without worrying about dependencies.
This is still a work in progress!
Make sure you have lib sqlite3 installed.
- Compile BPM
bah ./main.bah -d
- Install it!
./main -install itself
Warning: do not usesudo
as it will not install bpm or any package for the current user.
You can get more informations about its usage by running bpm -h
.
-wrap
to generate thebpm.mod
file that will be needed when installing your package.-list
to list every package installed.-install <package>
to install a package.-update
to update all packages.-remove <package>
to remove a package.-deps <package>
to list every depenedencies of a program.
- The name of the main file of your package should be the name of your package's git (or main.bah).
That way, for the package
ithirzty/javel2
, the entry point isjavel2.bah
. - System libraries that you want to ship with your package should be in a folder named
libs
at the root of the package inside subfolderslinux
,darwin
(macos) andwindows
depending on the libraries platform. - After initializing a git repository inside your package's folder and setting its url, type
bpm -wrap
to create thebpm.mod
file.
- Locate your BPM folder (in the home folder).
- Edit sources.json to add an origin.