Skip to content

ci: use AppVeyor to generate Windows installers - #1224

Merged
edsiper merged 3 commits into
fluent:masterfrom
fujimotos:sf/nsis-appveyor
Mar 26, 2019
Merged

ci: use AppVeyor to generate Windows installers#1224
edsiper merged 3 commits into
fluent:masterfrom
fujimotos:sf/nsis-appveyor

Conversation

@fujimotos

Copy link
Copy Markdown
Contributor

This is a set of patches that enables Windows installer generation
on AppVeyor.

bc9684b ci: tell AppVeyor to generate Windows installers
1b25b46 ci: clean up and simplify AppVeyor's build script
791a894 build: use CPack's default package name on Windows

With these patches applied, I can confirm that AppVeyor automatically
generates Windows installers on each CI build like below:

td-agent-bit-1.1.0-win32.exe
td-agent-bit-1.1.0-win64.exe

Part of #960

Fujimoto Seiji added 3 commits March 26, 2019 14:10
Previously we appended the build machine's CPU architecture to each
package name in order to identify bitness (x86/x64).

    td-agent-bit-1.1.0-1.AMD64.exe

However, on MSVC, we can target 32/64-bit by switching the compiler
option (like /p:PlatformTarget=x86), whose specification is more
significant for users.

With this patch, our Windows installers have file names that reflect
the platform option as below:

    td-agent-bit-1.1.0-win32.exe  ... x86 target build
    td-agent-bit-1.1.0-win64.exe  ... x64 target build

Signed-off-by: Fujimoto Seiji <fujimoto@clear-code.com>
This is a preparation for introducing Windows installer generation.

The previous version tries to be smart by constructing the build
option dynamically which results in messy option handling code.

This patch expands the option handling code, removes bogus flags
from there, and adds a missing flag that was actually required.

Signed-off-by: Fujimoto Seiji <fujimoto@clear-code.com>
With this patch, AppVeyor automatically generates Windows installers
on each CI build. Something like below:

    td-agent-bit-1.1.0-win32.exe
    td-agent-bit-1.1.0-win64.exe

These installers are downloadable from the "Artifacts" tab in the
build detail page, and retained for 6 months.

Signed-off-by: Fujimoto Seiji <fujimoto@clear-code.com>
@edsiper
edsiper merged commit 81673e6 into fluent:master Mar 26, 2019
@edsiper

edsiper commented Mar 26, 2019

Copy link
Copy Markdown
Member

great!

@fujimotos
fujimotos deleted the sf/nsis-appveyor branch December 6, 2019 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants