mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
* use docker for build steps that require linux when not on linux * use fuse for overlay * quiet mountpoint * node 22 * misc fixes * make shasum more compliant * optimize download-base-image.sh with cleaner url handling and checksum verification * fix script * fixes #2900 * bump node and npm versions in web readme * Minor pl.ts fixes * fixes in response to synapse issues * beta.8 * update ts-matches * beta.11 * pl.ts finetuning --------- Co-authored-by: Mariusz Kogen <k0gen@pm.me> Co-authored-by: Matt Hill <mattnine@protonmail.com>
48 lines
1.3 KiB
Bash
Executable File
48 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
BASENAME=$(./basename.sh)
|
|
VERSION=$(cat ./VERSION.txt)
|
|
if [ "$PLATFORM" = "x86_64" ] || [ "$PLATFORM" = "x86_64-nonfree" ]; then
|
|
DEB_ARCH=amd64
|
|
elif [ "$PLATFORM" = "aarch64" ] || [ "$PLATFORM" = "aarch64-nonfree" ] || [ "$PLATFORM" = "raspberrypi" ]; then
|
|
DEB_ARCH=arm64
|
|
else
|
|
DEB_ARCH="$PLATFORM"
|
|
fi
|
|
|
|
rm -rf dpkg-workdir/$BASENAME
|
|
mkdir -p dpkg-workdir/$BASENAME
|
|
|
|
make install DESTDIR=dpkg-workdir/$BASENAME
|
|
|
|
DEPENDS=$(cat dpkg-workdir/$BASENAME/usr/lib/startos/depends | tr $'\n' ',' | sed 's/,,\+/,/g' | sed 's/,$//')
|
|
CONFLICTS=$(cat dpkg-workdir/$BASENAME/usr/lib/startos/conflicts | tr $'\n' ',' | sed 's/,,\+/,/g' | sed 's/,$//')
|
|
|
|
cp -r debian dpkg-workdir/$BASENAME/DEBIAN
|
|
cat > dpkg-workdir/$BASENAME/DEBIAN/control << EOF
|
|
Package: startos
|
|
Version: ${VERSION}
|
|
Section: unknown
|
|
Priority: required
|
|
Maintainer: Aiden McClelland <aiden@start9.com>
|
|
Homepage: https://start9.com
|
|
Architecture: ${DEB_ARCH}
|
|
Multi-Arch: foreign
|
|
Depends: ${DEPENDS}
|
|
Conflicts: ${CONFLICTS}
|
|
Description: StartOS Debian Package
|
|
EOF
|
|
|
|
cd dpkg-workdir/$BASENAME
|
|
find . -type f -not -path "./DEBIAN/*" -exec md5sum {} \; | sort -k 2 | sed 's/\.\/\(.*\)/\1/' > DEBIAN/md5sums
|
|
cd ../..
|
|
|
|
cd dpkg-workdir
|
|
dpkg-deb --root-owner-group -b $BASENAME
|
|
mkdir -p ../results
|
|
mv $BASENAME.deb ../results/$BASENAME.deb
|
|
rm -rf $BASENAME |