Files
PiliPlus/lib/scripts/build.sh
bggRGjQaUbCoE 6817eb6e56 fix: reply jump url
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-02-10 11:13:55 +08:00

18 lines
402 B
Bash

#!/bin/bash
if [[ "$OSTYPE" == "darwin"* ]]; then
build_time=$(date -u -v+8H +"%Y-%m-%d %H:%M:%S")
else
build_time=$(date -u +"%Y-%m-%d %H:%M:%S" -d "+8 hours")
fi
commit_hash=$(git rev-parse HEAD)
cat <<EOL > lib/build_config.dart
class BuildConfig {
static const bool isDebug = false;
static const String buildTime = '$build_time';
static const String commitHash = '$commit_hash';
}
EOL