2021-10-30 14:50:23 +02:00
|
|
|
# Scoop Manifests
|
2018-02-12 19:53:39 +02:00
|
|
|
|
2019-08-13 20:28:03 +02:00
|
|
|
After releasing to GitHub or GitLab, GoReleaser can generate and publish a
|
2018-02-12 22:50:03 +02:00
|
|
|
_Scoop App Manifest_ into a repository that you have access to.
|
2018-02-12 19:53:39 +02:00
|
|
|
|
2018-02-12 22:50:03 +02:00
|
|
|
The `scoop` section specifies how the manifest should be created. See
|
2020-07-05 01:00:19 +02:00
|
|
|
the commented example below:
|
2018-02-12 19:53:39 +02:00
|
|
|
|
2020-05-10 23:59:21 +02:00
|
|
|
```yaml
|
2021-12-23 02:52:01 +02:00
|
|
|
# .goreleaser.yaml
|
2018-02-12 19:53:39 +02:00
|
|
|
scoop:
|
2019-08-13 20:28:03 +02:00
|
|
|
# Template for the url which is determined by the given Token (github or gitlab)
|
|
|
|
# Default for github is "https://github.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
|
2021-05-17 19:33:04 +02:00
|
|
|
# Default for gitlab is "https://gitlab.com/<repo_owner>/<repo_name>/-/releases/{{ .Tag }}/downloads/{{ .ArtifactName }}"
|
2020-11-21 15:45:34 +02:00
|
|
|
# Default for gitea is "https://gitea.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
|
2018-08-21 03:06:55 +02:00
|
|
|
url_template: "http://github.mycompany.com/foo/bar/releases/{{ .Tag }}/{{ .ArtifactName }}"
|
|
|
|
|
2018-02-12 19:53:39 +02:00
|
|
|
# Repository to push the app manifest to.
|
|
|
|
bucket:
|
|
|
|
owner: user
|
|
|
|
name: scoop-bucket
|
2022-01-31 03:30:07 +02:00
|
|
|
|
|
|
|
# Optionally a branch can be provided.
|
|
|
|
# Defaults to the default repository branch.
|
2021-10-03 16:25:31 +02:00
|
|
|
branch: main
|
2022-01-31 03:30:07 +02:00
|
|
|
|
2020-07-06 22:12:41 +02:00
|
|
|
# Optionally a token can be provided, if it differs from the token provided to GoReleaser
|
2022-04-26 17:11:43 +02:00
|
|
|
token: "{{ .Env.SCOOP_TAP_GITHUB_TOKEN }}"
|
2018-02-12 19:53:39 +02:00
|
|
|
|
2021-06-26 19:14:42 +02:00
|
|
|
# Folder inside the repository to put the scoop.
|
|
|
|
# Default is the root folder.
|
|
|
|
folder: Scoops
|
|
|
|
|
2018-02-12 19:53:39 +02:00
|
|
|
# Git author used to commit to the repository.
|
|
|
|
# Defaults are shown.
|
|
|
|
commit_author:
|
|
|
|
name: goreleaserbot
|
2022-05-18 17:12:42 +02:00
|
|
|
email: bot@goreleaser.com
|
2018-02-12 19:53:39 +02:00
|
|
|
|
2020-04-29 22:45:18 +02:00
|
|
|
# The project name and current git tag are used in the format string.
|
|
|
|
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
|
|
|
|
|
2018-02-12 19:53:39 +02:00
|
|
|
# Your app's homepage.
|
|
|
|
# Default is empty.
|
|
|
|
homepage: "https://example.com/"
|
|
|
|
|
|
|
|
# Your app's description.
|
|
|
|
# Default is empty.
|
|
|
|
description: "Software to create fast and easy drum rolls."
|
|
|
|
|
|
|
|
# Your app's license
|
|
|
|
# Default is empty.
|
|
|
|
license: MIT
|
2018-08-25 22:24:42 +02:00
|
|
|
|
2021-03-15 14:19:09 +02:00
|
|
|
# Setting this will prevent goreleaser to actually try to commit the updated
|
|
|
|
# manifest leaving the responsibility of publishing it to the user.
|
|
|
|
# If set to auto, the release will not be uploaded to the scoop bucket
|
|
|
|
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
|
|
|
|
# Default is false.
|
|
|
|
skip_upload: true
|
|
|
|
|
2018-08-25 22:24:42 +02:00
|
|
|
# Persist data between application updates
|
|
|
|
persist:
|
|
|
|
- "data"
|
|
|
|
- "config.toml"
|
2020-12-05 17:16:32 +02:00
|
|
|
|
|
|
|
# An array of commands to be executed before an application is installed.
|
|
|
|
# Default is empty.
|
|
|
|
pre_install: ["Write-Host 'Running preinstall command'"]
|
|
|
|
|
|
|
|
# An array of commands to be executed after an application is installed.
|
|
|
|
# Default is empty.
|
|
|
|
post_install: ["Write-Host 'Running postinstall command'"]
|
2022-04-12 03:43:22 +02:00
|
|
|
|
|
|
|
# GOAMD64 to specify which amd64 version to use if there are multiple versions
|
|
|
|
# from the build section.
|
2022-04-14 02:29:39 +02:00
|
|
|
# Default is v1.
|
2022-04-12 03:43:22 +02:00
|
|
|
goamd64: v3
|
2018-02-12 19:53:39 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
By defining the `scoop` section, GoReleaser will take care of publishing the
|
|
|
|
Scoop app. Assuming that the project name is `drumroll` and the current tag is
|
|
|
|
`v1.2.3`, the above configuration will generate a `drumroll.json` manifest in
|
|
|
|
the root of the repository specified in the `bucket` section.
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"version": "1.2.3",
|
|
|
|
"architecture": {
|
|
|
|
"64bit": {
|
|
|
|
"url":
|
|
|
|
"https://github.com/user/drumroll/releases/download/1.2.3/drumroll_1.2.3_windows_amd64.tar.gz",
|
2018-09-06 12:20:12 +02:00
|
|
|
"bin": "drumroll.exe",
|
|
|
|
"hash": "86920b1f04173ee08773136df31305c0dae2c9927248ac259e02aafd92b6008a"
|
2018-02-12 19:53:39 +02:00
|
|
|
},
|
|
|
|
"32bit": {
|
|
|
|
"url":
|
|
|
|
"https://github.com/user/drumroll/releases/download/1.2.3/drumroll_1.2.3_windows_386.tar.gz",
|
2018-09-06 12:20:12 +02:00
|
|
|
"bin": "drumroll.exe",
|
|
|
|
"hash": "283faa524ef41987e51c8786c61bb56658a489f63512b32139d222b3ee1d18e6"
|
2018-02-12 19:53:39 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"homepage": "https://example.com/"
|
|
|
|
}
|
|
|
|
```
|
2018-02-12 22:50:03 +02:00
|
|
|
|
|
|
|
Your users can then install your app by doing:
|
|
|
|
|
2020-08-14 23:13:02 +02:00
|
|
|
```sh
|
|
|
|
scoop bucket add org https://github.com/org/repo.git
|
|
|
|
scoop install org/drumroll
|
2018-02-12 22:50:03 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
You can check the
|
|
|
|
[Scoop documentation](https://github.com/lukesampson/scoop/wiki) for more
|
|
|
|
details.
|