Skip to content

Commit

Permalink
build: support windows target
Browse files Browse the repository at this point in the history
  • Loading branch information
reddec committed Jun 25, 2020
1 parent 78e1cb5 commit c4195c1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ builds:
- 7
goos:
- linux
- windows
- darwin
flags:
- -trimpath
- main: ./cmd/cgi-ctl
Expand Down Expand Up @@ -80,8 +82,8 @@ archives:
- replacements:
Linux: linux
386: i386
windows: ctl_windows
darwin: ctl_darwin
windows: windows
darwin: darwin
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
files:
- LICENSE
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Features:

# Installation

Since `0.3.3` Linux, Darwin and even Windows OS supported: pre-built binaries could be found in [releases](https://github.com/reddec/trusted-cgi/releases)

TL;DR;

* for production for debian servers - use bintray repository (recommend)
Expand Down
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ nav_order: 999
# Development

The project has Linux-specific features and aimed to be run in Linux ecosystem, however
client control utility (cgi-ctl) shall work on most platform.
client control utility (cgi-ctl) and server (trusted-cgi) shall work on most platform (Darwin, Linux, Windows).

Requirements for backend

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import (
"os/exec"
)

func setCreds(cmd *exec.Cmd, creds *types.Credential) {
func SetCreds(cmd *exec.Cmd, creds *types.Credential) {

}

0 comments on commit c4195c1

Please sign in to comment.