Commit Graph

33 Commits

Author SHA1 Message Date
Zorglube
2e45392f68 Finally found a way to correctly build on BSD, so remove BSD specific
Makefile.
2021-03-17 21:09:39 +01:00
Zorchenhimer
e26ae33758 Fix building on non-windows machines
Don't default to windows if GOOS is not set.  Likewise, don't default to
386 if GOARCH isn't set.  Go will use the system's default values, or
any values set before running `make`.
2020-11-04 23:20:15 -05:00
Zorglube
3a61dc6948 MakeFile: typo 2020-10-20 01:09:31 +02:00
Bertrand Moreau
ebb0d7bdc2 Crossplatform make
Work in progress 50%
2020-10-20 01:09:31 +02:00
Bertrand Moreau
be67c27355 Typo + cross-compile arch 2020-10-20 01:09:31 +02:00
Zorglube
223fabf53a Create MakeFile.BSD 2020-10-20 01:09:28 +02:00
Bertrand Moreau
87d2d201ec Removed: if windows
It isn't mandatory to be suffixed by ".exe" to be runnable into an
windows.
2020-10-20 01:01:58 +02:00
Zorglube
a8d1019dc0 BSD Make if 2020-10-20 00:53:14 +02:00
Bertrand Moreau
c1c793988f Multi-target build
Try to customize the MakeFile in order to be able to build an binary for
any target system.
2020-10-20 00:50:12 +02:00
Bertrand Moreau
09062dcbb3 Typo + cross-compile arch 2020-10-20 00:45:18 +02:00
Zorglube
e56d7d6fe1 Create MakeFile.BSD 2020-10-20 00:45:18 +02:00
Bertrand Moreau
a027951d1e Removed: if windows
It isn't mandatory to be suffixed by ".exe" to be runnable into an
windows.
2020-10-20 00:45:18 +02:00
Bertrand Moreau
fbc8055e0c Removed: if windows
It isn't mandatory to be suffixed by ".exe" to be runnable into an
windows.
2020-10-20 00:45:18 +02:00
Zorglube
12e47f9b66 BSD Make if 2020-10-20 00:45:17 +02:00
Bertrand Moreau
2e32db2794 Multi-target build
Try to customize the MakeFile in order to be able to build an binary for
any target system.
2020-10-20 00:45:17 +02:00
Louis Jencka
3c55a8a1f3 Use system wasm_exec.js
The wasm_exec.js included in the repo didn't work in go1.14.1 - always
using the local go-provided wasm_exec.js should avoid this problem.
2020-03-29 20:47:42 -06:00
Zorchenhimer
72a44b6170 Clean up Makefile
Removed the Darwin and Windows specific build targets.  Instead, the
system's build target will be used (as specified with the GOOS and
GOARCH environment variables).

Added a "server" build target.  This is mostly just for me to build the
binary that will be deployed on my own server.

Added the GO_VERSION environment variable to all the calls to the go
command.  This will allow easier building on systems that have installed
an additional version of Go along side their distribution's version.
Users wanting to build with one of these versions must first install it
with `go get` and `go[version] download` as detailed here:
https://golang.org/doc/install#extra_versions.

Setting the GO_VERSION environment variable to the version number will
use that version. Eg, setting it to "1.13.7" will call `go1.13.7 build
[...]` instead of `go build [...]`.
2020-01-30 14:56:44 -05:00
Pedro Henrique
f0f7a3e7ca change name to reflect goos 2019-10-01 18:39:04 -03:00
Pedro Henrique
2c9953e483 closes #95 2019-10-01 18:35:08 -03:00
Zorchenhimer
5508cc61f3 Remove goimports from Makefile and readme
(cherry picked from commit 5a5c6c76b0)
2019-06-18 22:15:47 -04:00
Zorchenhimer
360e1aee77 Remove goimports
Replace it with gofmt.  This has been an issue preventing people from
easily getting setup for dev.

(cherry picked from commit 35774b061f)
2019-06-18 18:52:02 -04:00
Zorchenhimer
0c9fa9f569 Update readme and tweak build
- Tweaked the build to copy `settings_example.json` to `settings.json` if
  it doesn't exist.
- Updated the readme to reflect changes with modules and the Makefile.
2019-04-04 11:19:57 -04:00
Zorchenhimer
1a5d4c89ec Remove 'go get -u' lines from makefile
Go modules should take care of this seamlessly now.
2019-04-04 11:04:18 -04:00
joeyak
86207ecd48 Added spoilers in chat
If a user clicks the spoiler, it will change color and the background will revert.
closes #62
2019-03-24 23:43:30 -04:00
Zorchenhimer
fdbf39f00c Add some logging
Functions added:
- LogErrorf()
- LogErrorln()
- LogChatf()
- LogChatln()
- LogInfof()
- LogInfoln()
- LogDebugf()
- LogDebugln()
- LogDevf()
- LogDevln()

New settings configure the logging: LogLevel and LogFile.  LogLevel can
be set to one of: error, chat, info, or debug and will default to
error.  LogFile is an optional file to write to.  Providing a file will
not prevent output in the console.

LogDevf() and LogDevln() only compile when the "dev" flag passed to
build.  This will cause Travis-CI to fail the build if it finds any
calls to either function.
2019-03-24 18:58:59 -04:00
joeyak
c1dd9168b2 Update build scripts
Moved all the go gets into the makefile to add version wasm support
Added get to update all dependencies and removed unneeded make rules
2019-03-16 22:24:35 -04:00
Zorchenhimer
5986b6d663 Move fmt before vet in Makefile 2019-03-16 13:42:17 -04:00
Zorchenhimer
a555e626af Merge branch 'json-communication'
# Conflicts:
#	chatclient.go
#	chatroom.go
2019-03-13 14:00:13 -04:00
Zorchenhimer
9c80269943 Start convert to JSON data b/t client and server
Chat and events should work.  Commands do not work yet.  Everything
also needs to be tested and cleaned up a bunch more.
2019-03-13 01:09:24 -04:00
joeyak
d16839c597 Changed format tool from gofmt to goimports 2019-03-13 00:25:03 -04:00
joeyak
7ee1c1ffb8 Changing css to go from floats and widths to css grid
close #11
close #23
2019-03-12 18:16:35 -04:00
joeyak
5544ac817f Converted to code to using webassembly 2019-03-11 23:15:42 -04:00
Zorchenhimer
3276295421 Initial commit
So far things work.  Needs lots of improvements.
2019-03-10 11:42:12 -04:00