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

WIP: Pass Twitter client secrets as build arguments #107

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Thaodan
Copy link
Contributor

@Thaodan Thaodan commented Jul 15, 2021

Instead of having the user to create a header file.
The build arguments can be set in qt creator project settings.

@Thaodan Thaodan force-pushed the twitterglobals_build_args branch 4 times, most recently from 215ebbb to bcb9796 Compare July 17, 2021 11:12
@Wunderfitz
Copy link
Owner

As I finally have some time to look at it, maybe some questions - partially already addressed in direct chat, some not. ;)

In general, some automation is definitely good - always wanted to setup an automated build. However, I'd like to avoid that the Twitter client ID and secret are visible to people who just take a look at the logs or the setup files. How would this work here? Moreover, some documentation for the README how to set up the build would be needed - especially as the current Build section would become outdated with this change.

@Thaodan
Copy link
Contributor Author

Thaodan commented Aug 25, 2021 via email

@Wunderfitz
Copy link
Owner

Mhmm, not really sure then. Using GitHub Actions with built-in secrets seems to work better, see e.g. the build contributed by @jgibbon for https://github.com/Wunderfitz/harbour-fernschreiber. From my perspective there is no urgent need to invest a lot of time here then. Feel free to do so, but the thing with the secrets would be important - also when it comes to additional integrations in the future where other secrets/credentials are needed...

@Thaodan
Copy link
Contributor Author

Thaodan commented Aug 25, 2021 via email

@Wunderfitz
Copy link
Owner

Of course, I don't provide the build log, probably wouldn't be that much beneficial... But if there is a public build, things would be different...

@Thaodan
Copy link
Contributor Author

Thaodan commented Aug 25, 2021 via email

@Thaodan Thaodan force-pushed the twitterglobals_build_args branch 2 times, most recently from 86f25d3 to d794294 Compare September 19, 2021 00:12
@Thaodan
Copy link
Contributor Author

Thaodan commented Dec 4, 2021

I refactored the PR to use QMAKE_SUBSITUTION PR instead now this avoids having the credentails all over the build log.
This works similar as in aboutdata.cpp.in in communi-sailfish:
https://github.com/communi/communi-sailfish/blob/master/src/app/app.pro#L56

@Thaodan Thaodan force-pushed the twitterglobals_build_args branch 3 times, most recently from b90b44f to cd4d12a Compare December 4, 2021 17:52
@Thaodan Thaodan force-pushed the twitterglobals_build_args branch from cd4d12a to 0a8a045 Compare July 8, 2022 14:00
@Thaodan Thaodan force-pushed the twitterglobals_build_args branch from 0a8a045 to a43dbea Compare February 10, 2023 16:59
@Thaodan Thaodan force-pushed the twitterglobals_build_args branch from a43dbea to d354407 Compare January 31, 2024 05:23
Instead of having the user to create a header file.
The build arguments can be set in qt creator project settings.

Signed-off-by: Björn Bidar <[email protected]>
Signed-off-by: Björn Bidar <[email protected]>
@Thaodan Thaodan force-pushed the twitterglobals_build_args branch from d354407 to 2111880 Compare January 31, 2024 05:33
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