2022-08-12 23:00:22 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-09-13 00:38:45 +02:00
|
|
|
VERSION=2.9.8
|
2022-08-12 23:00:22 +02:00
|
|
|
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
|
2022-08-12 23:21:10 +02:00
|
|
|
IMAGE_SIZE=10
|
2022-08-12 23:00:22 +02:00
|
|
|
|
2022-08-17 20:35:16 +02:00
|
|
|
STEP="base_package_upgrade envinit get_git_source build makedeb"
|
2022-08-12 23:00:22 +02:00
|
|
|
|
|
|
|
envinit() {
|
|
|
|
configure_depot_yarn
|
|
|
|
configure_depot_nodejs
|
|
|
|
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
|
|
|
|
}
|