From the manual, a spec file can be used to generate a project ie.
python pyinstaller.py [opts] your-program.spec
Is it possible to put some/all of the Allowed Options in the Spec file eg. --upx-dir, --onefile, etc.? If so, how is this achieved. The TOC section maybe applicable but it is not easy to understand. My aim is to reduce the number of [opts] in the project generation statement. Thx.
I can customize the behavior by switching which lines are commented out.
Then, each time I want to run a PyInstaller build, I just call "python
make.py" and I don't have to remember any of the options. The options
are all baked into the make.py script. As an added bonus, I don't have
to modify the .spec file by hand. What you requested would require you
to modify the .spec file by hand, but that would be a hassle if you had
to run Makespec.py again, because it would wipe out the options you had
included in the .spec file.