Commit 910d4525 authored by rgaudin's avatar rgaudin
Browse files

Fixed #237: Disabled metadata on Windows binaries to prevent an UAC bug

parent ced8e8ed
......@@ -2,6 +2,7 @@
* Fixed an unmount issue on Linux
* File size entry is now a selection list of standard SD cards sizes
* Rebranded as Kiwix-hotspot
* Disabled Metadata for windows binaries due to a bug [regression]
2.0-rc10
* Fixed wikifundi config regression
......
......@@ -2,7 +2,7 @@ version: 1.0.{build}
clone_folder: c:\projects\kiwix-hotspot
image: Visual Studio 2015
image: Visual Studio 2017
build: off
......@@ -42,9 +42,8 @@ install:
- cmd: choco install openssl.light
- openssl enc -d -aes-256-cbc -md sha256 -pass pass:%win_certificate_secret% -in kiwix.p12.enc -out kiwix.pfx
- nuget install secure-file -ExcludeVersion
- nuget install ResourceHacker.CommandLineTool -ExcludeVersion
- choco install reshack.portable -y
- secure-file\tools\secure-file -decrypt pibox_installer_ci_rsa.appveyor_enc -secret %certificate_secret% -out pibox_installer_ci_rsa
- ResourceHacker.CommandLineTool\tools\ResourceHacker.exe -help
# Download vexpress-boot
- appveyor DownloadFile "http://download.kiwix.org/dev/vexpress-boot.zip"
......@@ -126,13 +125,15 @@ install:
# download tools
- cd C:\projects\kiwix-hotspot\windows_bundle\
- appveyor DownloadFile "http://download.kiwix.org/dev/GoRC.exe" -FileName "GoRC.exe"
# create SFX exe from 7z archive
- copy /b "C:\Program Files\7zextra\7zS.sfx" + sfxconfig.txt + kiwix-hotspot.7z kiwix-hotspot.exe
# change icon and add version info to exe
- GoRC.exe /fo resources.res resources.rc
- copy ..\kiwix-hotspot-logo.ico icon.ico
- c:\projects\kiwix-hotspot\ResourceHacker.CommandLineTool\tools\ResourceHacker.exe -script reshack.txt
- C:\ProgramData\chocolatey\lib\reshack.portable\tools\ResourceHacker.exe -open resources.rc -save resources.res -action compile -log CONSOLE
# not changing version info due to a bug in Appveyor/ResourceHacker
#- C:\ProgramData\chocolatey\lib\reshack.portable\tools\ResourceHacker.exe -open kiwix-hotspot.exe -save kiwix-hotspot.exe -action addoverwrite -res resources.res -mask VERSIONINFO,1, -log CONSOLE
- C:\ProgramData\chocolatey\lib\reshack.portable\tools\ResourceHacker.exe -open kiwix-hotspot.exe -save kiwix-hotspot.exe -action addoverwrite -res icon.ico -mask ICONGROUP,MAINICON, -log CONSOLE
- timeout 10
- cd C:\projects\kiwix-hotspot\dist\kiwix-hotspot
# sign the build
......
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION VERSION_TUPLE,0,0
FILEOS VOS_UNKNOWN
FILETYPE VFT_APP
{
BLOCK "StringFileInfo"
{
......@@ -9,6 +11,7 @@ VS_VERSION_INFO VERSIONINFO
VALUE "CompanyName", "Kiwix\0"
VALUE "FileDescription", "Kiwix Hotspot\0"
VALUE "FileVersion", "1.0.0.0\0"
VALUE "InternalName", "kiwix-hotspot.exe\0"
VALUE "LegalCopyright", "Association Kiwix\0"
VALUE "OriginalFilename", "kiwix-hotspot.exe\0"
VALUE "ProductName", "Kiwix Hotspot\0"
......@@ -17,6 +20,6 @@ VS_VERSION_INFO VERSIONINFO
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x409, 1200
VALUE "Translation", 0x0409 1200
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment