Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Seshpenguin committed Sep 24, 2022
1 parent a10fd5b commit 9fd76ba
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
*.img*
mnt
pmaports
images
18 changes: 12 additions & 6 deletions build.sh
Expand Up @@ -68,19 +68,24 @@ build_image () {
# chroot
sudo chroot ./mnt /bin/busybox sh <<'EOF'
echo "(chroot) Upgrading to Plasma Mobile Nightly packages..."
/sbin/apk update
/sbin/apk upgrade
/sbin/apk update && /sbin/apk upgrade
/sbin/apk add nano bash neofetch htop
echo "Sineware ProLinux - Plasma Mobile Nightly Image built on $(/bin/date)" >> prolinux_build_info.txt
echo "(chroot) Exiting chroot..."
EOF

sudo rm -rf ./mnt/etc/resolv.conf

sleep 3

sudo umount -R ./mnt
sudo losetup -d $LOOP_DEV

WORK=$(pmbootstrap config work)
pmbootstrap -y zap
pmbootstrap shutdown
sudo rm -rf $WORK
sudo rm ~/.config/pmbootstrap.cfg
}

build_image "tablet-x64uefi" "stable"
Expand All @@ -93,12 +98,13 @@ for f in *.img; do
xz -T0 -v $f
# date as numbers
DATE=$(date +%Y%m%d)
FILE_NAME="sineware-prolinux-plasma-mobile-nightly-${DATE}-${f}.xz"
mv -v "${f}.xz" "${FILE_NAME}"
FILE_NAME="sineware-plasma-mobile-nightly-${DATE}-${f}.xz"
mkdir -pv images/
mv -v "${f}.xz" "images/${FILE_NAME}"
# create hash of file
sha256sum ${FILE_NAME} > ${FILE_NAME}.sha256
sha256sum images/${FILE_NAME} > images/${FILE_NAME}.sha256
done

rsync -aHAXxv --delete --progress *.img.* espimac:/var/www/sineware/images/plasma-mobile-nightly/
rsync -aHAXxv --delete --progress images/ espimac:/var/www/sineware/images/plasma-mobile-nightly/

echo "All done!"

0 comments on commit 9fd76ba

Please sign in to comment.