pyinstaller replace strings like git archive

135 views Asked by At

with git archive command, I can insert text in the source, example: if the code have the string

 # $Format:%cd$

the string is replaced by the commit date.

with pyinstaller and spec file, I can make come similar ? (update strings in building process)

1

There are 1 answers

0
JuanPablo On

Maybe a solution is a make file with the

# makefile
# update some string with git export
git archive ...
# pyinstaller in output directory of git export
pyinstaller file.spec

but, I try search a direct solution with pyinstaller.