From 5a88c0045dfd040c343902b7f6b76b84d70eed51 Mon Sep 17 00:00:00 2001 From: abbodi1406 Date: Thu, 3 Mar 2022 08:24:08 +0300 Subject: [PATCH] png2 --- convert.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/convert.sh b/convert.sh index 79f0fa7..abce5cb 100755 --- a/convert.sh +++ b/convert.sh @@ -498,6 +498,11 @@ elif [ -e ./ISODIR/sources/background_svr.png ]; then bckimg=background_svr.png fi +if [ "${bckimg: -3}" == "png" ]; then +wimlib-imagex update ISODIR/sources/boot.wim 1 \ + --command "add ISODIR/sources/$bckimg /Windows/system32/winre.png" >/dev/null +fi + wimlib-imagex update ISODIR/sources/boot.wim 1 \ --command "add ISODIR/sources/$bckimg /Windows/system32/winre.jpg" >/dev/null @@ -527,9 +532,9 @@ echo "delete /Windows/System32/winpeshl.ini" >"$tempDir/update.txt" echo "add ISODIR/setup.exe /setup.exe" >>"$tempDir/update.txt" echo "add ISODIR/sources/inf/setup.cfg /sources/inf/setup.cfg" >>"$tempDir/update.txt" echo "add ISODIR/sources/$bckimg /Windows/system32/winre.jpg" >>"$tempDir/update.txt" -if [ "${bckimg: -3}" == "bmp" ]; then - echo "add ISODIR/sources/$bckimg /sources/background.bmp" >>"$tempDir/update.txt" -else +echo "add ISODIR/sources/$bckimg /sources/background.bmp" >>"$tempDir/update.txt" +if [ "${bckimg: -3}" == "png" ]; then + echo "add ISODIR/sources/$bckimg /Windows/system32/winre.png" >>"$tempDir/update.txt" echo "add ISODIR/sources/$bckimg /sources/background.png" >>"$tempDir/update.txt" fi for i in $files; do