【问题标题】:pyinstaller replace strings like git archivepyinstaller 替换像 git archive 这样的字符串
【发布时间】:2014-01-21 03:20:51
【问题描述】:

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

 # $Format:%cd$

字符串被提交日期替换。

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

【问题讨论】:

    标签: git pyinstaller git-archive


    【解决方案1】:

    也许解决方案是一个带有

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

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

    【讨论】:

      猜你喜欢
      • 2019-05-08
      • 2017-03-09
      • 2020-10-25
      • 1970-01-01
      • 1970-01-01
      • 2011-02-19
      • 2012-09-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多