mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
12 lines
226 B
Bash
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
|