Skip to content

Commit

Permalink
Add .vale_version file for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hawblitzel committed Nov 1, 2018
1 parent b4191ab commit 7f6b9ff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .vale_version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.2.8
1 change: 1 addition & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ if do_build:
pathlib.Path('bin').mkdir(parents = True, exist_ok = True)
pathlib.Path('obj').mkdir(parents = True, exist_ok = True)
pathlib.Path('obj/cache_checked').mkdir(parents = True, exist_ok = True)
CopyFile('bin/.vale_version', '.vale_version')

Export('env')
Export('win32')
Expand Down
9 changes: 9 additions & 0 deletions tools/scripts/release.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import os
import shutil

with open('.vale_version') as f:
version = f.read().splitlines()[0]
release = f'vale-release-{version}'
print(release)
shutil.copytree('bin', f'releases/{release}/{release}/bin', ignore = shutil.ignore_patterns('z3.exe'))
shutil.make_archive(f'releases/{release}', 'zip', f'releases/{release}')

0 comments on commit 7f6b9ff

Please sign in to comment.