From 361419aba2d057d6cac5a9342960a846d56cac70 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sun, 10 Sep 2023 18:55:15 +0200 Subject: [PATCH] Caprine 2.58.1 --- assets/assets.go | 15 ++++++++------- build.properties | 4 ++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/assets/assets.go b/assets/assets.go index c48c196..08bd84c 100644 --- a/assets/assets.go +++ b/assets/assets.go @@ -10,7 +10,6 @@ import ( "crypto/sha256" "fmt" "io" - "io/ioutil" "os" "path/filepath" "strings" @@ -190,11 +189,13 @@ const AssetDebug = false // directory embedded in the file by go-bindata. // For example if you run go-bindata on data/... and data contains the // following hierarchy: -// data/ -// foo.txt -// img/ -// a.png -// b.png +// +// data/ +// foo.txt +// img/ +// a.png +// b.png +// // then AssetDir("data") would return []string{"foo.txt", "img"}, // AssetDir("data/img") would return []string{"a.png", "b.png"}, // AssetDir("foo.txt") and AssetDir("notexist") would return an error, and @@ -244,7 +245,7 @@ func RestoreAsset(dir, name string) error { if err != nil { return err } - err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) + err = os.WriteFile(_filePath(dir, name), data, info.Mode()) if err != nil { return err } diff --git a/build.properties b/build.properties index d821848..ef637e5 100644 --- a/build.properties +++ b/build.properties @@ -5,8 +5,8 @@ core.dir = ../portapps app = caprine app.name = Caprine app.type = archive -app.version = 2.57.0 -app.release = 37 +app.version = 2.58.1 +app.release = 38 app.homepage = https://sindresorhus.com/caprine/ # Portable app