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

Add way to enable VCS info #4076

Open
makew0rld opened this issue Feb 14, 2025 · 2 comments
Open

Add way to enable VCS info #4076

makew0rld opened this issue Feb 14, 2025 · 2 comments

Comments

@makew0rld
Copy link

In Wails v2.9.3, -buildvcs=false was added to the compile step. This affects my build because I was displaying git info in my application as a form of version information. I don't see a way to disable this, so it would be great if there was a build flag that could re-enable VCS information.

Thanks!

@makew0rld
Copy link
Author

Work around for this:

compiler.sh:

#!/usr/bin/env bash

# https://github.com/wailsapp/wails/issues/4076

# https://unix.stackexchange.com/a/258514
for arg do
  shift
  [ "$arg" = "-buildvcs=false" ] && continue
  set -- "$@" "$arg"
done

go "$@"

Then run wails build -compiler ./compiler.sh.

@leaanthony
Copy link
Member

Ah for sure. The default was bad because it broke new templates. If you want to add a flag to enable it I'll happily merge it. Docs will need updating 👍

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

No branches or pull requests

2 participants