Skip to content

Commit 5d85dde

Browse files
committed
Correct build and add VITE var protection.
1 parent 62a6528 commit 5d85dde

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Makefile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
.PHONY: all compile_frontend bundle_pypi upload_pypi increment_version release
1+
.PHONY: all compile_frontend bundle_pypi upload_pypi increment_version release check_env_var
22

33
# Extract version from setup.py file
44
VERSION := $(shell grep -oP "(?<=version=')[^']*" setup.py)
55

6-
all: build upload_pypi
6+
all: check_env_var build upload_pypi
77

8-
build: compile_frontend bundle_pypi
8+
build: check_env_var compile_frontend bundle_pypi
99

1010
setenv:
1111
export VITE_APP_VERSION=${VERSION}
@@ -36,3 +36,10 @@ bundle_pypi:
3636

3737
upload_pypi:
3838
twine upload dist/*
39+
40+
check_env_var:
41+
ifeq ($(VITE_WEB_ADDRESS),)
42+
@echo "VITE_WEB_ADDRESS not set, proceeding..."
43+
else
44+
$(error "VITE_WEB_ADDRESS is set, aborting...")
45+
endif

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name='gpt_code_ui',
10-
version='0.42.27',
10+
version='0.42.28',
1111
description="An Open Source version of ChatGPT Code Interpreter",
1212
long_description=long_description,
1313
long_description_content_type='text/markdown', # This field specifies the format of the `long_description`.

0 commit comments

Comments
 (0)