{
    "version": "ea47e4d8",
    "description": "Non-linear video editor aiming to provide a fully-featured alternative to high-end professional video editing software.",
    "homepage": "https://olivevideoeditor.org",
    "license": "GPL-3.0-only",
    "architecture": {
        "64bit": {
            "url": "https://nightly.link/olive-editor/olive/workflows/ci/master/Olive-ea47e4d8-Windows-x86_64-Portable.zip",
            "hash": "0a1d93dc1f20589b9f1735ce7b2ad1e6234e13e752a7e4b8601f2f0f102c6cf3",
            "extract_dir": "olive-editor"
        }
    },
    "pre_install": [
        "if (!(Test-Path \"$persist_dir\\config.xml\")) {",
        "   '<Configuration></Configuration>' | Out-File -FilePath \"$dir\\config.xml\"",
        "   New-Item \"$dir\\shortcuts\" -ItemType File | Out-Null",
        "}",
        "New-Item \"$dir\\portable\" -ErrorAction SilentlyContinue | Out-Null"
    ],
    "pre_uninstall": [
        "# The following must be done as Olive Editor Nightly deletes the original file which was linked to the persist folder when it saves settings, rather than editing the file. It also deletes the shortcut file if it is empty, previously causing errors on uninstallation.",
        "Copy-Item \"$dir\\config.xml\" \"$persist_dir\\config.xml\" -ErrorAction SilentlyContinue",
        "if (!(Test-Path \"$dir\\shortcuts\")) {",
        "   New-Item \"$dir\\shortcuts\" -ItemType File | Out-Null",
        "}"
    ],
    "bin": "olive-editor.exe",
    "shortcuts": [
        [
            "olive-editor.exe",
            "Olive Editor Nightly"
        ]
    ],
    "persist": [
        "config.xml",
        "shortcuts"
    ],
    "checkver": {
        "url": "https://nightly.link/olive-editor/olive/workflows/ci/master",
        "regex": "Olive-([\\d\\w]{8})-Windows-x86_64-Portable\\.zip</a>"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://nightly.link/olive-editor/olive/workflows/ci/master/Olive-$version-Windows-x86_64-Portable.zip"
            }
        }
    }
}
