New dependancy methode

This commit is contained in:
thomas 2022-08-05 06:12:11 +02:00
parent cc93246273
commit 9359602185
5 changed files with 47 additions and 28 deletions

View file

@ -13,15 +13,12 @@ IMAGE_SIZE=4
STEP="envinit prebuild build makedeb"
envinit() {
configure_depot_yarn
configure_depot_nodejs
apt-get update
apt-get dist-upgrade -y
apt install -y --no-install-recommends build-essential 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 nodejs yarn
wget -qO - https://go.dev/dl/go1.18.linux-amd64.tar.gz | tar -C /usr/local -xz
apt install -y --no-install-recommends build-essential git wget ca-certificates dpkg fakeroot nodejs yarn
install_go
}
prebuild(){

View file

@ -17,10 +17,8 @@ envinit() {
apt-get update
apt-get dist-upgrade -y
apt install -y --no-install-recommends git wget ca-certificates dpkg fakeroot build-essential
wget -qO - https://deb.nodesource.com/setup_16.x | bash
apt-get update
apt-get install -y nodejs
wget -qO - https://go.dev/dl/go1.18.3.linux-amd64.tar.gz | tar -C /usr/local -xz
install_nodejs
install_go
wget -qO - https://get.pnpm.io/install.sh | sh -
}

View file

@ -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(){

View file

@ -14,17 +14,15 @@ IMAGE_SIZE=5
STEP="envinit prebuild build makedeb"
envinit() {
configure_depot_nodejs
apt-get update
apt-get dist-upgrade -y
apt install -y --no-install-recommends git wget ca-certificates dpkg fakeroot build-essential
wget -qO - https://deb.nodesource.com/setup_16.x | bash
apt-get update
apt-get install -y nodejs
wget -qO - https://go.dev/dl/go1.18.1.linux-amd64.tar.gz | tar -C /usr/local -xz
apt install -y --no-install-recommends git wget ca-certificates dpkg fakeroot build-essential nodejs
install_go
}
prebuild(){
[ -e /tmp/git ] && rm -fr /tmp/${APP}
[ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
}