Skip to content

Commit b2a94bd

Browse files
committed
upgrade go version, changes in launcher api
1 parent f839227 commit b2a94bd

File tree

3 files changed

+58
-626
lines changed

3 files changed

+58
-626
lines changed

app/transports/api/launcher/api.go

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,20 @@ func Build() fx.Option {
3636
}),
3737
)
3838

39-
launcherInfo := map[string]string{
40-
"version": cfg.LauncherVersion,
41-
"download": "https://github.com/openmultiplayer/launcher/releases/latest",
42-
"ompPluginChecksum": "6e1ec45fe13e4cf622740577ac625f2a",
43-
"ompPluginDownload": "https://assets.open.mp/omp-client.dll",
39+
launcherInfo := map[string]any{
40+
"version": cfg.LauncherVersion, // Deprecated, keeping it for backward compatibility
41+
"download": "https://github.com/openmultiplayer/launcher/releases/latest", // Deprecated, keeping it for backward compatibility
42+
"ompPluginChecksum": "6e1ec45fe13e4cf622740577ac625f2a", // Deprecated, keeping it for backward compatibility
43+
"ompPluginDownload": "https://assets.open.mp/omp-client.dll", // Deprecated, keeping it for backward compatibility
4444
"changelog": `|- Build 1 - 2023/10/08
45-
Release beta version`,
45+
Release beta version`, // Deprecated, keeping it for backward compatibility
46+
"versions": map[string]any{
47+
"5": map[string]string{ // Version 5 doesn't actually use information from his object, just keeping it for future reference
48+
"download": "https://github.com/openmultiplayer/launcher/releases/latest",
49+
"ompPluginChecksum": "6e1ec45fe13e4cf622740577ac625f2a",
50+
"ompPluginDownload": "https://assets.open.mp/omp-client.dll",
51+
},
52+
},
4653
}
4754

4855
rtr.Get("/", func(w http.ResponseWriter, rq *http.Request) {

go.mod

Lines changed: 43 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,28 @@
11
module github.com/openmultiplayer/web
22

3-
go 1.14
3+
go 1.21
44

55
require (
66
github.com/Masterminds/semver v1.5.0
7-
github.com/PuerkitoBio/goquery v1.6.0
8-
github.com/RoaringBitmap/roaring v0.9.4 // indirect
97
github.com/Southclaws/go-samp-query v1.2.5
108
github.com/Southclaws/qstring v1.1.0
119
github.com/Southclaws/sampctl v0.0.0-20210109143621-2daeb58d756a
1210
github.com/Southclaws/supervillain v1.0.0
1311
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
14-
github.com/bbalet/stopwords v1.0.0
15-
github.com/blevesearch/bleve/v2 v2.1.0
1612
github.com/bwmarrin/discordgo v0.22.0
17-
github.com/forPelevin/gomoji v0.0.0-20210718160015-5fcf0e405128
1813
github.com/go-chi/chi v4.1.2+incompatible
1914
github.com/go-chi/cors v1.1.1
2015
github.com/goccy/go-json v0.10.2
21-
github.com/gomarkdown/markdown v0.0.0-20211105120026-16f708f914c3
2216
github.com/google/go-github v0.0.0-20180819205025-d7732128a00e
2317
github.com/google/go-github/v28 v28.1.1
2418
github.com/gorilla/schema v1.2.0
2519
github.com/gorilla/securecookie v1.1.1
26-
github.com/gosimple/slug v1.10.0
2720
github.com/iancoleman/strcase v0.2.0
2821
github.com/joho/godotenv v1.5.1
2922
github.com/kelseyhightower/envconfig v1.4.0
3023
github.com/patrickmn/go-cache v2.1.0+incompatible
3124
github.com/pkg/errors v0.9.1
32-
github.com/prisma/prisma-client-go v0.16.2
3325
github.com/prometheus/client_golang v1.11.0
34-
github.com/russross/blackfriday v1.6.0
3526
github.com/sethvargo/go-limiter v0.7.2
3627
github.com/shopspring/decimal v1.3.1
3728
github.com/steebchen/prisma-client-go v0.24.0
@@ -41,10 +32,51 @@ require (
4132
github.com/victorspringer/http-cache v0.0.0-20220131145941-ef3624e6666f
4233
go.etcd.io/bbolt v1.3.5
4334
go.uber.org/fx v1.13.1
44-
go.uber.org/multierr v1.6.0 // indirect
4535
go.uber.org/zap v1.16.0
4636
golang.org/x/oauth2 v0.0.0-20201203001011-0b49973bad19
4737
golang.org/x/text v0.13.0
4838
gopkg.in/yaml.v2 v2.4.0
4939
nhooyr.io/websocket v1.8.6
5040
)
41+
42+
require (
43+
github.com/BurntSushi/toml v0.3.1 // indirect
44+
github.com/beorn7/perks v1.0.1 // indirect
45+
github.com/cespare/xxhash/v2 v2.1.1 // indirect
46+
github.com/davecgh/go-spew v1.1.1 // indirect
47+
github.com/emirpasic/gods v1.12.0 // indirect
48+
github.com/fatih/color v1.12.0 // indirect
49+
github.com/go-git/gcfg v1.5.0 // indirect
50+
github.com/go-git/go-billy/v5 v5.0.0 // indirect
51+
github.com/go-git/go-git/v5 v5.0.0 // indirect
52+
github.com/go-yaml/yaml v2.1.0+incompatible // indirect
53+
github.com/golang/protobuf v1.4.3 // indirect
54+
github.com/google/go-querystring v1.0.0 // indirect
55+
github.com/gorilla/websocket v1.4.2 // indirect
56+
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
57+
github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd // indirect
58+
github.com/klauspost/compress v1.11.4 // indirect
59+
github.com/mattn/go-colorable v0.1.8 // indirect
60+
github.com/mattn/go-isatty v0.0.12 // indirect
61+
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
62+
github.com/mitchellh/go-homedir v1.1.0 // indirect
63+
github.com/pmezard/go-difflib v1.0.0 // indirect
64+
github.com/prometheus/client_model v0.2.0 // indirect
65+
github.com/prometheus/common v0.26.0 // indirect
66+
github.com/prometheus/procfs v0.6.0 // indirect
67+
github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca // indirect
68+
github.com/sampctl/configor v0.0.0-20200702165352-24e52bc67e97 // indirect
69+
github.com/sergi/go-diff v1.1.0 // indirect
70+
github.com/xanzy/ssh-agent v0.2.1 // indirect
71+
go.uber.org/atomic v1.7.0 // indirect
72+
go.uber.org/dig v1.10.0 // indirect
73+
go.uber.org/multierr v1.6.0 // indirect
74+
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect
75+
golang.org/x/net v0.6.0 // indirect
76+
golang.org/x/sys v0.5.0 // indirect
77+
google.golang.org/appengine v1.6.6 // indirect
78+
google.golang.org/protobuf v1.26.0-rc.1 // indirect
79+
gopkg.in/warnings.v0 v0.1.2 // indirect
80+
gopkg.in/yaml.v3 v3.0.1 // indirect
81+
honnef.co/go/tools v0.2.0 // indirect
82+
)

0 commit comments

Comments
 (0)