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.
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
--onefileor--onedircommand-line option in the spec-file code? This way I would only need to maintain one spec file.