pre-build-hook.sh 192 B

1234
  1. #!/bin/sh
  2. set -ex
  3. echo "#define PROJECT_REPO_URL \"$(git config --get remote.origin.url)\"" > version.h
  4. echo "#define PROJECT_VERSION \"$(git describe --dirty --long --always)\"" >> version.h