使用git archive
命令,我可以在源代码中插入文本,例如:如果代码有字符串
# $Format:%cd$
字符串由提交日期替换。
使用pyinstaller和spec文件,我可以来类似吗? (更新构建过程中的字符串)
答案 0 :(得分:0)
也许解决方案是带有
的make文件# makefile
# update some string with git export
git archive ...
# pyinstaller in output directory of git export
pyinstaller file.spec
但是,我尝试使用pyinstaller搜索直接解决方案。