Skip to content

Commit

Permalink
feat(#111): version numbers for local builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jannis-baum committed Jul 19, 2024
1 parent 1fd31f3 commit 05d074c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ EXE_PATH_MACOS=$(BUILD_DIR_MACOS)/$(EXE_NAME)
SERVER_PATH_LINUX=$(BUILD_DIR_LINUX)/$(SERVER_NAME)
EXE_PATH_LINUX=$(BUILD_DIR_LINUX)/$(EXE_NAME)

VIV_VERSION ?= $(shell git describe --tags --always --dirty)

.PHONY: instruct-build
instruct-build:
@ echo 'Please run `make macos` or `make linux` to build the project'
Expand All @@ -32,7 +34,7 @@ $(DIST_PATH): $(shell find src -type f) tsconfig.json package.json yarn.lock
touch $(DIST_PATH)

$(BUNDLE_PATH): webpack.config.js $(STATIC_PATH) $(DIST_PATH)
node_modules/.bin/webpack
VIV_VERSION=$(VIV_VERSION) node_modules/.bin/webpack
touch $(BUNDLE_PATH)

# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 05d074c

Please sign in to comment.