-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathversion.sh
More file actions
executable file
·35 lines (32 loc) · 868 Bytes
/
Copy pathversion.sh
File metadata and controls
executable file
·35 lines (32 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# Read the version from the 'version' file
VERSION=$(cat version)
# Create the version.rc file
cat <<EOF > version.rc
#include <winver.h>
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEFLAGSMASK 0x3fL
FILEFLAGS 0x0L
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "FileDescription", "Workloader is an open-source CLI tool that leverages the Illumio API to manage resources and automate common tasks."
VALUE "InternalName", "workloader"
VALUE "OriginalFilename", "workloader.exe"
VALUE "ProductName", "Workloader"
VALUE "ProductVersion", "$VERSION"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0409, 1200
END
END
EOF