added version var

This commit is contained in:
Marcus 2023-05-01 10:46:32 +02:00
parent be7eb788a4
commit 22d3369344

View file

@ -6,8 +6,9 @@
### 2023 ### 2023
CHROOTCMD="sudo chroot build/chroot/" CHROOTCMD="sudo chroot build/chroot/"
MIRROR=$1 VERSION="$(git describe --tags)-$(git rev-parse --short HEAD)"
MIRROR=$1
if [ -z "$MIRROR" ] if [ -z "$MIRROR" ]
then then
MIRROR="http://ftp.gwdg.de/debian/" MIRROR="http://ftp.gwdg.de/debian/"
@ -167,6 +168,8 @@ for md in $(find src/ -name "*.md")
do markdown $md > $(echo $md|sed 's/\.md/\.html/') do markdown $md > $(echo $md|sed 's/\.md/\.html/')
done done
echo $VERSION > src/usr/share/nanodesk/version
### copy nanodesk configs to chroot ### copy nanodesk configs to chroot
message "copy nanodesk config files into chroot" message "copy nanodesk config files into chroot"
sudo cp -r src/* build/chroot/ sudo cp -r src/* build/chroot/
@ -304,7 +307,7 @@ message "generate .iso"
xorriso \ xorriso \
-as mkisofs \ -as mkisofs \
-iso-level 3 \ -iso-level 3 \
-o "build/nanodesk_$(git rev-parse --short HEAD)_$(git describe --tags).iso" \ -o "build/nanodesk_$VERSION.iso" \
-full-iso9660-filenames \ -full-iso9660-filenames \
-volid "NANODESK" \ -volid "NANODESK" \
--mbr-force-bootable -partition_offset 16 \ --mbr-force-bootable -partition_offset 16 \