kisslinux / kiss

KISS Linux - Package Manager
https://kisslinux.github.io
MIT License
464 stars 62 forks source link

Discussion: Should package builds be ran from the driectory with the install and post-install scripts #306

Closed godalming123 closed 2 years ago

godalming123 commented 2 years ago

Description

When the packadge build files are ran they are ran from the directory you are in when you run kiss build. Should this be changed as it might be easier (for package maintainers & users) since downloaded files do not end up clogging the directory where the pckages are installed from and they can easily reference files in the packadge

aabacchus commented 2 years ago

Build scripts are run from a temporary directory containing the extracted sources. Post-install scripts are used for things like setting up users or rebuilding some system cache, or just writing a message, and shouldn't require access to a package's sources. What in particular do you want to do in the post-install script? It may be better suited to the build file.

godalming123 commented 2 years ago

Yes this makes sense I just did'nt fully read the docs