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/desktop.dart';
import 'package:jade_gui/classes/location.dart'; import 'package:jade_gui/classes/location.dart';
import 'dart:convert'; 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( Widget install(
Location locale, Location locale,
@ -19,7 +25,10 @@ Widget install(
String hostname, String hostname,
bool ipv6, bool ipv6,
bool enableTimeshift, bool enableTimeshift,
setOutput,
output,
) { ) {
test(setOutput);
installPrefs prefs = installPrefs( installPrefs prefs = installPrefs(
locale: locale, locale: locale,
keymap: keymap, keymap: keymap,
@ -50,6 +59,12 @@ Widget install(
const SizedBox( const SizedBox(
height: 20, 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 partitionInfo = "";
String _diskType = ""; String _diskType = "";
String hostname = ""; String hostname = "";
String output = "";
Desktop currDesktop = desktops[0]; Desktop currDesktop = desktops[0];
Keymap chosenLayout = Keymap(); Keymap chosenLayout = Keymap();
@ -470,12 +471,18 @@ class _JadeguiState extends State<Jadegui> {
enableSudo, enableSudo,
rootPass, rootPass,
currDesktop, currDesktop,
disks, selectedDisk,
isEfi, isEfi,
"grub-efi", isEfi ? "grub-efi" : "grub-legacy",
hostname, hostname,
ipv6, ipv6,
enableTimeshift, enableTimeshift,
(value) {
setState(() {
output = output + "\n" + value;
});
},
output,
); );
break; break;
default: 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