{
    "version": "2.40.1",
    "description": "Screen, webcam and sketchboard recorder with an integrated editor.",
    "homepage": "https://www.screentogif.com/",
    "license": "MS-PL",
    "suggest": {
        "ffmpeg": "ffmpeg"
    },
    "architecture": {
        "64bit": {
            "url": "https://github.com/NickeManarin/ScreenToGif/releases/download/2.40.1/ScreenToGif.2.40.1.Portable.x64.zip",
            "hash": "2c4dc16b35c4e229d3c1fb4b5d76a9b88a613b43ee2b54ff978f1bae8a205bf6"
        },
        "32bit": {
            "url": "https://github.com/NickeManarin/ScreenToGif/releases/download/2.40.1/ScreenToGif.2.40.1.Portable.x86.zip",
            "hash": "4a1af124a9e5907e9dac61badd51e6903f743b6b4fea019c981a792895bc198e"
        },
        "arm64": {
            "url": "https://github.com/NickeManarin/ScreenToGif/releases/download/2.40.1/ScreenToGif.2.40.1.Portable.Arm64.zip",
            "hash": "fa0d9d9a556b204863534a89b54f94205ffc31980a7570da84fa625fcf4d1a15"
        }
    },
    "pre_install": [
        "if (!(Test-Path \"$persist_dir\\Settings.xaml\")) {",
        "    if (Test-Path \"$env:AppData\\ScreenToGif\\Settings.xaml\") {",
        "        info \"[Portable Mode]: Copying existing settings file %AppData%\\ScreenToGif\\Settings.xaml...\"",
        "        Copy-Item \"$env:AppData\\ScreenToGif\\Settings.xaml\" \"$dir\"",
        "    } else {",
        "        Set-Content \"$dir\\Settings.xaml\" '<ResourceDictionary></ResourceDictionary>' -Encoding ascii | Out-Null",
        "    }",
        "}"
    ],
    "bin": "ScreenToGif.exe",
    "shortcuts": [
        [
            "ScreenToGif.exe",
            "ScreenToGif"
        ]
    ],
    "persist": "Settings.xaml",
    "checkver": {
        "github": "https://github.com/NickeManarin/ScreenToGif"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/NickeManarin/ScreenToGif/releases/download/$version/ScreenToGif.$version.Portable.x64.zip"
            },
            "32bit": {
                "url": "https://github.com/NickeManarin/ScreenToGif/releases/download/$version/ScreenToGif.$version.Portable.x86.zip"
            },
            "arm64": {
                "url": "https://github.com/NickeManarin/ScreenToGif/releases/download/$version/ScreenToGif.$version.Portable.Arm64.zip"
            }
        }
    }
}
