Vectras-VM-Android/qemu/7.2.22/upgrade.sh
An Bui 09f9654ccd 4.2.4
- Faster return to virtual machine.
- Fixed the frozen virtual machine startup dialog when using X11.
- Added audio support for the built-in X11 display.
- Improved notifications.
- Qemu 7.2.22 has been improved and requires manual updating with the Upgrade tool using a command in the Terminal.
2026-06-10 15:13:21 +07:00

61 lines
No EOL
2.3 KiB
Bash

#!/bin/bash
clear
architecture=$(uname -m)
if [[ ! "$architecture" =~ "aarch64" ]]; then
rm -f setup.sh
echo -e "\e[1;37m[!] Unsupported architecture!"
echo -e "\e[1;37m-\e[0m"
echo -e "\e[1;37mYour device's is not supported. Your device needs to be AArch64 to install this version of Qemu."
echo -e "\e[1;37m-\e[0m"
echo -e "\e[1;37mSetup was canceled."
exit
fi
echo -e "\e[1;37m[!] Qemu 7.2.22 upgrade tool. Warning and do not ignore!"
echo -e "\e[1;37m-\e[0m"
echo -e "\e[1;37mPlease do not run any other commands when this setup begins. If you're running other commands, they haven't finished executing yet or don't want some packages to be forced to be updated when setting up. Any existing installed version of Qemu will be uninstalled. Press Ctrl + C now to cancel the setup immediately."
echo -e "\e[1;37m\e[0m"
echo -e "\e[1;37mBy using Qemu in any way, you agree to the terms, policies, and other related provisions. The owner of this script is not responsible for any consequences that may arise from using Qemu or you have edited these scripts. To disagree and cancel the setup, press Ctrl + C."
echo -e "\e[1;37m-\e[0m"
echo -e "\e[1;37mAutomatically go to next step after 60 seconds or continue immediately by pressing any key and you agree to the above."
if read -r -t 60 -n 1 _; then
echo "Pressed the key and continued immediately."
else
echo "60 seconds elapsed, auto continue."
fi
clear
echo -e "\e[1;37m[i] Installing packages..."
apk update
apk add perl aria2
clear
echo -e "\e[1;37m[i] Killing process..."
pkill -15 -f qemu-system- || true
sleep 1
pkill -9 -f qemu-system- || true
clear
echo -e "\e[1;37m[i] Uninstalling current Qemu..."
rm -f /usr/local/bin/qemu-*
rm -f /usr/share/applications/qemu.desktop
rm -f /usr/share/icons/hicolor/*/qemu.png
rm -rf /usr/share/qemu
clear
echo -e "\e[1;37m[i] Downloading..."
aria2c -x 4 --async-dns=false --disable-ipv6 --check-certificate=false -o setup.tar.gz https://archive.org/download/qemu-7-2-22-for-vectras-vm-nbab/base-june-2026-vectras-vm-arm64-v8a.tar.gz
clear
echo -e "\e[1;37m[i] Installing..."
tar -xzvf setup.tar.gz -C /
clear
echo -e "\e[1;37m[i] Just a sec..."
rm -f setup.tar.gz
chmod 775 /usr/local/bin/qemu*
clear
echo -e "\e[1;37m[i] Done!"
qemu-system-x86_64 -version
rm -f setup.sh