Browse Source

include updated VERSION when generating the source tarball

This ensures that the commit hash is included in the compiled version
when a source tarball is generated for a development snapshot.
Ashish Kulkarni 11 năm trước cách đây
mục cha
commit
b7b9805e3f
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      scripts/build.py

+ 2 - 0
scripts/build.py

@@ -773,8 +773,10 @@ def build_source_tarball(config, basedir):
     shell('git clean -fdx')
     shell('git reset --hard HEAD')
     shell('git submodule update')
+    open('VERSION', 'w').write(version)
     with tarfile.open('wkhtmltox-%s.tar.bz2' % version, 'w:bz2') as tar:
         tar.add('.', 'wkhtmltox-%s/' % version, filter=_filter_tar)
+    shell('git reset --hard HEAD')
 
 # --------------------------------------------------------------- MSVC (2008-2013)