{ "version": "06-01", "description": "Cross-platform advanced subtitle editor, with new feature branches. Read the README on the feature branch.", "homepage": "https://github.com/arch1t3cht/Aegisub", "license": { "identifier": "BSD-3-Clause,MIT,BSDL,MPL-1.1", "url": "https://github.com/arch1t3cht/Aegisub/blob/feature/LICENCE" }, "suggest": { "vcredist": "extras/vcredist2022" }, "architecture": { "64bit": { "url": "https://github.com/arch1t3cht/Aegisub/releases/download/migration06-01/Windows.MSVC.Release.-.portable.zip", "hash": "a0417ee80c286531f368be7f708770e4ee74c4657b329e62a59c2ea7e3e10d1c" } }, "pre_install": [ "$portableArchive = Get-ChildItem -Path $dir -Filter '*-portable.zip' | Select-Object -First 1", "Expand-ZipArchive -Path $portableArchive.FullName -DestinationPath \"$dir\" -ExtractDir \"aegisub-portable\" -Removal", "", "# Hardlinks won't work properly here to persist files, because this app creates a new file instead of writing to the existing one.", "Get-ChildItem -LiteralPath \"$persist_dir\" -File -Filter '*.json' -ErrorAction Ignore | Copy-Item -Destination $dir -Force" ], "post_install": [ "'automation' | ForEach-Object {", " if (Test-Path -Path \"$dir\\$_.original\" -PathType Container) {", " Copy-Item -Path \"$dir\\$_.original\\*\" -Destination \"$dir\\$_\" -Force -Recurse", " Remove-Item -Path \"$dir\\$_.original\" -Recurse -Force -ErrorAction SilentlyContinue", " }", "}" ], "shortcuts": [ [ "aegisub.exe", "Aegisub" ] ], "pre_uninstall": [ "# Hardlinks won't work properly here to persist files, because this app creates a new file instead of writing to the existing one.", "ensure $persist_dir | Out-Null", "Get-ChildItem -LiteralPath \"$dir\" -File -Filter '*.json' | Where-Object { $_.Name -notin @('scoop-manifest.json', 'scoop-install.json') } | Copy-Item -Destination $persist_dir -Force" ], "persist": [ "autoback", "automation", "autosave", "catalog", "config" ], "checkver": { "github": "https://api.github.com/repos/arch1t3cht/Aegisub/releases/latest", "jsonpath": "$.tag_name", "regex": "^migration([0-9]+-[0-9]+)$" }, "autoupdate": { "architecture": { "64bit": { "url": "https://github.com/arch1t3cht/Aegisub/releases/download/migration$version/Windows.MSVC.Release.-.portable.zip" } } } }