Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Add script to generate Windows installers (.msi) #58

Closed
wants to merge 1 commit into from

Conversation

florisvdg
Copy link
Member

No description provided.

Copy link
Member

@mackenbach mackenbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work man! Love this. When can we see it in action?

@@ -26,3 +26,6 @@ build:

install:
go install ${BUILD_FLAGS} ./cmd/secrethub

msi:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding the make msi command to the goreleaser config as a pre or post build hook (not sure which would be preferred here, I think post). Then we can include the resulting .msi files in the release.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried that at first, but those hooks very limited. Can have another look later.

EXE=bin/secrethub.exe
VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))
MANUFACTURER=SecretHub
UPGRADE_CODE=7178CB18-B431-4A9D-B29E-D31E63A1CF77
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a static value?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this is an arbitrary GUID to identify our app, so Windows knows it's same app across potential name changes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok, got it 👍 Consider adding a comment as this is some weird arcane MSI knowledge.

@florisvdg
Copy link
Member Author

It works, but it's not that pretty. It puts an icon on the desktop and it doesn't symlink the binary.

@mackenbach
Copy link
Member

Hmm, ok. Let's research how we can improve the installer. I think there are quite some options for setting e.g. the PATH value that the installer can do.

@mackenbach mackenbach mentioned this pull request Apr 11, 2019
9 tasks
@jpcoenen jpcoenen closed this Oct 14, 2019
@jpcoenen
Copy link
Member

This is coming very soon separately from this PR.

@jpcoenen jpcoenen deleted the feature/msi branch October 14, 2019 11:25
@jpcoenen
Copy link
Member

An MSI installer for v0.30.0 is now live at the releases page.

Direct download links:
64 bit / amd64 / x86_x64
32-bit / i386 / x86

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants