Add a timestamp generator helper utility

This commit is contained in:
zontreck 2025-01-06 02:44:33 -07:00
parent 3eb1d0e691
commit 43db279895
6 changed files with 26 additions and 11 deletions

View file

@ -13,14 +13,15 @@ cd dart
mkdir out mkdir out
call dart pub get call dart pub get
call dart compile exe -o out\\gch.exe bin\\ch.dart call dart compile exe -o out\gch.exe bin\ch.dart
call dart compile exe -o out\\dbikc.exe bin\\dbikc.dart call dart compile exe -o out\dbikc.exe bin\dbikc.dart
call dart compile exe -o out\\uuidgen.exe bin\\uuidgen.dart call dart compile exe -o out\uuidgen.exe bin\uuidgen.dart
call dart compile exe -o out\\mkfsreport.exe bin\\mkfsreport.dart call dart compile exe -o out\mkfsreport.exe bin\mkfsreport.dart
call dart compile exe -o out\\nbt2snbt.exe bin\\nbt2snbt.dart 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 call dart compile exe -o out\regedit.exe bin\regedit.dart
call dart compile exe -o out\timestamp.exe bin\timestamp.dart
cd .. cd ..

View file

@ -20,6 +20,7 @@ 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 dart compile exe -o out/regedit-linux-x64 bin/regedit.dart
dart compile exe -o out/timestamp-linux-x64 bin/timestamp.dart
cd .. cd ..

8
dart/bin/timestamp.dart Normal file
View file

@ -0,0 +1,8 @@
import 'package:libac_dart/utils/TimeUtils.dart';
import 'package:simplehelpertools/constants.dart';
void main() {
print(
"Timestamp\nVersion: ${HelperConsts.TIMESTAMP_VERSION}\nLibAC Version: ${HelperConsts.LIBAC_VERSION}\n\n");
print("Current unix timestamp is: ${TimeUtils.getUnixTimestamp()}");
}

View file

@ -8,4 +8,7 @@ class HelperConsts {
static const CH_VERSION = "1.0.112724+1534"; static const CH_VERSION = "1.0.112724+1534";
static String get LIBAC_VERSION => Constants.VERSION; static String get LIBAC_VERSION => Constants.VERSION;
static const AES_VERSION = "1.0.010625+0238";
static const TIMESTAMP_VERSION = "1.0.010625+0238";
} }

View file

@ -11,7 +11,7 @@ dependencies:
args: ^2.4.2 args: ^2.4.2
libac_dart: libac_dart:
hosted: https://git.zontreck.com/api/packages/AriasCreations/pub/ hosted: https://git.zontreck.com/api/packages/AriasCreations/pub/
version: 1.2.82924+1846 version: 1.3.010625+0228
dev_dependencies: dev_dependencies:
lints: ^4.0.0 lints: ^4.0.0

View file

@ -73,9 +73,11 @@ 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/AWSParser/job/main/lastSuccessfulBuild/artifact/out/awsparser" "/usr/bin/awsparser" download_with_retry "https://ci.zontreck.com/job/Projects/job/Dart/job/AWSParser/job/main/lastSuccessfulBuild/artifact/out/awsparser" "/usr/bin/awsparser"
download_with_retry "https://ci.zontreck.com/job/Projects/job/Dart/job/SimpleHelperTools/job/main/lastSuccessfulBuild/artifact/dart/out/timestamp-linux-x64" "/usr/bin/timestamp"
# Set executable permissions # Set executable permissions
eval "$SUDO_CMD chmod +x /usr/bin/{nbt2snbt,snbt2nbt,pause,mkfsreport,dbikc,vsleep,uuidgen,regedit,awsparser}" eval "$SUDO_CMD chmod +x /usr/bin/{nbt2snbt,snbt2nbt,pause,mkfsreport,dbikc,vsleep,uuidgen,regedit,awsparser,timestamp}"
echo "Installation Completed" echo "Installation Completed"
vsleep 5 vsleep 5