Skip to content

Commit

Permalink
Switch to goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
zerebos committed Apr 22, 2023
1 parent ad26044 commit 0ea83a3
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 39 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build/
node_modules/
dist/
31 changes: 31 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json

builds:
- binary: bdcli
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- arm
- '386'
ignore:
- goos: darwin
goarch: '386'

archives:
- format: tar.gz
name_template: "{{.Binary}}_{{.Os}}_{{.Arch}}"
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'bdcli_checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
release:
draft: true
38 changes: 0 additions & 38 deletions Makefile

This file was deleted.

31 changes: 31 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "@betterdiscord/cli",
"version": "0.0.1-beta",
"description": "A cross-platform CLI for managing BetterDiscord",
"main": "index.js",
"publishConfig": {
"access": "public"
},
"scripts": {
"postinstall": "go-npm install",
"preuninstall": "go-npm uninstall"
},
"repository": {
"type": "git",
"url": "git+https://github.com/BetterDiscord/cli.git"
},
"author": "BetterDiscord Team",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/BetterDiscord/cli/issues"
},
"homepage": "https://github.com/BetterDiscord/cli#readme",
"dependencies": {
"@go-task/go-npm": "^0.1.17"
},
"goBinary": {
"name": "bdcli",
"path": "./bin",
"url": "https://github.com/BetterDiscord/cli/releases/download/v{{version}}/bdcli_{{platform}}_{{arch}}{{archive_ext}}"
}
}

0 comments on commit 0ea83a3

Please sign in to comment.