Skip to content

Commit

Permalink
build: split packages for client and server (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
reddec committed Jan 25, 2021
1 parent d178095 commit e025b79
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,33 @@ builds:
- -trimpath
nfpms:
- id: debian
package_name: "trusted-cgi"
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
Linux: linux
386: i386
homepage: https://github.com/reddec/trusted-cgi
maintainer: Baryshnikov Aleksandr <owner@reddec.net>
description: Lightweigt runner for lambda functions/apps in CGI like mode
license: MIT
meta: true
dependencies:
- "trusted-cgi-server"
- "trusted-cgi-client"
formats:
- deb
- id: debian-server
package_name: "trusted-cgi-server"
file_name_template: "{{ .ProjectName }}-server_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
Linux: linux
386: i386
homepage: https://github.com/reddec/trusted-cgi
maintainer: Baryshnikov Aleksandr <owner@reddec.net>
description: Lightweigt runner for lambda functions/apps in CGI like mode
license: MIT
builds:
- server
formats:
- deb
recommends:
Expand All @@ -70,6 +89,20 @@ nfpms:
"trusted-cgi.1.gz" : "/usr/local/share/man/man1/trusted-cgi.1.gz"
config_files:
"debian/trusted-cgi.env": "/etc/trusted-cgi/trusted-cgi.env"
- id: debian-client
package_name: "trusted-cgi-client"
file_name_template: "{{ .ProjectName }}-client_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
Linux: linux
386: i386
homepage: https://github.com/reddec/trusted-cgi
maintainer: Baryshnikov Aleksandr <owner@reddec.net>
description: Client for lightweigt runner for lambda functions/apps in CGI like mode
license: MIT
formats:
- deb
builds:
- client
uploads:
- name: bintray
method: PUT
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ update_ui:
git submodule update --init --recursive
cd ui && git pull origin master && git lfs pull && npm install . && npx @quasar/cli build

snapshot:
python3 assemble_md.py ./docs --exclude ./docs/vendor ./docs/.bundle ./docs/.jekyll-cache ./docs/_site > MANUAL.md
pandoc MANUAL.md -s -t man -o trusted-cgi.1
pandoc --metadata title="Trusted-CGI manual" MANUAL.md -s --include-in-header=./docs/assets/github-pandoc.css --toc -o MANUAL.html
gzip -f trusted-cgi.1
goreleaser --snapshot --rm-dist

regen: json-rpc2
go generate api/handlers/*.go

Expand Down
19 changes: 19 additions & 0 deletions _footer.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,23 @@ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D
echo "deb https://dl.bintray.com/reddec/debian all main" | sudo tee /etc/apt/sources.list.d/trusted-cgi.list
sudo apt update
sudo apt install trusted-cgi
```

Optionally you may install a server and a client separately.


**Server only**

Daemon only.

```bash
sudo apt install trusted-cgi-server
```

**Client only**

CLI tools only.

```bash
sudo apt install trusted-cgi-client
```

0 comments on commit e025b79

Please sign in to comment.