Skip to content

Commit

Permalink
fix: correctly pass version on build
Browse files Browse the repository at this point in the history
  • Loading branch information
mishamyrt committed Feb 23, 2024
1 parent 21cfe9b commit 5fc7166
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog][],
and this project adheres to [Semantic Versioning][].

## 2.0.1

### Fixed

* Displayed version
* Removed message about non-existent update

## [2.0.0]

To bring the look and feel of different operating systems out of this repository, the [Naco UI](https://naco.myrt.co/) Kit was developed. This release mainly focuses on UI relocation. In addition, the UI architecture has been extensively updated. This will allow to extend the application with less time consuming.
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = 2.0.0
VERSION = 2.0.1
DIST_PATH = dist

OS := `echo $(shell uname) | tr A-Z a-z`
Expand Down
6 changes: 0 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ import (
"path"
)

// AppVersion represents current executable version
var AppVersion = "dev"

// AppName represents app name
var AppName = "Nuga"

//go:embed all:frontend/dist
var assets embed.FS

Expand Down
2 changes: 1 addition & 1 deletion makefiles/build.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Nuga build Makefile targets
BUILD_PATH = build/bin
PLATFORMS_DARWIN = darwin/amd64,darwin/arm64
LD_FLAGS = -X 'nuga_ui/internal/nuga.AppVersion=v$(VERSION)' -s -w
LD_FLAGS = -X 'nuga_ui/config.AppVersion=v$(VERSION)' -s -w

define pack_darwin_release
mkdir -p "$(DIST_PATH)/$(1)"
Expand Down

0 comments on commit 5fc7166

Please sign in to comment.