Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create git metadata on Linux build #26

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

KingGorrin
Copy link

@KingGorrin KingGorrin commented Jan 31, 2023

What?

Adds git metadata to the lib\utils\metadata.dart file when building for Linux.

Why?

Adding the git metadata to the lib\utils\metadata.dart file makes it available within syrius.

How?

The linux/CMakeLists.txt file has a custom target git_metadata which always executes the linux/create-git-metadata.sh shell script when building for Linux.

The linux/create-git-metadata.sh shell script executes git commands and populates the following variables:

  • GIT_BRANCH_NAME
  • GIT_COMMIT_HASH
  • GIT_COMMIT_MESSAGE
  • GIT_COMMIT_DATE
  • GIT_ORIGIN_URL
  • GIT_COMMIT_FILE

The results are written to the lib\utils\metadata.dart file.

@alienc0der alienc0der merged commit c35e982 into alienc0der:cicd Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants