settings.json default value
This commit is contained in:
parent
a027951d1e
commit
9e9e075e0f
2
main.go
2
main.go
|
@ -55,7 +55,7 @@ func main() {
|
||||||
flag.StringVar(&sKey, "k", "", "Stream key, to protect your stream")
|
flag.StringVar(&sKey, "k", "", "Stream key, to protect your stream")
|
||||||
flag.StringVar(&sAdminPass, "a", "", "Set admin password. Overrides configuration in settings.json. This will not write the password to settings.json.")
|
flag.StringVar(&sAdminPass, "a", "", "Set admin password. Overrides configuration in settings.json. This will not write the password to settings.json.")
|
||||||
flag.BoolVar(&pullEmotes, "e", false, "Pull emotes")
|
flag.BoolVar(&pullEmotes, "e", false, "Pull emotes")
|
||||||
flag.StringVar(&confFile, "f", "", "URI of the conf file")
|
flag.StringVar(&confFile, "f", "./settings.json", "URI of the conf file")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
format.RegisterAll()
|
format.RegisterAll()
|
||||||
|
|
16
readme.md
16
readme.md
|
@ -30,7 +30,7 @@ online.
|
||||||
### Older Go Versions
|
### Older Go Versions
|
||||||
|
|
||||||
You can install a newer version of Go alongside your OS's distribution by
|
You can install a newer version of Go alongside your OS's distribution by
|
||||||
following the guide here: [https://golang.org/doc/manage-install](https://golang.org/doc/manage-install)
|
following the guide here: [https://golang.org/doc/install#extra_versions](https://golang.org/doc/install#extra_versions)
|
||||||
|
|
||||||
Once you have that setup add an enviromnent variable named `GO_VERSION` and
|
Once you have that setup add an enviromnent variable named `GO_VERSION` and
|
||||||
set it to the version you installed (eg, `1.14.1`). The Makefile will now use
|
set it to the version you installed (eg, `1.14.1`). The Makefile will now use
|
||||||
|
@ -38,13 +38,13 @@ the newer version.
|
||||||
|
|
||||||
### Compile and install
|
### Compile and install
|
||||||
You have to :
|
You have to :
|
||||||
- download ;
|
- download **git clone https://github.com/zorchenhimer/MovieNight**, go into the source directory **cd MovieNight**;
|
||||||
- choose your `TARGET` "android darwin dragonfly freebsd linux nacl netbsd openbsd plan9 solaris windows"
|
- choose your `TARGET` oneof "android darwin dragonfly freebsd linux nacl netbsd openbsd plan9 solaris windows";
|
||||||
;
|
- choose your `ARCH` oneof "386 amd64 amd64p32 arm arm64 ppc64 ppc64le mips mipsle mips64 mips64le mips64p32 mips64p32leppc s390 s390x sparc sparc64";
|
||||||
- choose you `ARCH` "386 amd64 amd64p32 arm arm64 ppc64 ppc64le mips mipsle mips64 mips64le mips64p32 mips64p32leppc s390 s390x sparc sparc64"
|
- build **make TARGET=windows ARCH=386**;
|
||||||
;
|
- and run **./MovieNight**;
|
||||||
- and run ;
|
|
||||||
|
|
||||||
|
Example :
|
||||||
```bash
|
```bash
|
||||||
$ git clone https://github.com/zorchenhimer/MovieNight
|
$ git clone https://github.com/zorchenhimer/MovieNight
|
||||||
$ cd MovieNight
|
$ cd MovieNight
|
||||||
|
@ -130,6 +130,8 @@ Usage of .\MovieNight.exe:
|
||||||
host:port of the MovieNight (default ":8089")
|
host:port of the MovieNight (default ":8089")
|
||||||
-r string
|
-r string
|
||||||
host:port of the RTMP server (default ":1935")
|
host:port of the RTMP server (default ":1935")
|
||||||
|
-f string
|
||||||
|
the settings file you want to use (default "./settings.json")
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
Loading…
Reference in New Issue