【发布时间】:2014-01-21 03:20:51
【问题描述】:
使用git archive命令,我可以在源代码中插入文本,例如:如果代码有字符串
# $Format:%cd$
字符串被提交日期替换。
使用 pyinstaller 和 spec 文件,我可以做出类似的东西吗? (在构建过程中更新字符串)
【问题讨论】:
标签: git pyinstaller git-archive
使用git archive命令,我可以在源代码中插入文本,例如:如果代码有字符串
# $Format:%cd$
字符串被提交日期替换。
使用 pyinstaller 和 spec 文件,我可以做出类似的东西吗? (在构建过程中更新字符串)
【问题讨论】:
标签: git pyinstaller git-archive
也许解决方案是一个带有
的 make 文件# makefile
# update some string with git export
git archive ...
# pyinstaller in output directory of git export
pyinstaller file.spec
但是,我尝试使用 pyinstaller 搜索直接解决方案。
【讨论】: