Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on May 27, 2021. It is now read-only.

Latest commit

 

History

History
History
35 lines (28 loc) · 1.14 KB

File metadata and controls

35 lines (28 loc) · 1.14 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright (C) 2020 Extreme Networks, Inc - All Rights Reserved
# Unauthorized copying of this file, via any medium is strictly prohibited
# Proprietary and confidential
COMPONENT := $(notdir $(CURDIR))
PKG_RELEASE ?= 1
PKG_VERSION ?= $(shell node -e "console.log(require('./package.json').st2_version)")
PREFIX ?= /opt/stackstorm/static/webui/flow
CHANGELOG_COMMENT ?= "automated build, version: $(PKG_VERSION)"
#DEB_EPOCH := $(shell echo $(PKG_VERSION) | grep -q dev || echo '1')
DEB_DISTRO := $(shell (echo $(PKG_VERSION) | grep -q dev) && echo unstable || echo stable)
.PHONY: all build clean install deb rpm
all: build
build:
node_modules/.bin/gulp production
clean:
rm -Rf build/
mkdir -p build/
install:
mkdir -p $(DESTDIR)$(PREFIX)
cp -R $(CURDIR)/build/* $(DESTDIR)$(PREFIX)
deb:
# Stable versions use epoch, for example 1:1.3.1-3, this made to distinguish
# them form dev versions (which use no epoch).
[ -z "$(DEB_EPOCH)" ] && _epoch="" || _epoch="$(DEB_EPOCH):"; \
dch -m --force-distribution -v$${_epoch}$(PKG_VERSION)-$(PKG_RELEASE) -D$(DEB_DISTRO) $(CHANGELOG_COMMENT)
dpkg-buildpackage -b -uc -us
rpm:
rpmbuild -bb rpm/st2flow.spec
Morty Proxy This is a proxified and sanitized view of the page, visit original site.