@@ -15,8 +15,8 @@ import (
15
15
16
16
var (
17
17
ApiUrl string
18
- ProxyAuthToken * string
19
- CurseAuthToken * string
18
+ // ProxyAuthToken *string
19
+ // CurseAuthToken *string
20
20
PackVersion * string
21
21
ExportName * string
22
22
BuildConfig buildJson
@@ -28,22 +28,24 @@ func main() {
28
28
PackVersion = flag .String ("p" , "1.0.0" , "Pack Version (e.g 1.0.0)" )
29
29
ExportName = flag .String ("n" , "Twitch-Export" , "Export Name" )
30
30
buildConfig := flag .String ("c" , ".build.json" , "Config file to get build variables" )
31
- ProxyAuthToken = flag .String ("pt" , "" , "Proxy authentication token used to authenticate with Gaz's Twitch Proxy" )
32
- CurseAuthToken = flag .String ("ct" , "" , "Curse authentication token used to authenticate with the Curseforge/twitch API" )
31
+ // ProxyAuthToken = flag.String("pt", "", "Proxy authentication token used to authenticate with Gaz's Twitch Proxy")
32
+ // CurseAuthToken = flag.String("ct", "", "Curse authentication token used to authenticate with the Curseforge/twitch API")
33
33
flag .Parse ()
34
34
35
- if * ProxyAuthToken == "" && * CurseAuthToken == "" {
36
- fmt .Println ("Please enter a authentication token using -pt <toke>" )
37
- os .Exit (1 )
38
- }
35
+ //if *ProxyAuthToken == "" && *CurseAuthToken == "" {
36
+ // fmt.Println("Please enter a authentication token using -pt <toke>")
37
+ // os.Exit(1)
38
+ //}
39
+ //
40
+ //if *ProxyAuthToken != "" && *CurseAuthToken == "" {
41
+ // ApiUrl = "https://curse.gaz492.uk/api/"
42
+ // fmt.Println("Using: " + ApiUrl + " as API")
43
+ //} else if *CurseAuthToken != "" && *ProxyAuthToken == "" {
44
+ // ApiUrl = "https://addons-ecs.forgesvc.net/api/"
45
+ // fmt.Println("Using: " + ApiUrl + " as API")
46
+ //}
39
47
40
- if * ProxyAuthToken != "" && * CurseAuthToken == "" {
41
- ApiUrl = "https://curse.gaz492.uk/api/"
42
- fmt .Println ("Using: " + ApiUrl + " as API" )
43
- } else if * CurseAuthToken != "" && * ProxyAuthToken == "" {
44
- ApiUrl = "https://addons-ecs.forgesvc.net/api/"
45
- fmt .Println ("Using: " + ApiUrl + " as API" )
46
- }
48
+ ApiUrl = "https://addons-ecs.forgesvc.net/api/"
47
49
48
50
BuildConfig = readBuildJson (* buildConfig )
49
51
if BuildConfig .PackAuthor == "" {
0 commit comments