diff --git a/jadeemu.sh b/jadeemu.sh index 08a0ce9..bd557d0 100755 --- a/jadeemu.sh +++ b/jadeemu.sh @@ -7,3 +7,4 @@ echo "[LOG]" sleep 0.1 echo "[ERROR]" sleep 1 +echo "Installation finished! You may reboot now!" \ No newline at end of file diff --git a/lib/functions/install.dart b/lib/functions/install.dart index 3005c45..594c9a7 100644 --- a/lib/functions/install.dart +++ b/lib/functions/install.dart @@ -58,9 +58,11 @@ Widget install( test(setOutput, running, setRunning, jsonPrefs); return Column( children: [ - const Text( - 'Installing...', - style: TextStyle( + Text( + output.toString().contains("Installation finished! You may reboot now!") + ? "Installed!" + : "Installing...", + style: const TextStyle( fontSize: 50, fontWeight: FontWeight.bold, color: Color.fromARGB(255, 169, 0, 255)), @@ -101,16 +103,20 @@ Widget install( ), const SizedBox(height: 20), Text( - "This may take a while...", - style: TextStyle( + output.toString().contains("Installation finished! You may reboot now!") + ? "Installation finished! You may reboot now!" + : "This may take a while...", + style: const TextStyle( fontSize: 20, fontWeight: FontWeight.bold, color: Color.fromARGB(255, 169, 0, 255), ), ), Text( - "Please do not close this window until the installation is finished.", - style: TextStyle( + output.toString().contains("Installation finished! You may reboot now!") + ? "You can now close this window and reboot your computer." + : "Please do not close this window until the installation is finished.", + style: const TextStyle( fontSize: 20, fontWeight: FontWeight.bold, color: Color.fromARGB(255, 169, 0, 255),