Skip to content

Instantly share code, notes, and snippets.

@mochaaP
Last active August 11, 2021 03:23
Show Gist options
  • Save mochaaP/16c76cfda8c609c36f4a3a5d86e18993 to your computer and use it in GitHub Desktop.
Save mochaaP/16c76cfda8c609c36f4a3a5d86e18993 to your computer and use it in GitHub Desktop.
{
"version": "4.4.0.3508",
"description": "A desktop customization tool",
"homepage": "https://www.rainmeter.net",
"license": "GPL-2.0-only",
"url": "https://github.com/rainmeter/rainmeter/releases/download/v4.4.0.3508/Rainmeter-4.4-r3508-beta.exe",
"hash": "0f21b9d5533b73cfd80bb5b497b9684677d4094362fb08e251c08c4ccca0c089",
"architecture": {
"64bit": {
"installer": {
"script": "Expand-7zipArchive -Overwrite All \"$dir\\$fname\" -Removal"
}
},
"32bit": {
"installer": {
"script": "Expand-7zipArchive -Overwrite Skip \"$dir\\$fname\" -Removal"
}
}
},
"pre_install": [
"@('Rainmeter.ini', 'Rainmeter.data', 'Rainmeter.stats') | ForEach-Object {",
" if (!(Test-Path \"$persist_dir\\$_\")) { New-Item \"$dir\\$_\" -Type File | Out-Null }",
"}"
],
"post_install": [
" # Makes default welcome skins appear on new installation.",
"if(!(Get-Content \"$dir\\Rainmeter.ini\")) {",
" @('Layouts\\illustro default\\Rainmeter.ini', 'Skins', 'Layouts') | ForEach-Object {",
" Copy-Item \"$dir\\Defaults\\$_\" \"$persist_dir\" -Force -Recurse | Out-Null",
" }",
"}",
" # If there was an update for plugin, copy default plugins after persisting.",
"if (Test-Path \"$dir\\Plugins.original\") {",
" Copy-Item \"$dir\\Plugins.original\\*\" \"$persist_dir\\Plugins\" -Force -Recurse",
" Remove-Item \"$dir\\Plugins.original\" -Force -Recurse | Out-Null",
"}",
"@('$PLUGINSDIR', 'uninst.exe.nsis') | ForEach-Object { Remove-Item \"$dir\\$_\" -Force -Recurse }"
],
"bin": [
"Rainmeter.exe",
"SkinInstaller.exe"
],
"shortcuts": [
[
"Rainmeter.exe",
"Rainmeter"
]
],
"persist": [
"Rainmeter.ini",
"Rainmeter.data",
"Rainmeter.stats",
"Layouts",
"Skins",
"Plugins"
],
"checkver": {
"github": "https://github.com/rainmeter/rainmeter"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment