Skip to content

Commit

Permalink
fix: Allow passing Global version number and build ID to frontend build
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsang committed Mar 14, 2024
1 parent d720257 commit f4ac0d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ TSC=./node_modules/typescript/bin/tsc
UGLIFYJS=./node_modules/terser/bin/terser
UGLIFYCSS=./node_modules/uglifycss/uglifycss

VERSION=2.0.0
BRANCH = a
BUILDID=$(shell git rev-parse --short HEAD)
VERSION?=2.0.0-b
BUILDID?=master

GSED=sed
UNAME_S := $(shell uname -s)
Expand Down Expand Up @@ -122,7 +121,7 @@ build_javascripts: ts
(cat "$${f}"; echo) >> dist/antos.js;\
rm "$${f}";\
done
echo 'OS.VERSION.version_string = "$(VERSION)-$(BRANCH)-$(BUILDID)";' >> dist/antos.js
echo 'OS.VERSION.version_string = "$(VERSION)-$(BUILDID)";' >> dist/antos.js
cp dist/antos.js $(BUILDDIR)/scripts/
echo "if(exports){ exports.__esModule = true;exports.OS = OS; }" >> dist/antos.js
rm -r dist/core
Expand Down Expand Up @@ -229,8 +228,8 @@ release: main uglify
doc:
# npm install typedoc --save-dev
# npm install typedoc-plugin-merge-modules --save-dev
# ./node_modules/.bin/typedoc --mode file --excludeNotExported --hideGenerator --name "AntOS $(VERSION)-$(BRANCH)-$(BUILDID) API" --out $(DOCDIR)
./node_modules/.bin/typedoc --hideGenerator --plugin typedoc-plugin-merge-modules --entryPointStrategy expand --name "AntOS $(VERSION)-$(BRANCH)-$(BUILDID) API" --out $(DOCDIR)
# ./node_modules/.bin/typedoc --mode file --excludeNotExported --hideGenerator --name "AntOS $(VERSION)-$(BUILDID) API" --out $(DOCDIR)
./node_modules/.bin/typedoc --hideGenerator --plugin typedoc-plugin-merge-modules --entryPointStrategy expand --name "AntOS $(VERSION)-$(BUILDID) API" --out $(DOCDIR)

test: build_javascripts
jest
Expand Down
2 changes: 1 addition & 1 deletion src/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ namespace OS {
* Variable represents the current AntOS source code repository
* is an instance of string
*/
export const REPOSITORY: string = "https://github.com/lxsang/antos";
export const REPOSITORY: string = "https://github.com/antos-rde/antos";

/**
* Indicate whether the current de
Expand Down

0 comments on commit f4ac0d6

Please sign in to comment.