/
blur.json
79 lines (79 loc) 路 3.29 KB
/
blur.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"version": "1.92",
"description": "Add motion blur to videos",
"homepage": "https://f0e.github.io/blur",
"license": "Unknown",
"architecture": {
"64bit": {
"url": "https://github.com/f0e/blur/releases/download/v1.92/blur-installer.exe",
"hash": "12499c0bda1c0d3b735d4b723d39e7ad811ee351971cf9faffc4ae5045b2f332"
}
},
"innosetup": true,
"bin": [
"blur.exe",
"blur-cli.exe"
],
"persist": [
".blur-config.cfg"
],
"pre_install": [
"$blurCfgPath = \"$dir\\.blur-config.cfg\"",
"if (-not (Test-Path -Path $blurCfgPath)) { New-Item -ItemType File -Path $blurCfgPath -Force | Out-Null }"
],
"shortcuts": [
[
"blur.exe",
"blur"
]
],
"post_install": [
"function New-Shortcut {",
" param(",
" [String]$LnkPath,",
" [String]$TargetPath,",
" [String]$WorkingDir",
" )",
" if (Test-Path $LnkPath){",
" Remove-Item $LnkPath",
" }",
" $WScriptShell = New-Object -ComObject WScript.Shell",
" $Shortcut = $WScriptShell.CreateShortcut($LnkPath)",
" $Shortcut.TargetPath = $TargetPath",
" if ($WorkingDir -ne $null) { $Shortcut.WorkingDirectory = $WorkingDir }",
" $Shortcut.Save()",
" if ((Get-Item $LnkPath).FullName -cne $LnkPath){",
" Rename-Item $LnkPath -NewName (Get-Item $LnkPath).Name",
" }",
"}",
"$blurCfgPath = \"$dir\\.blur-config.cfg\"",
"$scoopApps = [System.IO.Path]::Combine([Environment]::GetFolderPath('StartMenu'), 'Programs', 'Scoop Apps')",
"$sendTo = [System.Environment]::GetFolderPath('SendTo')",
"New-Shortcut -LnkPath \"$scoopdir\\shims\\blurcfg.lnk\" -TargetPath $blurCfgPath",
"New-Shortcut -LnkPath \"$sendTo\\blur.lnk\" -TargetPath \"$dir\\blur.exe\" -WorkingDir $dir",
"New-Shortcut -LnkPath \"$scoopApps\\blur Configuration.lnk\" -TargetPath $blurCfgPath",
"New-Item -ItemType File -Path \"$dir\\test.mp4\" -Force | Out-Null",
"& \"$dir\\blur-cli.exe\" -i \"$dir\\test.mp4\" *> $null",
"Remove-Item \"$dir\\test.mp4\" -Force | Out-Null"
],
"post_uninstall": [
"@(",
" \"$scoopdir\\shims\\blurcfg.lnk\"",
" \"$([System.Environment]::GetFolderPath('SendTo'))\\blur.lnk\"",
" \"$([System.IO.Path]::Combine([Environment]::GetFolderPath('StartMenu'), 'Programs', 'Scoop Apps'))\\blur Configuration.lnk\"",
") | ForEach-Object {if (Test-Path $PSItem) {Remove-Item $PSItem}}"
],
"notes": [
"- You can access the global blur configuration in the Start menu or 'blurcfg' in Run",
"- You can override the global config file by making a file called '.blur-config.cfg' in the directory of your video",
"- You can use blur with the 'Send To' context menu on videos in File Explorer, try it by right clicking",
" ",
"You may have to install 'extras/vcredist-aio' if you have DLL errors with Blur."
],
"checkver": {
"github": "https://github.com/f0e/blur"
},
"autoupdate": {
"url": "https://github.com/f0e/blur/releases/download/$version/blur-installer.exe"
}
}