moonlight-stream / moonlight-embedded

Gamestream client for embedded systems
https://github.com/moonlight-stream/moonlight-embedded/wiki
GNU General Public License v3.0
1.49k stars 324 forks source link

Add git branch name and short hash to moonlight binary #770

Closed aandaluz closed 4 years ago

aandaluz commented 4 years ago

Description Add Git branch hash to moonlight version Purpose When building versions from master it is hard to know which commit hash was used for building the binaries. This patch retrieves the branch name and hash and adds it to the configuration header file, which we late use for displaying moonlight versions in the command line. We also show the compile options used in the build:

pi@raspberrypi:~/moonlight-embedded-bin $ ./moonlight 
Moonlight Embedded 2.4.10-git_hash_in_version-5fd8d91
Built with the following options:(PI;ALSA;PULSE;EMBEDDED)
Usage: moonlight [action] (options) [host]
       moonlight [configfile]
irtimmer commented 4 years ago

Merged with commit 4528b78d81359c4f03c6b269d782a219a111d3b5 with some small changes to make it optional (in case it's compiled from the release tar archive)