pyinstaller替换像git archive这样的字符串

时间:2014-01-03 12:41:33

标签: git pyinstaller git-archive

使用git archive命令,我可以在源代码中插入文本,例如:如果代码有字符串

 # $Format:%cd$

字符串由提交日期替换。

使用pyinstaller和spec文件,我可以来类似吗? (更新构建过程中的字符串)

1 个答案:

答案 0 :(得分:0)

也许解决方案是带有

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

但是,我尝试使用pyinstaller搜索直接解决方案。