Skip to content

Make command-line options accessible within spec file #4482

Description

@sveinse

I have an application that I'm building twice: a onefile version and a onedir version. The spec files for doing this are very similar, but there are some differences. E.g. onedir calls EXE and COLLECT, while onefile calls EXE with some other options.

Is there a way I can programmically detect the --onefile or --onedir command-line option in the spec-file code? This way I would only need to maintain one spec file.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featureFeature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions