Skip to content

Instantly share code, notes, and snippets.

@vikas5914
Created February 21, 2023 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vikas5914/bb99636dbf3eca9da11f6e703124435f to your computer and use it in GitHub Desktop.
Save vikas5914/bb99636dbf3eca9da11f6e703124435f to your computer and use it in GitHub Desktop.
whatsapp.json
{
"version": "2.2306.9",
"description": "A cross-platform messaging and Voice over IP service.",
"homepage": "https://www.whatsapp.com",
"license": {
"identifier": "Freeware",
"url": "https://www.whatsapp.com/legal/"
},
"architecture": {
"64bit": {
"url": "https://web.whatsapp.com/desktop/windows/release/x64/WhatsApp-2.2306.9-full.nupkg#/dl.7z",
"hash": "sha1:6A7BC69C3965708F94A10A056215C5209395C8F9"
},
"32bit": {
"url": "https://web.whatsapp.com/desktop/windows/release/ia32/WhatsApp-2.2306.9-full.nupkg#/dl.7z",
"hash": "sha1:9F3A44527772ED3CD72C11D0FB62E6C828C0F496"
}
},
"extract_dir": "lib\\net45",
"pre_install": [
"# WhatsApp cannot work under junctions ('current'), therefore we need to manually create the shortcut (see #4951)",
"$scoop_startmenu_folder = Join-Path $([Environment]::GetFolderPath($(if ($global) {'commonstartmenu'} else {'startmenu'}))) 'Programs\\Scoop Apps'",
"$exe_dir = versiondir 'whatsapp' $version",
"$wsShell = New-Object -ComObject WScript.Shell",
"$wsShell = $wsShell.CreateShortcut(\"$scoop_startmenu_folder\\WhatsApp.lnk\")",
"$wsShell.TargetPath = \"$exe_dir\\whatsapp.exe\"",
"$wsShell.WorkingDirectory = \"$exe_dir\"",
"$wsShell.Save()"
],
"uninstaller": {
"script": [
"$scoop_startmenu_folder = Join-Path $([Environment]::GetFolderPath($(if ($global) {'commonstartmenu'} else {'startmenu'}))) 'Programs\\Scoop Apps'",
"Remove-Item \"$scoop_startmenu_folder\\WhatsApp.lnk\" -Force"
]
},
"checkver": {
"url": "https://web.whatsapp.com/desktop/windows/release/x64/RELEASES",
"regex": "WhatsApp-([\\d.]+)-full\\.nupkg",
"reverse": true
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://web.whatsapp.com/desktop/windows/release/x64/WhatsApp-$version-full.nupkg#/dl.7z"
},
"32bit": {
"url": "https://web.whatsapp.com/desktop/windows/release/ia32/WhatsApp-$version-full.nupkg#/dl.7z"
}
},
"hash": {
"url": "$baseurl/RELEASES"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment