far: semantic versioning (#4559)

This commit is contained in:
Chawye Hsu 2023-03-16 14:59:00 +08:00 committed by GitHub
parent ff6176570d
commit 64a04d1511
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
{ {
"version": "30b6060", "version": "3.0.6060",
"description": "A text-mode files and archives manager", "description": "A text-mode files and archives manager",
"homepage": "https://farmanager.com/", "homepage": "https://farmanager.com/",
"license": { "license": {
@ -21,7 +21,7 @@
"if (!(Test-Path \"$persist_dir\\$ini\")) {", "if (!(Test-Path \"$persist_dir\\$ini\")) {",
" Copy-Item \"$dir\\Far.exe.example.ini\" \"$dir\\$ini\"", " Copy-Item \"$dir\\Far.exe.example.ini\" \"$dir\\$ini\"",
" (Get-Content \"$dir\\$ini\") -replace ';(UseSystemProfiles=)1', '${1}0' | Set-Content \"$dir\\$ini\" -Encoding Ascii", " (Get-Content \"$dir\\$ini\") -replace ';(UseSystemProfiles=)1', '${1}0' | Set-Content \"$dir\\$ini\" -Encoding Ascii",
" # Migrate from system wide configuration", " # Migrate from system wide configuration",
" $env:LOCALAPPDATA, $env:APPDATA | ForEach-Object {", " $env:LOCALAPPDATA, $env:APPDATA | ForEach-Object {",
" if (Test-Path \"$_\\Far Manager\") {", " if (Test-Path \"$_\\Far Manager\") {",
" warn \"Copying system wide profile from $_ into $dir\"", " warn \"Copying system wide profile from $_ into $dir\"",
@ -37,15 +37,16 @@
], ],
"checkver": { "checkver": {
"url": "https://farmanager.com/download.php", "url": "https://farmanager.com/download.php",
"regex": "files/Far(?<version>[b\\d]+).x64.(?<date>\\d+).7z" "regex": "(?s)Stable.*?Far Manager v(?<version>[\\d.]+) build (?<build>[\\d]+).*?.x64.(?<date>\\d+).7z",
"replace": "${version}.${build}"
}, },
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://farmanager.com/files/Far$version.x64.$matchDate.7z" "url": "https://farmanager.com/files/Far$majorVersion$minorVersionb$patchVersion.x64.$matchDate.7z"
}, },
"32bit": { "32bit": {
"url": "https://farmanager.com/files/Far$version.x86.$matchDate.7z" "url": "https://farmanager.com/files/Far$majorVersion$minorVersionb$patchVersion.x86.$matchDate.7z"
} }
} }
} }