Make the things better
Use transmission, which is not broken Bump supposed version of zim meta package Provide better passing of arguments to updater
This commit is contained in:
@@ -87,6 +87,7 @@ func getHash(ch chan result, file, category, language string) {
|
||||
"--option",
|
||||
"extra-experimental-features",
|
||||
"flakes",
|
||||
"--check-store",
|
||||
fmt.Sprintf(`fetchtorrent {
|
||||
url="%s/%s/%s.torrent";
|
||||
hash="sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
||||
@@ -147,6 +148,8 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
fmt.Println("Writing file to ", outputPath)
|
||||
|
||||
// Read existing cache if it exists
|
||||
cached := make(map[string]map[string]Zim)
|
||||
if data, err := os.ReadFile(outputPath); err == nil {
|
||||
@@ -221,4 +224,5 @@ func main() {
|
||||
}
|
||||
|
||||
fmt.Printf("Successfully wrote output to %s\n", outputPath)
|
||||
fmt.Println(string(ret))
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ writeShellApplication {
|
||||
nix-prefetch
|
||||
];
|
||||
text = ''
|
||||
go run ${goscript} -- pkgs/zim/blobs.json
|
||||
go build -o updater ${goscript}
|
||||
./updater "$@"
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user