Skip to content

Commit

Permalink
Add FreeBSD support in the multiplatform bundle
Browse files Browse the repository at this point in the history
Mattermost does not support FreeBSD out of the box for the multiplatform
bundle (cf. `GetExecutableForRuntime` in mattermost-server project. We
can, however, add FreeBSD support by putting the FreeBSD exec as the
last resort executable.
  • Loading branch information
moussetc committed Aug 19, 2019
1 parent c6c4ae5 commit 33ceea3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ ifneq ($(HAS_SERVER),)
cd server && env GOOS=linux GOARCH=amd64 $(GO) build -o dist/plugin-linux-amd64;
cd server && env GOOS=darwin GOARCH=amd64 $(GO) build -o dist/plugin-darwin-amd64;
cd server && env GOOS=windows GOARCH=amd64 $(GO) build -o dist/plugin-windows-amd64.exe;
cd server && env GOOS=freebsd GOARCH=amd64 $(GO) build -o dist/plugin-freebsd-amd64.exe;
endif

## Ensures NPM dependencies are installed without having to run this all the time.
Expand Down
3 changes: 2 additions & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"linux-amd64": "server/dist/plugin-linux-amd64",
"darwin-amd64": "server/dist/plugin-darwin-amd64",
"windows-amd64": "server/dist/plugin-windows-amd64.exe"
}
},
"executable": "server/dist/plugin-freebsd-amd64.exe"
},
"settings_schema": {
"settings": [
Expand Down

0 comments on commit 33ceea3

Please sign in to comment.