mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-09 20:31:20 +00:00
Update Makefiles.
This commit is contained in:
parent
1e6aad326c
commit
eec9b1891d
17
Makefile
17
Makefile
@ -1,4 +1,4 @@
|
||||
.PHONY: dist
|
||||
.PHONY: dist api
|
||||
|
||||
# Builds a debug / development binary.
|
||||
build-debug:
|
||||
@ -13,6 +13,21 @@ dist:
|
||||
docker-compose run --rm chirpstack-build-amd64 make dist
|
||||
docker-compose run --rm chirpstack-build-arm64 make dist
|
||||
|
||||
# Set the versions
|
||||
version:
|
||||
test -n "$(VERSION)"
|
||||
sed -i 's/^version.*/version = "$(VERSION)"/g' ./chirpstack/Cargo.toml
|
||||
sed -i 's/^version.*/version = "$(VERSION)"/g' ./backend/Cargo.toml
|
||||
sed -i 's/^version.*/version = "$(VERSION)"/g' ./lrwn/Cargo.toml
|
||||
sed -i 's/"version.*/"version": "$(VERSION)",/g' ./ui/package.json
|
||||
sed -i 's/"version.*/"version": "$(VERSION)",/g' ./api/grpc-web/package.json
|
||||
sed -i 's/"version.*/"version": "$(VERSION)",/g' ./api/js/package.json
|
||||
sed -i 's/version.*/version = "$(VERSION)",/g' ./api/python/src/setup.py
|
||||
sed -i 's/^version.*/version = "$(VERSION)"/g' ./api/rust/Cargo.toml
|
||||
|
||||
api: version
|
||||
cd api && make
|
||||
|
||||
# Builds the UI.
|
||||
build-ui:
|
||||
docker-compose run --rm chirpstack-ui make build
|
||||
|
8
api/Makefile
vendored
8
api/Makefile
vendored
@ -1,4 +1,4 @@
|
||||
.PHONY: rust grpc-web go
|
||||
.PHONY: rust grpc-web go js python
|
||||
|
||||
all:
|
||||
docker-compose up
|
||||
@ -11,3 +11,9 @@ grpc-web:
|
||||
|
||||
go:
|
||||
docker-compose run --rm chirpstack-api-go
|
||||
|
||||
js:
|
||||
docker-compose run --rm chirpstack-api-js
|
||||
|
||||
python:
|
||||
docker-compose run --rm chirpstack-api-python
|
||||
|
8
api/docker-compose.yml
vendored
8
api/docker-compose.yml
vendored
@ -1,8 +1,6 @@
|
||||
version: "2"
|
||||
services:
|
||||
chirpstack-api-rust:
|
||||
environment:
|
||||
- VERSION=4.0.0
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile-rust
|
||||
@ -17,8 +15,6 @@ services:
|
||||
volumes:
|
||||
- ./:/chirpstack/api
|
||||
chirpstack-api-grpc-web:
|
||||
environment:
|
||||
- VERSION=4.0.0
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile-grpc-web
|
||||
@ -26,8 +22,6 @@ services:
|
||||
volumes:
|
||||
- ./:/chirpstack/api
|
||||
chirpstack-api-js:
|
||||
environment:
|
||||
- VERSION=4.0.0
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile-js
|
||||
@ -35,8 +29,6 @@ services:
|
||||
volumes:
|
||||
- ./:/chirpstack/api
|
||||
chirpstack-api-python:
|
||||
environment:
|
||||
- VERSION=4.0.0
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile-python
|
||||
|
2
api/grpc-web/package.json
vendored
2
api/grpc-web/package.json
vendored
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@chirpstack/chirpstack-api-grpc-web",
|
||||
"version": "4.0.0",
|
||||
"version": "4.0.0-test.1",
|
||||
"description": "Chirpstack gRPC-web API",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
|
5
api/js/Makefile
vendored
5
api/js/Makefile
vendored
@ -6,14 +6,11 @@ PROTOC_GEN_GRPC_PATH := ./node_modules/.bin/grpc_tools_node_protoc_plugin
|
||||
PROTOC_ARGS := -I=/googleapis -I=../proto --plugin=protoc-gen-ts=$(PROTOC_GEN_TS_PATH) --plugin=protoc-gen-grpc=$(PROTOC_GEN_GRPC_PATH) --js_out=import_style=commonjs,binary:. --ts_out=service=grpc-node,mode=grpc-js:.
|
||||
PROTOC_GRPC_ARGS := $(PROTOC_ARGS) --grpc_out=grpc_js:.
|
||||
|
||||
all: requirements version common gw api integration meta google-api
|
||||
all: requirements common gw api integration meta google-api
|
||||
|
||||
requirements:
|
||||
yarn install
|
||||
|
||||
version:
|
||||
sed -i 's/"version.*/"version": "$(VERSION)",/g' ./package.json
|
||||
|
||||
common:
|
||||
protoc $(PROTOC_ARGS) ../proto/common/common.proto
|
||||
|
||||
|
2
api/js/package.json
vendored
2
api/js/package.json
vendored
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@chirpstack/chirpstack-api",
|
||||
"version": "4.0.0",
|
||||
"version": "4.0.0-test.1",
|
||||
"description": "Chirpstack JS and TS API",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
|
5
api/python/Makefile
vendored
5
api/python/Makefile
vendored
@ -4,14 +4,11 @@ PROTOC := python -m grpc_tools.protoc
|
||||
PROTOC_ARGS := -I=/googleapis -I=proto --python_out=src --grpc_python_out=src
|
||||
PACKAGE_NAME := import \"chirpstack-api/
|
||||
|
||||
all: requirements pre-build version common gw api integration meta
|
||||
all: requirements pre-build common gw api integration meta
|
||||
|
||||
requirements:
|
||||
pip install grpcio-tools
|
||||
|
||||
version:
|
||||
sed -i 's/version.*/version = "$(VERSION)",/g' ./src/setup.py
|
||||
|
||||
# See: https://github.com/protocolbuffers/protobuf/issues/7061
|
||||
pre-build:
|
||||
rm -rf proto
|
||||
|
2
api/python/src/setup.py
vendored
2
api/python/src/setup.py
vendored
@ -18,7 +18,7 @@ CLASSIFIERS = [
|
||||
|
||||
setup(
|
||||
name='chirpstack-api',
|
||||
version = "4.0.0",
|
||||
version = "4.0.0-test.1",
|
||||
url='https://github.com/brocaar/chirpstack-api',
|
||||
author='Orne Brocaar',
|
||||
author_email='info@brocaar.com',
|
||||
|
2
api/rust/Cargo.lock
generated
vendored
2
api/rust/Cargo.lock
generated
vendored
@ -121,7 +121,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||
|
||||
[[package]]
|
||||
name = "chirpstack_api"
|
||||
version = "4.0.0"
|
||||
version = "4.0.0-test.1"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"pbjson",
|
||||
|
2
api/rust/Cargo.toml
vendored
2
api/rust/Cargo.toml
vendored
@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "chirpstack_api"
|
||||
description = "ChirpStack Protobuf / gRPC API definitions."
|
||||
version = "4.0.0"
|
||||
version = "4.0.0-test.1"
|
||||
authors = ["Orne Brocaar <info@brocaar.com>"]
|
||||
license = "MIT"
|
||||
homepage = "https://www.chirpstack.io"
|
||||
|
5
api/rust/Makefile
vendored
5
api/rust/Makefile
vendored
@ -1,6 +1,6 @@
|
||||
.PHONY: proto version test
|
||||
|
||||
all: proto version test
|
||||
all: proto test
|
||||
|
||||
proto:
|
||||
rm -rf proto
|
||||
@ -10,9 +10,6 @@ proto:
|
||||
cp /googleapis/google/api/annotations.proto proto/google/google/api
|
||||
cp /googleapis/google/api/http.proto proto/google/google/api
|
||||
|
||||
version:
|
||||
sed -i 's/^version.*/version = "$(VERSION)"/g' ./Cargo.toml
|
||||
|
||||
test:
|
||||
cargo test
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "backend"
|
||||
version = "1.0.0"
|
||||
version = "4.0.0-test.1"
|
||||
authors = ["Orne Brocaar <info@brocaar.com>"]
|
||||
edition = "2018"
|
||||
publish = false
|
||||
|
@ -3,7 +3,7 @@ name = "lrwn"
|
||||
description = "Library for encoding / decoding LoRaWAN frames."
|
||||
homepage = "https://www.chirpstack.io"
|
||||
license = "MIT"
|
||||
version = "1.0.0"
|
||||
version = "4.0.0-test.1"
|
||||
authors = ["Orne Brocaar <info@brocaar.com>"]
|
||||
edition = "2018"
|
||||
repository = "https://github.com/chirpstack/chirpstack"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "chirpstack-ui",
|
||||
"version": "0.1.0",
|
||||
"version": "4.0.0-test.1",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@ant-design/colors": "^6.0.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user