mirror of
https://github.com/hrfee/jfa-go.git
synced 2025-01-06 08:20:11 +00:00
Compare commits
No commits in common. "9b977bafbfb7f3b344faa434926d297072e018ce" and "7bd8fadf7654dc6c1e1717cf3021d5f0ede1e041" have entirely different histories.
9b977bafbf
...
7bd8fadf76
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@ -1,3 +1,2 @@
|
|||||||
github: hrfee
|
github: hrfee
|
||||||
ko_fi: hrfee
|
ko_fi: hrfee
|
||||||
custom: https://www.buymeacoffee.com/hrfee
|
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,4 +13,3 @@ config-payload.json
|
|||||||
server.key
|
server.key
|
||||||
server.pem
|
server.pem
|
||||||
server.crt
|
server.crt
|
||||||
instructions-debian.txt
|
|
||||||
|
@ -85,7 +85,3 @@
|
|||||||
.dark-only {
|
.dark-only {
|
||||||
display: initial;
|
display: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dark-theme select option {
|
|
||||||
background: #202020;
|
|
||||||
}
|
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=An account management system for Jellyfin.
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart={executable}
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=default.target
|
|
6
package-lock.json
generated
6
package-lock.json
generated
@ -236,9 +236,9 @@
|
|||||||
"integrity": "sha1-vfpzUplmTfr9NFKe1PhSKidf6lY="
|
"integrity": "sha1-vfpzUplmTfr9NFKe1PhSKidf6lY="
|
||||||
},
|
},
|
||||||
"esbuild": {
|
"esbuild": {
|
||||||
"version": "0.8.57",
|
"version": "0.8.56",
|
||||||
"resolved": "https://registry.npm.taobao.org/esbuild/download/esbuild-0.8.57.tgz?cache=0&sync_timestamp=1615272041268&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fesbuild%2Fdownload%2Fesbuild-0.8.57.tgz",
|
"resolved": "https://registry.npm.taobao.org/esbuild/download/esbuild-0.8.56.tgz",
|
||||||
"integrity": "sha1-pC0CvCtXxwvNDviX/iRHZrtt2SY="
|
"integrity": "sha1-nHw9bmFNtzZ6+jSK2wqyh8KWc14="
|
||||||
},
|
},
|
||||||
"escalade": {
|
"escalade": {
|
||||||
"version": "3.1.1",
|
"version": "3.1.1",
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ts-stack/markdown": "^1.3.0",
|
"@ts-stack/markdown": "^1.3.0",
|
||||||
"a17t": "^0.4.0",
|
"a17t": "^0.4.0",
|
||||||
"esbuild": "^0.8.57",
|
"esbuild": "^0.8.56",
|
||||||
"lodash": "^4.17.19",
|
"lodash": "^4.17.19",
|
||||||
"mjml": "^4.8.0",
|
"mjml": "^4.8.0",
|
||||||
"remixicon": "^2.5.0",
|
"remixicon": "^2.5.0",
|
||||||
|
@ -197,14 +197,11 @@ func (ud *Updater) GetTag() (Tag, int, error) {
|
|||||||
|
|
||||||
var tag Tag
|
var tag Tag
|
||||||
err = json.Unmarshal(body, &tag)
|
err = json.Unmarshal(body, &tag)
|
||||||
if tag.Version == "" {
|
|
||||||
err = errors.New("Tag was empty")
|
|
||||||
}
|
|
||||||
return tag, resp.StatusCode, err
|
return tag, resp.StatusCode, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *Tag) IsNew() bool {
|
func (t *Tag) IsNew() bool {
|
||||||
return t.Version[:7] != commit
|
return t.Version != commit
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ud *Updater) getRelease() (release GHRelease, status int, err error) {
|
func (ud *Updater) getRelease() (release GHRelease, status int, err error) {
|
||||||
@ -465,7 +462,7 @@ func (app *appContext) checkForUpdates() {
|
|||||||
go func() {
|
go func() {
|
||||||
tag, status, err := app.updater.GetTag()
|
tag, status, err := app.updater.GetTag()
|
||||||
if status != 200 || err != nil {
|
if status != 200 || err != nil {
|
||||||
if err != nil && strings.Contains(err.Error(), "strconv.ParseInt") {
|
if strings.Contains(err.Error(), "strconv.ParseInt") {
|
||||||
app.err.Println("No new updates available.")
|
app.err.Println("No new updates available.")
|
||||||
} else {
|
} else {
|
||||||
app.err.Printf("Failed to get latest tag (%d): %v", status, err)
|
app.err.Printf("Failed to get latest tag (%d): %v", status, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user