hk4e-emu

module
v0.0.0-...-9a2eb6e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2022 License: Apache-2.0

README

hk4e-emu

HK4E Emulators

Build binaries

Quick start

Setup your golang environment, then run the following commands to build binaries.

$ mkdir -p $GOPATH/src/github.com/lotusmomo
$ cd $GOPATH/src/github.com/lotusmomo
$ git clone https://github.com/lotusmomo/hk4e-emu.git
$ cd hk4e-emu
$ go build -trimpath -ldflags "-s -w" -o bin/client cmd/client/main.go
$ go build -trimpath -ldflags "-s -w" -o bin/server cmd/server/main.go
# the binaries are in bin/ directory.

Alternatively, use the go work command to replace hk4e-proto module with your own version.

$ mkdir -p $GOPATH/src/github.com/lotusmomo
$ cd $GOPATH/src/github.com/lotusmomo
$ git clone https://github.com/lotusmomo/hk4e-emu.git
# Place your hk4e-proto directory in the same directory as hk4e-emu.
$ go work init
$ go work use hk4e-emu
$ go work use hk4e-proto
$ cd hk4e-emu
$ go build -trimpath -ldflags "-s -w" -o bin/client cmd/client/main.go
$ go build -trimpath -ldflags "-s -w" -o bin/server cmd/server/main.go
# the binaries are in bin/ directory, with your hk4e-proto.

Note: The go work command is only available in Go 1.17 or later.

Configuration

License

Apache License 2.0

Copyright 2022 Teyvat Helper Team and contributors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Directories

Path Synopsis
cmd
pkg
net
sdk

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL