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

@ -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}
}