diff --git a/README.md b/README.md index d0f5cd6..4c9321d 100644 --- a/README.md +++ b/README.md @@ -23,12 +23,12 @@ Join my Discord server if you need help [here](https://discord.gg/Csh8zbbhCt)! - Creation of remote file metadata from JAR files for CurseForge mods ## Installation -Prebuilt binaries are available from [GitHub Actions](https://github.com/comp500/packwiz/actions) - the UI is a bit terrible, but essentially select the top build, then download the artifact ZIP for your system at the bottom of the page. To run the executable, add the folder where you downloaded it to your PATH environment variable ([see tutorial for Windows here](https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/)) or move it to where you want to use it. +Prebuilt binaries are available from [GitHub Actions](https://github.com/packwiz/packwiz/actions) - the UI is a bit terrible, but essentially select the top build, then download the artifact ZIP for your system at the bottom of the page. To run the executable, add the folder where you downloaded it to your PATH environment variable ([see tutorial for Windows here](https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/)) or move it to where you want to use it. In future I will have a lot more installation options, but you can also compile from source: 1. Install Go (1.17 or newer) from https://golang.org/dl/ -2. Run `go install github.com/comp500/packwiz@latest`. Be patient, it has to download and compile dependencies as well! +2. Run `go install github.com/packwiz/packwiz@latest`. Be patient, it has to download and compile dependencies as well! ## Documentation See https://packwiz.infra.link/ for the full packwiz documentation! \ No newline at end of file diff --git a/cmd/init.go b/cmd/init.go index a5de8da..3ae8f17 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -12,9 +12,9 @@ import ( "strings" "time" - "github.com/comp500/packwiz/core" "github.com/fatih/camelcase" "github.com/igorsobreira/titlecase" + "github.com/packwiz/packwiz/core" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/cmd/refresh.go b/cmd/refresh.go index f6807e4..488b3b2 100644 --- a/cmd/refresh.go +++ b/cmd/refresh.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/viper" "os" - "github.com/comp500/packwiz/core" + "github.com/packwiz/packwiz/core" "github.com/spf13/cobra" ) diff --git a/cmd/remove.go b/cmd/remove.go index 3f2b9f9..9ee9b69 100644 --- a/cmd/remove.go +++ b/cmd/remove.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/comp500/packwiz/core" + "github.com/packwiz/packwiz/core" "github.com/spf13/cobra" ) diff --git a/cmd/serve.go b/cmd/serve.go index d0b7658..e8da099 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -11,7 +11,7 @@ import ( "strings" "sync" - "github.com/comp500/packwiz/core" + "github.com/packwiz/packwiz/core" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/cmd/update.go b/cmd/update.go index c62bab6..b9ecf52 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -7,7 +7,7 @@ import ( "os" "strings" - "github.com/comp500/packwiz/core" + "github.com/packwiz/packwiz/core" "github.com/spf13/cobra" ) diff --git a/curseforge/curseforge.go b/curseforge/curseforge.go index 4c72d2c..4a88f14 100644 --- a/curseforge/curseforge.go +++ b/curseforge/curseforge.go @@ -7,9 +7,9 @@ import ( "strconv" "strings" - "github.com/comp500/packwiz/cmd" - "github.com/comp500/packwiz/core" "github.com/mitchellh/mapstructure" + "github.com/packwiz/packwiz/cmd" + "github.com/packwiz/packwiz/core" "github.com/spf13/cobra" ) diff --git a/curseforge/detect.go b/curseforge/detect.go index 6c8ce21..037f948 100644 --- a/curseforge/detect.go +++ b/curseforge/detect.go @@ -3,7 +3,7 @@ package curseforge import ( "fmt" "github.com/aviddiviner/go-murmur" - "github.com/comp500/packwiz/core" + "github.com/packwiz/packwiz/core" "github.com/spf13/cobra" "io/ioutil" "os" diff --git a/curseforge/export.go b/curseforge/export.go index 6a9e326..1ccd7ca 100644 --- a/curseforge/export.go +++ b/curseforge/export.go @@ -4,13 +4,13 @@ import ( "archive/zip" "bufio" "fmt" - "github.com/comp500/packwiz/curseforge/packinterop" + "github.com/packwiz/packwiz/curseforge/packinterop" "github.com/spf13/viper" "os" "path/filepath" "strconv" - "github.com/comp500/packwiz/core" + "github.com/packwiz/packwiz/core" "github.com/spf13/cobra" ) diff --git a/curseforge/import.go b/curseforge/import.go index 4348ce0..52b1817 100644 --- a/curseforge/import.go +++ b/curseforge/import.go @@ -6,7 +6,7 @@ import ( "bytes" "errors" "fmt" - "github.com/comp500/packwiz/curseforge/packinterop" + "github.com/packwiz/packwiz/curseforge/packinterop" "io" "io/ioutil" "os" @@ -14,7 +14,7 @@ import ( "runtime" "strings" - "github.com/comp500/packwiz/core" + "github.com/packwiz/packwiz/core" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/curseforge/install.go b/curseforge/install.go index 93eb8a8..515d654 100644 --- a/curseforge/install.go +++ b/curseforge/install.go @@ -9,7 +9,7 @@ import ( "os" "strings" - "github.com/comp500/packwiz/core" + "github.com/packwiz/packwiz/core" "github.com/spf13/cobra" "gopkg.in/dixonwille/wmenu.v4" ) diff --git a/curseforge/open.go b/curseforge/open.go index 13a2cab..b2e553c 100644 --- a/curseforge/open.go +++ b/curseforge/open.go @@ -5,7 +5,7 @@ import ( "os" "strconv" - "github.com/comp500/packwiz/core" + "github.com/packwiz/packwiz/core" "github.com/skratchdot/open-golang/open" "github.com/spf13/cobra" ) diff --git a/curseforge/packinterop/translation.go b/curseforge/packinterop/translation.go index 0664a37..37f2e7c 100644 --- a/curseforge/packinterop/translation.go +++ b/curseforge/packinterop/translation.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/json" "fmt" - "github.com/comp500/packwiz/core" + "github.com/packwiz/packwiz/core" "io" "io/ioutil" "os" diff --git a/curseforge/request.go b/curseforge/request.go index d746bea..23c91eb 100644 --- a/curseforge/request.go +++ b/curseforge/request.go @@ -70,7 +70,7 @@ func modIDFromSlug(slug string) (int, error) { } // TODO: make this configurable application-wide - req.Header.Set("User-Agent", "comp500/packwiz client") + req.Header.Set("User-Agent", "packwiz/packwiz client") req.Header.Set("Accept", "application/json") req.Header.Set("Content-Type", "application/json") @@ -155,7 +155,7 @@ func getModInfo(modID int) (modInfo, error) { } // TODO: make this configurable application-wide - req.Header.Set("User-Agent", "comp500/packwiz client") + req.Header.Set("User-Agent", "packwiz/packwiz client") req.Header.Set("Accept", "application/json") resp, err := client.Do(req) @@ -190,7 +190,7 @@ func getModInfoMultiple(modIDs []int) ([]modInfo, error) { } // TODO: make this configurable application-wide - req.Header.Set("User-Agent", "comp500/packwiz client") + req.Header.Set("User-Agent", "packwiz/packwiz client") req.Header.Set("Accept", "application/json") req.Header.Set("Content-Type", "application/json") @@ -259,7 +259,7 @@ func getFileInfo(modID int, fileID int) (modFileInfo, error) { } // TODO: make this configurable application-wide - req.Header.Set("User-Agent", "comp500/packwiz client") + req.Header.Set("User-Agent", "packwiz/packwiz client") req.Header.Set("Accept", "application/json") resp, err := client.Do(req) @@ -304,7 +304,7 @@ func getSearch(searchText string, gameVersion string, modloaderType int) ([]modI } // TODO: make this configurable application-wide - req.Header.Set("User-Agent", "comp500/packwiz client") + req.Header.Set("User-Agent", "packwiz/packwiz client") req.Header.Set("Accept", "application/json") resp, err := client.Do(req) @@ -349,7 +349,7 @@ func getFingerprintInfo(hashes []int) (addonFingerprintResponse, error) { } // TODO: make this configurable application-wide - req.Header.Set("User-Agent", "comp500/packwiz client") + req.Header.Set("User-Agent", "packwiz/packwiz client") req.Header.Set("Accept", "application/json") req.Header.Set("Content-Type", "application/json") diff --git a/go.mod b/go.mod index 532e4b8..ede177f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/comp500/packwiz +module github.com/packwiz/packwiz require ( github.com/BurntSushi/toml v0.3.1 diff --git a/main.go b/main.go index 0edf215..4a5d740 100644 --- a/main.go +++ b/main.go @@ -2,10 +2,10 @@ package main import ( // Modules of packwiz - "github.com/comp500/packwiz/cmd" - _ "github.com/comp500/packwiz/curseforge" - _ "github.com/comp500/packwiz/modrinth" - _ "github.com/comp500/packwiz/utils" + "github.com/packwiz/packwiz/cmd" + _ "github.com/packwiz/packwiz/curseforge" + _ "github.com/packwiz/packwiz/modrinth" + _ "github.com/packwiz/packwiz/utils" ) func main() { diff --git a/modrinth/install.go b/modrinth/install.go index 70c33f2..b405d50 100644 --- a/modrinth/install.go +++ b/modrinth/install.go @@ -8,7 +8,7 @@ import ( "regexp" "strings" - "github.com/comp500/packwiz/core" + "github.com/packwiz/packwiz/core" "github.com/spf13/cobra" "gopkg.in/dixonwille/wmenu.v4" ) diff --git a/modrinth/modrinth.go b/modrinth/modrinth.go index 09eab36..ae0e6c7 100644 --- a/modrinth/modrinth.go +++ b/modrinth/modrinth.go @@ -10,8 +10,8 @@ import ( "time" "github.com/Masterminds/semver/v3" - "github.com/comp500/packwiz/cmd" - "github.com/comp500/packwiz/core" + "github.com/packwiz/packwiz/cmd" + "github.com/packwiz/packwiz/core" "github.com/spf13/cobra" ) diff --git a/modrinth/updater.go b/modrinth/updater.go index 077e2ef..04a00bc 100644 --- a/modrinth/updater.go +++ b/modrinth/updater.go @@ -3,8 +3,8 @@ package modrinth import ( "errors" - "github.com/comp500/packwiz/core" "github.com/mitchellh/mapstructure" + "github.com/packwiz/packwiz/core" ) type mrUpdateData struct { diff --git a/utils/utils.go b/utils/utils.go index eb8436c..98c0854 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -1,7 +1,7 @@ package utils import ( - "github.com/comp500/packwiz/cmd" + "github.com/packwiz/packwiz/cmd" "github.com/spf13/cobra" )