avatar

ShīnChvën ✨

Effective Accelerationism

Powered by Druid

Sign Git Revision to Builds to Track Down Issues

Wed Jan 04 2023

Write a build script to sign the git revision to the build. This way, you can track down the exact git revision that the build is based on.

## Get Git revision
VERSION=$(git rev-parse HEAD)
## Get date
DATE=$(date)

echo "$VERSION" > ./version.txt
echo "$DATE" >> ./version.txt