chore: Update plugin store URLs to use new file names

This commit is contained in:
qianlifeng 2024-10-16 11:05:11 +08:00
parent 09be41a5bd
commit a8bc507ce6
No known key found for this signature in database
9 changed files with 16 additions and 13 deletions

View File

@ -20,5 +20,5 @@ jobs:
title: "[Bot] Update plugin store manifests"
commit-message: "[Bot] Update plugin store manifests"
branch: update-plugin-store
add-paths: plugin-store.json
add-paths: store-plugin.json
reviewers: qianlifeng

View File

@ -3,13 +3,14 @@ package main
import (
"encoding/json"
"fmt"
"github.com/Masterminds/semver/v3"
"github.com/imroc/req/v3"
"github.com/tidwall/pretty"
"os"
"regexp"
"strings"
"time"
"github.com/Masterminds/semver/v3"
"github.com/imroc/req/v3"
"github.com/tidwall/pretty"
)
type storePluginManifest struct {
@ -37,7 +38,7 @@ func main() {
}
func checkPluginNewVersion() error {
fileStr, err := os.ReadFile("../plugin-store.json")
fileStr, err := os.ReadFile("../store-plugin.json")
if err != nil {
return err
}
@ -89,7 +90,7 @@ func checkPluginNewVersion() error {
if marshalErr != nil {
return fmt.Errorf("marshal plugin store json err: %s", marshalErr.Error())
}
return os.WriteFile("../plugin-store.json", pretty.Pretty(marshal), 0644)
return os.WriteFile("../store-plugin.json", pretty.Pretty(marshal), 0644)
}
return nil

View File

@ -4,14 +4,15 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/Masterminds/semver/v3"
"github.com/samber/lo"
"os"
"path"
"strings"
"sync"
"time"
"wox/util"
"github.com/Masterminds/semver/v3"
"github.com/samber/lo"
)
type storeManifest struct {
@ -53,7 +54,7 @@ func (s *Store) getStoreManifests(ctx context.Context) []storeManifest {
return []storeManifest{
{
Name: "Wox Official Plugin Store",
Url: "https://raw.githubusercontent.com/Wox-launcher/Wox/v2/plugin-store.json",
Url: "https://raw.githubusercontent.com/Wox-launcher/Wox/v2/store-plugin.json",
},
}
}

View File

@ -4,14 +4,15 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/samber/lo"
"github.com/tidwall/pretty"
"os"
"path"
"sync"
"time"
"wox/share"
"wox/util"
"github.com/samber/lo"
"github.com/tidwall/pretty"
)
type storeManifest struct {
@ -37,7 +38,7 @@ func (s *Store) getStoreManifests(ctx context.Context) []storeManifest {
return []storeManifest{
{
Name: "Wox Official Theme Store",
Url: "https://raw.githubusercontent.com/Wox-launcher/Wox/v2/theme-store.json",
Url: "https://raw.githubusercontent.com/Wox-launcher/Wox/v2/store-theme.json",
},
}
}

View File

@ -3,7 +3,7 @@
</div>
<script type="application/javascript">
fetch('https://raw.githubusercontent.com/Wox-launcher/Wox/v2/plugin-store.json')
fetch('https://raw.githubusercontent.com/Wox-launcher/Wox/v2/store-plugin.json')
.then(response => response.json())
.then(data => {
let table = document.createElement('table');

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB