Add gotify
optimize apt without recommends packages add package dpkg fakeroot when needed
This commit is contained in:
parent
a340b7db22
commit
b69d1ee47f
29 changed files with 77 additions and 94 deletions
|
@ -1,7 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
STEP="envinit prebuild build makedeb"
|
||||
|
||||
envinit() {
|
||||
apt install -y git build-essential python2 wget ruby-dev libxml2 libz-dev
|
||||
apt install -y --no-install-recommends git build-essential python2 wget ruby-dev libxml2 libz-dev
|
||||
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
|
||||
|
@ -10,11 +12,8 @@ envinit() {
|
|||
}
|
||||
|
||||
prebuild(){
|
||||
VERSION=$1
|
||||
cd /tmp/
|
||||
git clone https://github.com/standardnotes/web.git
|
||||
cd web/
|
||||
git checkout $VERSION
|
||||
GIT_VERSION=$1
|
||||
git clone --depth 1 -b ${GIT_VERSION} https://github.com/standardnotes/web.git /tmp/web
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -25,13 +24,9 @@ build() {
|
|||
}
|
||||
|
||||
makedeb(){
|
||||
PATH_BUILD=$1
|
||||
PATH_DEB=$2
|
||||
GIT_VERSION=$3
|
||||
GIT_VERSION=$1
|
||||
DEB_VERSION=$2
|
||||
PATH_DEB=/tmp/dist/rootfs
|
||||
|
||||
cp -fr ${PATH_BUILD}/tmp/web/* ${PATH_DEB}/usr/lib/standardnotes/web/
|
||||
cp -fr /tmp/web/* ${PATH_DEB}/usr/lib/standardnotes/web/
|
||||
}
|
||||
echo $1
|
||||
FUNC=$1
|
||||
shift
|
||||
${FUNC} $*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue