diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-01 11:14:12 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-01 11:14:12 +0200 |
commit | cff4e77bfe62606c19c205e02fd63b3777855392 (patch) | |
tree | ec8573073bf68253267ed741b60bf23b8e4554a3 /installer | |
parent | ui: support clipboard copying for log items (diff) | |
download | wireguard-windows-cff4e77bfe62606c19c205e02fd63b3777855392.tar.xz wireguard-windows-cff4e77bfe62606c19c205e02fd63b3777855392.zip |
version: dynamically get file version
Diffstat (limited to 'installer')
-rw-r--r-- | installer/build.bat | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/installer/build.bat b/installer/build.bat index 918f932a..e3513d54 100644 --- a/installer/build.bat +++ b/installer/build.bat @@ -2,7 +2,7 @@ rem SPDX-License-Identifier: MIT rem Copyright (C) 2019 WireGuard LLC. All Rights Reserved. -for /f "tokens=3" %%a in ('findstr /r "[0-9.]*" ..\version.h') do set WIREGUARD_VERSION=%%a +for /f "tokens=3" %%a in ('findstr /r "WIREGUARD_WINDOWS_VERSION_STRING.*[0-9.]*" ..\version.h') do set WIREGUARD_VERSION=%%a set WIREGUARD_VERSION=%WIREGUARD_VERSION:"=% set STARTDIR=%cd% |