Move to packwiz org

This commit is contained in:
comp500 2021-12-28 16:28:34 +00:00
parent 50180f7fee
commit 4abf3340a1
20 changed files with 33 additions and 33 deletions

View File

@ -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!

View File

@ -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"
)

View File

@ -5,7 +5,7 @@ import (
"github.com/spf13/viper"
"os"
"github.com/comp500/packwiz/core"
"github.com/packwiz/packwiz/core"
"github.com/spf13/cobra"
)

View File

@ -4,7 +4,7 @@ import (
"fmt"
"os"
"github.com/comp500/packwiz/core"
"github.com/packwiz/packwiz/core"
"github.com/spf13/cobra"
)

View File

@ -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"
)

View File

@ -7,7 +7,7 @@ import (
"os"
"strings"
"github.com/comp500/packwiz/core"
"github.com/packwiz/packwiz/core"
"github.com/spf13/cobra"
)

View File

@ -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"
)

View File

@ -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"

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"fmt"
"github.com/comp500/packwiz/core"
"github.com/packwiz/packwiz/core"
"io"
"io/ioutil"
"os"

View File

@ -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")

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/comp500/packwiz
module github.com/packwiz/packwiz
require (
github.com/BurntSushi/toml v0.3.1

View File

@ -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() {

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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 {

View File

@ -1,7 +1,7 @@
package utils
import (
"github.com/comp500/packwiz/cmd"
"github.com/packwiz/packwiz/cmd"
"github.com/spf13/cobra"
)