Start adding a registry editor
This commit is contained in:
parent
a8a68e84bb
commit
4f1421c88e
4 changed files with 30 additions and 1 deletions
|
@ -21,5 +21,6 @@ call dart compile exe -o out\\nbt2snbt.exe bin\\nbt2snbt.dart
|
||||||
call dart compile exe -o out\\snbt2nbt.exe bin\\snbt2nbt.dart
|
call dart compile exe -o out\\snbt2nbt.exe bin\\snbt2nbt.dart
|
||||||
call dart compile exe -o out\\pause.exe bin\\pause.dart
|
call dart compile exe -o out\\pause.exe bin\\pause.dart
|
||||||
call dart compile exe -o out\\sleep.exe bin\\sleep.dart
|
call dart compile exe -o out\\sleep.exe bin\\sleep.dart
|
||||||
|
call dart compile exe -o out\\regedit.exe bin\\regedit.dart
|
||||||
|
|
||||||
cd ..
|
cd ..
|
|
@ -17,6 +17,7 @@ dart compile exe -o out/snbt2nbt-linux-x64 bin/snbt2nbt.dart
|
||||||
dart compile exe -o out/uuidgen-linux-x64 bin/uuidgen.dart
|
dart compile exe -o out/uuidgen-linux-x64 bin/uuidgen.dart
|
||||||
dart compile exe -o out/pause-linux-x64 bin/pause.dart
|
dart compile exe -o out/pause-linux-x64 bin/pause.dart
|
||||||
dart compile exe -o out/sleep-linux-x64 bin/sleep.dart
|
dart compile exe -o out/sleep-linux-x64 bin/sleep.dart
|
||||||
|
dart compile exe -o out/regedit-linux-x64 bin/regedit.dart
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|
25
dart/bin/regedit.dart
Normal file
25
dart/bin/regedit.dart
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
import 'package:dart/constants.dart';
|
||||||
|
import 'package:libac_dart/argparse/Args.dart';
|
||||||
|
import 'package:libac_dart/argparse/Builder.dart';
|
||||||
|
import 'package:libac_dart/argparse/CLIHelper.dart';
|
||||||
|
import 'package:libac_dart/argparse/types/Bool.dart';
|
||||||
|
import 'package:libac_dart/consts.dart';
|
||||||
|
|
||||||
|
Future<int> main(List<String> args) async {
|
||||||
|
String HEADER = "Registry Editor\nVersion: ${HelperConsts.REGEDIT_VERSION}\nUsing Bundled LibAC: ${Constants.VERSION}\nAuthor: Tara Piccari\n";
|
||||||
|
|
||||||
|
Arguments defaults = ArgumentsBuilder.builder()
|
||||||
|
.withArgument(BoolArgument(name: "help", description: "Oh hey it's me!"))
|
||||||
|
.withArgument(BoolArgument(name: "add", description: "Add or update registry value"))
|
||||||
|
.withArgument(BoolArgument(name: "del", description: "Delete Registry value"))
|
||||||
|
.build();
|
||||||
|
|
||||||
|
Arguments parsed = await CLIHelper.parseArgs(args, Arguments());
|
||||||
|
|
||||||
|
if(parsed.count==0 || parsed.hasArg("help")) {
|
||||||
|
print("${HEADER}\n\n${CLIHelper.makeArgCLIHelp(defaults)}");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
|
@ -69,8 +69,10 @@ download_with_retry "https://ci.zontreck.com/job/Projects/job/Dart/job/SimpleHel
|
||||||
|
|
||||||
download_with_retry "https://ci.zontreck.com/job/Projects/job/Dart/job/SimpleHelperTools/job/main/lastSuccessfulBuild/artifact/dart/out/mkfsreport-linux-x64" "/usr/bin/mkfsreport"
|
download_with_retry "https://ci.zontreck.com/job/Projects/job/Dart/job/SimpleHelperTools/job/main/lastSuccessfulBuild/artifact/dart/out/mkfsreport-linux-x64" "/usr/bin/mkfsreport"
|
||||||
|
|
||||||
|
download_with_retry "https://ci.zontreck.com/job/Projects/job/Dart/job/SimpleHelperTools/job/main/lastSuccessfulBuild/artifact/dart/out/regedit-linux-x64" "/usr/bin/regedit"
|
||||||
|
|
||||||
# Set executable permissions
|
# Set executable permissions
|
||||||
$SUDO_CMD chmod +x /usr/bin/{nbt2snbt,snbt2nbt,pause,mkfsreport,dbikc,vsleep,uuidgen}
|
$SUDO_CMD chmod +x /usr/bin/{nbt2snbt,snbt2nbt,pause,mkfsreport,dbikc,vsleep,uuidgen,regedit}
|
||||||
|
|
||||||
echo "Installation Completed"
|
echo "Installation Completed"
|
||||||
vsleep 5
|
vsleep 5
|
||||||
|
|
Loading…
Reference in a new issue