From a34a8917380ec96fd3bf3790a6ca5b796e329765 Mon Sep 17 00:00:00 2001 From: Evan Burkey Date: Mon, 2 Jun 2025 12:58:38 -0700 Subject: [PATCH] readme --- .gitea/workflows/build.yaml | 12 ------------ LICENSE | 13 +++++++++++++ README.md | 18 ++++++++++++++++++ main.go | 15 --------------- 4 files changed, 31 insertions(+), 27 deletions(-) delete mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml deleted file mode 100644 index 10ca9bc..0000000 --- a/.gitea/workflows/build.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: Build Epoch Launcher - -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - - run: go build -v ./... \ No newline at end of file diff --git a/LICENSE b/LICENSE index e69de29..04b06ef 100644 --- a/LICENSE +++ b/LICENSE @@ -0,0 +1,13 @@ +Copyright 2025 Evan Burkey + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index e69de29..f927c8d 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,18 @@ +# epoch-linux + +Linux updater and launcher for [Project Epoch](https://www.project-epoch.net/) + +## Instructions + +1. Set up a copy of WoW 3.3.5 in a wine prefix or launcher of your choice. Chromiecraft has a good torrent you can use for the 3.3.5 client +2. Install `epoch-linux` by either + 1. Download the latest binary from the [releases](https://git.burkey.co/eburk/epoch-linux/releases) page + 2. If you have the `go` toolchain installed, you can run `go get git.burkey.co/eburk/epoch-linux@latest` to install to your `$GOROOT` + 3. Compile the source yourself +3. Run `epoch-linux` once. This will create a config file at `$HOME/.config/epoch-linux/config.toml`. Change the `WowDir` variable to your Wow game directory +4. Run `epoch-linux` again. It will download the patch files from Epoch's servers to your Wow directory +5. Use your launcher or tool of choice to startup Epoch in `wine` + +## Issues + +If you have any issues, [email me](mailto:evan@burkey.co) or ping `Battlehammer` on the Epoch discord \ No newline at end of file diff --git a/main.go b/main.go index 3244657..5b47a0c 100644 --- a/main.go +++ b/main.go @@ -3,7 +3,6 @@ package main import ( "crypto/md5" "encoding/hex" - "flag" "fmt" "github.com/BurntSushi/toml" "io" @@ -64,21 +63,7 @@ func setupConfig() { } } -func printHelp() { - fmt.Println("Usage:") - fmt.Println(" " + os.Args[0] + "[-hu]") - fmt.Println(" " + os.Args[0] + "-h -- prints this help message") -} - func main() { - helpFlag := flag.Bool("help", false, "Show this printHelp") - flag.Parse() - - if *helpFlag { - printHelp() - os.Exit(0) - } - setupConfig() count, err := downloadUpdate()