New dependancy methode
This commit is contained in:
parent
cc93246273
commit
9359602185
5 changed files with 47 additions and 28 deletions
|
@ -14,18 +14,11 @@ IMAGE_SIZE=4
|
|||
STEP="envinit prebuild build makedeb"
|
||||
|
||||
envinit() {
|
||||
configure_depot_yarn
|
||||
configure_depot_nodejs
|
||||
apt-get update
|
||||
if [ $(dpkg -l | grep -e 'ii nodejs ' | wc -l) -eq 1 ];
|
||||
then
|
||||
apt-get dist-upgrade -y
|
||||
else
|
||||
apt install -y --no-install-recommends git wget ca-certificates dpkg fakeroot
|
||||
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
||||
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
||||
apt-get update
|
||||
apt-get install -y yarn nodejs
|
||||
fi
|
||||
apt-get dist-upgrade -y
|
||||
apt install -y --no-install-recommends git wget ca-certificates dpkg fakeroot yarn nodejs
|
||||
}
|
||||
|
||||
prebuild(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue