Compare commits

..

No commits in common. "dc24c75f94b5fa40a41813f9dc7e4816aa60ab94" and "9359602185cb1924050ab7ff0237e7c309c4b81e" have entirely different histories.

22 changed files with 148 additions and 120 deletions

View file

@ -1,18 +1,8 @@
#!/bin/bash #!/bin/bash
minimum_package() {
apt update
apt install -y git wget ca-certificates dpkg fakeroot gnupg
}
default_prebuild(){
[ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
}
configure_depot_yarn() { configure_depot_yarn() {
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
} }
configure_depot_nodejs() { configure_depot_nodejs() {
@ -21,6 +11,11 @@ configure_depot_nodejs() {
grep -q 16.x /etc/apt/sources.list.d/nodesource.list grep -q 16.x /etc/apt/sources.list.d/nodesource.list
if [ $? -ne 0 ] if [ $? -ne 0 ]
then then
if [ ! -e /usr/bin/wget ]
then
apt update
apt install wget
fi
wget -qO - https://deb.nodesource.com/setup_${NODE_VERSION} | bash wget -qO - https://deb.nodesource.com/setup_${NODE_VERSION} | bash
fi fi
} }
@ -36,11 +31,6 @@ install_go() {
fi fi
} }
install_rust() {
wget -qO - https://sh.rustup.rs > /tmp/rustup
bash /tmp/rustup -qy
}
if [ ! "$1" == "" ]; if [ ! "$1" == "" ];
then then

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=4.36.4 VERSION=4.36.3
[ -e ./lib/function.sh ] && source ./lib/function.sh [ -e ./lib/function.sh ] && source ./lib/function.sh
@ -9,19 +9,24 @@ DEPOT=https://github.com/authelia/authelia.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=6 IMAGE_SIZE=4
STEP="minimum_package envinit default_prebuild build makedeb" STEP="envinit prebuild build makedeb"
envinit() { envinit() {
configure_depot_nodejs
apt-get update apt-get update
apt-get dist-upgrade -y apt-get dist-upgrade -y
apt install -y --no-install-recommends build-essential nodejs apt install -y --no-install-recommends git wget ca-certificates dpkg fakeroot build-essential
install_nodejs
install_go install_go
wget -qO - https://get.pnpm.io/install.sh | sh - wget -qO - https://get.pnpm.io/install.sh | sh -
} }
prebuild(){
[ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
}
build() { build() {
cd /tmp/${APP}/ cd /tmp/${APP}/
PATH=$PATH:/usr/local/go/bin:/root/.local/share/pnpm PATH=$PATH:/usr/local/go/bin:/root/.local/share/pnpm

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=2022.8.1 VERSION=2022.6.2
[ -e ./lib/function.sh ] && source ./lib/function.sh [ -e ./lib/function.sh ] && source ./lib/function.sh
@ -11,19 +11,27 @@ DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=10 IMAGE_SIZE=10
STEP="minimum_package envinit default_prebuild build makedeb" STEP="envinit prebuild build makedeb"
envinit() { envinit() {
configure_depot_yarn
configure_depot_nodejs
apt-get update apt-get update
apt-get dist-upgrade -y apt-get dist-upgrade -y
apt install -y --no-install-recommends build-essential pkg-config libsecret-1-dev yarn nodejs apt install -y --no-install-recommends git wget ca-certificates dpkg build-essential pkg-config libsecret-1-dev 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
}
prebuild(){
[ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
} }
build() { build() {
cd /tmp/${APP} cd /tmp/${APP}
npm ci yarn install
cd /tmp/${APP}/apps/desktop cd /tmp/${APP}/apps/desktop
PATH=$PATH:/tmp/${APP}/node_modules/.bin/ PATH=$PATH:/tmp/${APP}/node_modules/.bin/
npm run clean:dist npm run clean:dist

View file

@ -14,12 +14,11 @@ IMAGE_SIZE=4
STEP="envinit prebuild build makedeb" STEP="envinit prebuild build makedeb"
envinit() { envinit() {
minimum_package
configure_depot_yarn configure_depot_yarn
configure_depot_nodejs configure_depot_nodejs
apt-get update apt-get update
apt-get dist-upgrade -y apt-get dist-upgrade -y
apt install -y --no-install-recommends yarn nodejs apt install -y --no-install-recommends git wget ca-certificates dpkg fakeroot yarn nodejs
} }
prebuild(){ prebuild(){

View file

@ -11,17 +11,21 @@ DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=5 IMAGE_SIZE=5
STEP="envinit default_prebuild build makedeb" STEP="envinit prebuild build makedeb"
envinit() { envinit() {
minimum_package
configure_depot_nodejs configure_depot_nodejs
apt-get update apt-get update
apt-get dist-upgrade -y apt-get dist-upgrade -y
apt install -y --no-install-recommends build-essential nodejs apt install -y --no-install-recommends git wget ca-certificates dpkg fakeroot build-essential nodejs
install_go install_go
} }
prebuild(){
[ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
}
build() { build() {
cd /tmp/${APP}/ cd /tmp/${APP}/
PATH=$PATH:/usr/local/go/bin PATH=$PATH:/usr/local/go/bin

View file

@ -1,38 +0,0 @@
#!/bin/bash
VERSION=2.9.2
[ -e ./lib/function.sh ] && source ./lib/function.sh
APP=joplin-desktop
GIT_VERSION=v${VERSION}
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEPOT=https://github.com/laurent22/joplin.git
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=10
STEP="minimum_package envinit default_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 python nodejs rsync yarn
}
build() {
rm -fr /tmp/${APP}/packages/app-mobile
cd /tmp/${APP}/
BUILD_SEQUENCIAL=1 yarn install
cd packages/app-desktop
npm run dist
}
makedeb(){
PATH_DEB=/tmp/src/rootfs/
cp /tmp/joplin-desktop/packages/app-desktop/dist/Joplin-*.AppImage ${PATH_DEB}/usr/share/joplin/Joplin.AppImage
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}

View file

@ -1,36 +0,0 @@
#!/bin/bash
VERSION=2.7.4
[ -e ./lib/function.sh ] && source ./lib/function.sh
APP=joplin-server
GIT_VERSION=server-v${VERSION}
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEPOT=https://github.com/laurent22/joplin.git
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=8
STEP="minimum_package envinit default_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 python nodejs rsync yarn
}
build() {
rm -fr /tmp/${APP}/packages/app-mobile
cd /tmp/${APP}/
BUILD_SEQUENCIAL=1 yarn install
}
makedeb(){
PATH_DEB=/tmp/src/rootfs/
cp -fr /tmp/joplin-server/packages/{lib,turndown-plugin-gfm,turndown,htmlpack,fork-uslug,fork-sax,renderer,fork-htmlparser2,tools,server} ${PATH_DEB}/usr/share/joplin-server/
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}

68
ressources/joplin/debmaker Executable file
View file

@ -0,0 +1,68 @@
#!/bin/bash
GIT_VERSION=v2.9.1
DEB_VERSION_DESKTOP=2.9.1-$(date +%Y%m%d%H%M)
DEB_VERSION_SERVER=2.7.8-$(date +%Y%m%d%H%M)
[ -e ./lib/function.sh ] && source ./lib/function.sh
APP=joplin
DEPOT=https://github.com/laurent22/joplin.git
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=14
STEP="envinit prebuild build makedeb"
envinit() {
apt-get update
if [ $(dpkg -l | grep -e 'ii build-essential ' | wc -l) -eq 1 ];
then
apt-get dist-upgrade -y
else
apt install -y --no-install-recommends build-essential git python wget ca-certificates rsync fakeroot dpkg
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
}
prebuild(){
[ -e /tmp/git ] && rm -fr /tmp/git
[ -e /tmp/${APP} ] || mkdir /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/git
cp -r /tmp/git/. /tmp/${APP}
rm -fr /tmp/${APP}/packages/app-mobile
}
build() {
cd /tmp/${APP}/
rm packages/app-desktop/dist/Joplin-*.AppImage
BUILD_SEQUENCIAL=1 yarn install
cd packages/app-desktop
npm run dist
}
makedeb(){
PATH_DEB=/tmp/src/rootfs-server/
cp -fr /tmp/joplin/packages/lib ${PATH_DEB}/usr/share/joplin-server/
cp -fr /tmp/joplin/packages/turndown-plugin-gfm ${PATH_DEB}/usr/share/joplin-server/
cp -fr /tmp/joplin/packages/turndown ${PATH_DEB}/usr/share/joplin-server/
cp -fr /tmp/joplin/packages/htmlpack ${PATH_DEB}/usr/share/joplin-server/
cp -fr /tmp/joplin/packages/fork-uslug ${PATH_DEB}/usr/share/joplin-server/
cp -fr /tmp/joplin/packages/fork-sax ${PATH_DEB}/usr/share/joplin-server/
cp -fr /tmp/joplin/packages/renderer ${PATH_DEB}/usr/share/joplin-server/
cp -fr /tmp/joplin/packages/fork-htmlparser2 ${PATH_DEB}/usr/share/joplin-server/
cp -fr /tmp/joplin/packages/tools ${PATH_DEB}/usr/share/joplin-server/
cp -fr /tmp/joplin/packages/server ${PATH_DEB}/usr/share/joplin-server/
sed -i "s/%VERSION%/$DEB_VERSION_SERVER/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
PATH_DEB=/tmp/src/rootfs-desktop/
cp /tmp/joplin/packages/app-desktop/dist/Joplin-*.AppImage ${PATH_DEB}/usr/share/joplin/Joplin.AppImage
sed -i "s/%VERSION%/$DEB_VERSION_DESKTOP/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}

View file

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

@ -1,35 +1,56 @@
#!/bin/bash #!/bin/bash
VERSION=2022.6.2
[ -e ./lib/function.sh ] && source ./lib/function.sh [ -e ./lib/function.sh ] && source ./lib/function.sh
APP=vaultwarden-web APP=vaultwarden-web
VERSION=2.28.1
GIT_VERSION=v$VERSION GIT_VERSION=v$VERSION
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=5 IMAGE_SIZE=
DEPOT=https://github.com/dani-garcia/bw_web_builds.git DEPOT=https://github.com/bitwarden/web.git
STEP="minimum_package envinit default_prebuild build makedeb" STEP="envinit prebuild build makedeb"
envinit() { envinit() {
configure_depot_yarn
configure_depot_nodejs
apt-get update apt-get update
apt-get dist-upgrade -y apt-get dist-upgrade -y
apt install -y --no-install-recommends build-essential python nodejs apt install -y --no-install-recommends wget fakeroot dpkg ca-certificates build-essential git python
wget -qO - https://deb.nodesource.com/setup_16.x | bash
apt-get update
apt-get install -y nodejs
apt clean
}
prebuild(){
[ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
cd /tmp/${APP}
git submodule update --init --recursive
cd ..
git clone https://github.com/dani-garcia/bw_web_builds.git
cd bw_web_builds
PATCH=$(git tag --sort=v:refname | tail -n1)
git checkout ${PATCH}
PATCH_FILE=$(ls patches/ | sort -V | tail -n 1)
cp patches/${PATCH_FILE} ../web-vault/
/tmp/${APP}
git apply ${PATCH_FILE}
} }
build() { build() {
cd /tmp/${APP} cd /tmp/${APP}
echo web-$GIT_VERSION | ./package_web_vault.sh npm install
npm run dist:oss:selfhost
} }
makedeb(){ makedeb(){
PATH_DEB=/tmp/src/rootfs PATH_DEB=/tmp/src/rootfs
cp -fr /tmp/${APP}/web-vault/apps/web/build/* ${PATH_DEB}/usr/share/vaultwarden-web cp -fr /tmp/${APP}/build/* ${PATH_DEB}/usr/share/vaultwarden-web
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
} }

View file

@ -1,23 +1,30 @@
#!/bin/bash #!/bin/bash
VERSION=1.25.2
[ -e ./lib/function.sh ] && source ./lib/function.sh [ -e ./lib/function.sh ] && source ./lib/function.sh
APP=vaultwarden APP=vaultwarden
VERSION=1.25.0
GIT_VERSION=$VERSION GIT_VERSION=$VERSION
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=8 IMAGE_SIZE=8
DEPOT=https://github.com/dani-garcia/vaultwarden.git DEPOT=https://github.com/dani-garcia/vaultwarden.git
STEP="minimum_package envinit default_prebuild build makedeb" STEP="envinit prebuild build makedeb"
envinit() { envinit() {
apt-get update apt-get update
apt-get dist-upgrade -y apt-get dist-upgrade -y
apt install -y --no-install-recommends build-essential libmariadb-dev libpq-dev pkg-config libmysql++-dev apt install -y --no-install-recommends build-essential git wget fakeroot dpkg ca-certificates libmariadb-dev libpq-dev pkg-config libmysql++-dev
install_rust cd /tmp
wget -qO - https://sh.rustup.rs > rustup
bash rustup -qy
apt clean
}
prebuild(){
[ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
} }
build() { build() {