|
|
@ -8,7 +8,17 @@ function error {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd Downloads || error 'Failed to change directory!'
|
|
|
|
#change version to latest each time
|
|
|
|
wget https://gitlab.com/bztsrc/usbimager/-/blob/binaries/usbimager_1.0.7-armhf.deb || error 'Failed to Download usbimager_1.0.5-armhf.deb!'
|
|
|
|
VER="1.0.7"
|
|
|
|
sudo dpkg -i usbimager_1.0.7-armhf.deb || error 'Failed to install usbimager_1.0.7-armhf.deb!'
|
|
|
|
|
|
|
|
rm -f usbimager_1.0.7-armhf.deb
|
|
|
|
cd $HOME || error "Failed to change directory to $HOME!"
|
|
|
|
|
|
|
|
git clone https://gitlab.com/bztsrc/usbimager.git || error "Failed to clone USBImager repo!"
|
|
|
|
|
|
|
|
cd usbimager/ || error "Failed to entr usbimager repo folder!"
|
|
|
|
|
|
|
|
git checkout $VER || error "Failed to checkout version $VER!"
|
|
|
|
|
|
|
|
cd src/
|
|
|
|
|
|
|
|
USE_LIBUI=yes make -j$(nproc)
|
|
|
|
|
|
|
|
make deb
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
sudo apt install -fy ./usbimager*armhf.deb
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
rm -rf usbimager/
|
|
|
|