Skip to content

Commit

Permalink
Merge pull request #98 from kris-nova/1.0.1
Browse files Browse the repository at this point in the history
1.0.1
  • Loading branch information
krisnova authored Nov 21, 2021
2 parents cb9e527 + 0dd1898 commit 1dbbf57
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@
#

all: compile
version=1.0.0

# Global release version.
# Change this to bump the build version!
version="1.0.0"
version="1.0.1"

compile: ## Compile for the local architecture ⚙
@echo "Compiling..."
Expand All @@ -49,6 +48,7 @@ clean: ## Clean your artifacts 🧼
rm -rf out/*
rm -rf tmp/*

.PHONY: release
release: ## Make the binaries for a GitHub release 📦
mkdir -p release
GOOS="linux" GOARCH="amd64" go build -ldflags "-X 'github.com/kris-nova/naml.Version=$(version)'" -o release/naml-linux-amd64 cmd/*.go
Expand All @@ -57,9 +57,10 @@ release: ## Make the binaries for a GitHub release 📦
GOOS="linux" GOARCH="386" go build -ldflags "-X 'github.com/kris-nova/naml.Version=$(version)'" -o release/naml-linux-386 cmd/*.go
GOOS="darwin" GOARCH="amd64" go build -ldflags "-X 'github.com/kris-nova/naml.Version=$(version)'" -o release/naml-darwin-amd64 cmd/*.go

.PHONY: aur
aur: ## Publish to AUR using my SSH key
@echo "Publishing to AUR using Kris Nóva's key (if exists)..."
./aur/publish
cd aur && ./publish

.PHONY: help
help: ## 🤔 Show help messages for make targets
Expand Down
2 changes: 1 addition & 1 deletion aur/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgbase=naml
pkgname=(naml)
pkgver=v1.0.0
pkgver=v1.0.1
pkgrel=1
pkgdesc="Not Another Markup Language [NAML]"
arch=(x86_64)
Expand Down
2 changes: 1 addition & 1 deletion embed_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ import (
var Version string = "{{ .Version }}"
func main() {
naml.Version = Version
naml.Register(New{{ .AppNameTitle }}("{{ .AppNameTitle }}Instance", "{{ .Description }}"))
err := naml.RunCommandLine()
if err != nil {
Expand Down Expand Up @@ -184,3 +183,4 @@ func (x *{{ .AppNameTitle }}) Objects() []runtime.Object {
return x.objects
}
`

1 change: 0 additions & 1 deletion src/main.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import (
var Version string = "{{ .Version }}"

func main() {
naml.Version = Version
naml.Register(New{{ .AppNameTitle }}("{{ .AppNameTitle }}Instance", "{{ .Description }}"))
err := naml.RunCommandLine()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
)

// Version is this specific version on naml
var Version string
var Version string = "1.0.1"

func Banner() {
if Version == "" {
Expand Down

0 comments on commit 1dbbf57

Please sign in to comment.