Files
PiliPlus/lib/scripts/build.sh
bggRGjQaUbCoE 768f3e20b1 opt buildTime
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-06-18 19:48:02 +08:00

12 lines
226 B
Bash

#!/bin/bash
build_time=$(date +%s)
commit_hash=$(git rev-parse HEAD)
cat <<EOL > lib/build_config.dart
class BuildConfig {
static const int buildTime = $build_time;
static const String commitHash = '$commit_hash';
}
EOL