mirror of
https://github.com/FloatTech/zbpdata.git
synced 2026-02-16 12:15:53 +09:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e64e7cf82 | ||
|
|
c484316a63 | ||
|
|
5b3008d944 | ||
|
|
541c1dec93 | ||
|
|
c6698663d2 |
29
.github/workflows/ci.yml
vendored
Normal file
29
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: CI
|
||||
on: [ push, pull_request ]
|
||||
jobs:
|
||||
golangci:
|
||||
name: CI
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@master
|
||||
with:
|
||||
go-version: '1.20'
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
submodules: 'true'
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Run Check
|
||||
run: |
|
||||
echo "ls ./"
|
||||
ls
|
||||
rm -rf Wife/*.go Wife/*.md Wife/.git
|
||||
echo "ls Wife/"
|
||||
ls Wife/
|
||||
go mod init updater
|
||||
sed -i '1,3d' main.go
|
||||
go mod tidy
|
||||
go run main.go -c
|
||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -25,9 +25,7 @@ jobs:
|
||||
run: |
|
||||
echo "ls ./"
|
||||
ls
|
||||
rm Wife/go.* Wife/*.go Wife/*.md
|
||||
mv Wife/wives/*.{jpg,png} Wife/
|
||||
rm -rf Wife/wives Wife/.git
|
||||
rm -rf Wife/*.go Wife/*.md Wife/.git
|
||||
echo "ls Wife/"
|
||||
ls Wife/
|
||||
go mod init updater
|
||||
|
||||
BIN
Dish/dishes.db
Normal file
BIN
Dish/dishes.db
Normal file
Binary file not shown.
BIN
Font/BaotuXiaobaiTi.ttf
Normal file
BIN
Font/BaotuXiaobaiTi.ttf
Normal file
Binary file not shown.
BIN
Font/QiantuXiaotuTi.ttf
Normal file
BIN
Font/QiantuXiaotuTi.ttf
Normal file
Binary file not shown.
2
Wife
2
Wife
Submodule Wife updated: abcf931871...dc5f637a4c
19
main.go
19
main.go
@@ -6,6 +6,7 @@ package main
|
||||
import (
|
||||
"crypto/md5"
|
||||
"encoding/hex"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io/fs"
|
||||
"os"
|
||||
@@ -19,6 +20,22 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
c := flag.Bool("c", false, "check repo only")
|
||||
flag.Parse()
|
||||
es, err := fs.ReadDir(os.DirFS("./"), ".")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
for _, es := range es {
|
||||
if es.IsDir() && es.Name()[0] != '.' {
|
||||
if !unicode.IsUpper([]rune(es.Name())[0]) {
|
||||
panic("failed: 文件夹 " + es.Name() + " 首字母必须为大写")
|
||||
}
|
||||
}
|
||||
}
|
||||
if *c {
|
||||
return
|
||||
}
|
||||
var files []string
|
||||
fs.WalkDir(os.DirFS("./"), ".", func(path string, d fs.DirEntry, err error) error {
|
||||
if err != nil {
|
||||
@@ -41,7 +58,7 @@ func main() {
|
||||
*(*uintptr)(unsafe.Add(unsafe.Pointer(&md5s[i]), unsafe.Sizeof(uintptr(0)))) = uintptr(16)
|
||||
}
|
||||
r := registry.NewRegedit("reilia.fumiama.top:32664", "", "fumiama", os.Getenv("REILIA_SPS"))
|
||||
err := r.Connect()
|
||||
err = r.Connect()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user