{
    "version": "2.43.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.43.1/ScreenToGif.2.43.1.Portable.x64.zip",
            "hash": "df295530f91cb79d7428c4103d4d1af67c315f9a57de231ed4ca3aed687bb5ff"
        },
        "32bit": {
            "url": "https://github.com/NickeManarin/ScreenToGif/releases/download/2.43.1/ScreenToGif.2.43.1.Portable.x86.zip",
            "hash": "3d52d0678d0c2f23b21fd08a1d9ca9c896a3d61ab27b6c74aa05d77811b09532"
        },
        "arm64": {
            "url": "https://github.com/NickeManarin/ScreenToGif/releases/download/2.43.1/ScreenToGif.2.43.1.Portable.Arm64.zip",
            "hash": "fb9baa31c508c52e5f8441cf888961f2d834171fdb4a9664e19469f1ff747659"
        }
    },
    "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"
            }
        }
    }
}
