some progress(tm) with the actual backend stuff

pull/2/head
axtlos 3 years ago
parent 4df24284f1
commit 952feda27e

@ -0,0 +1,9 @@
#!/usr/bin/bash
echo "[LOG] doing thing"
sleep 0.1
echo "[ERROR] failed doing thing"
sleep 1
echo "[LOG]"
sleep 0.1
echo "[ERROR]"
sleep 1

@ -3,6 +3,12 @@ import 'package:jade_gui/classes/installPrefs.dart';
import 'package:jade_gui/classes/desktop.dart';
import 'package:jade_gui/classes/location.dart';
import 'dart:convert';
import 'dart:io';
test(setOutput) async {
var process = await Process.start('./scripts/jadeemu.sh', []);
process.stdout.transform(utf8.decoder).forEach(setOutput);
}
Widget install(
Location locale,
@ -19,7 +25,10 @@ Widget install(
String hostname,
bool ipv6,
bool enableTimeshift,
setOutput,
output,
) {
test(setOutput);
installPrefs prefs = installPrefs(
locale: locale,
keymap: keymap,
@ -50,6 +59,12 @@ Widget install(
const SizedBox(
height: 20,
),
SingleChildScrollView(
child: Text(output,
style: const TextStyle(
color: Color.fromARGB(255, 169, 0, 255),
)),
),
],
);
}

@ -60,6 +60,7 @@ class _JadeguiState extends State<Jadegui> {
String partitionInfo = "";
String _diskType = "";
String hostname = "";
String output = "";
Desktop currDesktop = desktops[0];
Keymap chosenLayout = Keymap();
@ -470,12 +471,18 @@ class _JadeguiState extends State<Jadegui> {
enableSudo,
rootPass,
currDesktop,
disks,
selectedDisk,
isEfi,
"grub-efi",
isEfi ? "grub-efi" : "grub-legacy",
hostname,
ipv6,
enableTimeshift,
(value) {
setState(() {
output = output + "\n" + value;
});
},
output,
);
break;
default:

@ -0,0 +1,9 @@
#!/usr/bin/bash
echo "[LOG] doing thing"
sleep 0.1
echo "[ERROR] failed doing thing"
sleep 1
echo "[LOG]"
sleep 0.1
echo "[ERROR]"
sleep 1
Loading…
Cancel
Save