everything-cli: add persist file (#3650)

* es: fixed manifest fields order

* es: add persist file
This commit is contained in:
snowman 2022-06-05 15:57:17 +08:00 committed by GitHub
parent 4273415350
commit 188521b779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,18 @@
{ {
"homepage": "https://www.voidtools.com/support/everything/command_line_interface/",
"description": "Command line interface to Everyting.",
"license": "MIT",
"version": "1.1.0.23", "version": "1.1.0.23",
"description": "Command line interface to Everyting.",
"homepage": "https://www.voidtools.com/support/everything/command_line_interface/",
"license": "MIT",
"depends": "extras/everything", "depends": "extras/everything",
"url": "https://www.voidtools.com/ES-1.1.0.23.zip", "url": "https://www.voidtools.com/ES-1.1.0.23.zip",
"hash": "e8ac817ae276ba1d12044a65444c109f284015ba985d29201a9fd4f38b5e6187", "hash": "e8ac817ae276ba1d12044a65444c109f284015ba985d29201a9fd4f38b5e6187",
"pre_install": [
"$manifest.persist | ForEach-Object {",
" if (-not (Test-Path \"$persist_dir\\$_\")) { New-Item \"$dir\\$_\" -Force -ItemType file | Out-Null }",
"}"
],
"bin": "es.exe", "bin": "es.exe",
"persist": "es.ini",
"checkver": { "checkver": {
"url": "https://www.voidtools.com/downloads/", "url": "https://www.voidtools.com/downloads/",
"regex": "ES-([\\d.]+)\\.zip" "regex": "ES-([\\d.]+)\\.zip"