Repository navigation
Explain installing, running and updating the program - #45
Merged
Merged
Conversation
The README told users to clone the repository and go run main.go. It now covers what users of v1.0.0 will do: - Install with go install github.com/taskinen/mailboxzero@latest, or download a ready-built program from the release, check it against checksums.txt, and allow the unsigned program on macOS or Windows. - First run: create ~/.config/mailboxzero/config.yaml with -example-config (PowerShell too), add the API token, start the program and open the page. - Update by running go install again or downloading the new release; -version and the page header show the version. - Running from source, the config location, a troubleshooting entry for a missing config file, and the updated project tree.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The README told users to clone the repository and
go run main.go. For v1.0.0, users will install the program instead. This is the third and last PR before the release:Merge it after #43 and #44: it documents their features. It must also be merged before the tag, because the release archives and pkg.go.dev show the tagged commit's README.
Changes
README.mdonly. The old "Setup" section becomes Installation:go install github.com/taskinen/mailboxzero@latest.$(go env GOPATH)/bin, which must be onPATH.checksums.txt(sha256sumorshasum --ignore-missing -c; checked on macOS).xattr -d com.apple.quarantine, or Open Anyway) and Windows (SmartScreen).~/.config/mailboxzero/config.yamlwith-example-config(withchmod 600, since it holds the token, plus PowerShell commands for Windows), add the token, start the program and open the page.XDG_CONFIG_HOMEand-config.>(UTF-16 with a byte-order mark) loads.go install …@latestagain, or download the new release.@v1.0.0installs a particular version.-versionand the page header show the version, and the release notes say what changed.Also:
go run . -config config-mock.yaml.example.go run .,go build ., and why it's the package rather thanmain.go), plus GoReleaser and the version package in the project tree.Checked
go run main.go,cp config…orgo build … main.goremains.#first-run,#getting-fastmail-api-token,#enabling-real-changes) match their headings.-example-config,-versionand the missing-config message in Prepare the binary for installing: version, example config, config location #43.