Add gotify

optimize apt without recommends packages
add package dpkg fakeroot when needed
This commit is contained in:
thomas 2022-02-20 23:33:43 +01:00
parent a340b7db22
commit b69d1ee47f
29 changed files with 77 additions and 94 deletions

View file

@ -3,7 +3,7 @@
STEP="envinit prebuild build makedeb"
envinit() {
apt install -y build-essential git python wget ca-certificates
apt install -y --no-install-recommends build-essential git python wget ca-certificates
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
@ -12,11 +12,9 @@ envinit() {
}
prebuild(){
VERSION=$1
cd /tmp/
git clone https://github.com/laurent22/joplin.git
cd joplin/
git checkout $VERSION
GIT_VERSION=$1
git clone --depth 1 -b ${GIT_VERSION} https://github.com/laurent22/joplin.git /tmp/joplin
cd /tmp/joplin
rm -fr packages/app*
rm -fr packages/generator-joplin
rm -fr packages/plugin-repo-cli