|
|
|
@ -7,11 +7,17 @@ function error {
|
|
|
|
|
exit 1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cd ~/Downloads || error "Failed to change directory to $HOME/Downloads!"
|
|
|
|
|
git clone https://gitlab.com/bztsrc/usbimager.git
|
|
|
|
|
cd usbimager/src/
|
|
|
|
|
#change version to latest each time
|
|
|
|
|
VER="1.0.7"
|
|
|
|
|
|
|
|
|
|
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 dpkg -i usbimager_1.0.5-arm64.deb
|
|
|
|
|
sudo apt install -fy ./usbimager*arm64.deb
|
|
|
|
|
cd ..
|
|
|
|
|
rm -rf usbimager
|
|
|
|
|
rm -rf usbimager/
|
|
|
|
|