diff --git a/bucket/alist.json b/bucket/alist.json new file mode 100644 index 0000000000..fe21938fb5 --- /dev/null +++ b/bucket/alist.json @@ -0,0 +1,50 @@ +{ + "version": "3.2.1", + "description": "A file list program that supports multiple storage, powered by Gin and Solidjs.", + "homepage": "https://alist.nn.ci", + "license": "AGPL-3.0-or-later", + "architecture": { + "64bit": { + "url": "https://github.com/alist-org/alist/releases/download/v3.2.1/alist-windows-4.0-amd64.zip", + "hash": "md5:157a1c4e6ab3f492215d15f3bc04e6f4" + }, + "32bit": { + "url": "https://github.com/alist-org/alist/releases/download/v3.2.1/alist-windows-4.0-386.zip", + "hash": "md5:88be14c1b8d93a20d17cef489f570169" + } + }, + "bin": [ + [ + "alist.exe", + "alist", + "--conf \"$dir\\data\\config.json\"" + ] + ], + "post_install": [ + "$file = 'data\\config.json'", + "if (!(Test-Path \"$persist_dir\\$file\")) {", + " $CONT = @{ database = @{ db_file = \"$persist_dir\\data\\data.db\" }; temp_dir = \"$persist_dir\\data\\temp\"; log = @{ name = \"$persist_dir\\log\\log.log\" } }", + " Set-Content \"$dir\\$file\" ($CONT | ConvertTo-Json) -Encoding ASCII", + "}" + ], + "persist": [ + "data", + "log" + ], + "checkver": { + "github": "https://github.com/alist-org/alist" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://github.com/alist-org/alist/releases/download/v$version/alist-windows-4.0-amd64.zip" + }, + "32bit": { + "url": "https://github.com/alist-org/alist/releases/download/v$version/alist-windows-4.0-386.zip" + } + }, + "hash": { + "url": "$baseurl/md5.txt" + } + } +}