/
ditto.json
35 lines (35 loc) · 1.19 KB
/
ditto.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
{
"version": "3.24.246.0",
"description": "An enhanced clipboard manager.",
"homepage": "https://ditto-cp.sourceforge.io/",
"license": "BSD-3-Clause",
"url": "https://github.com/sabrogden/Ditto/releases/download/3.24.246.0/DittoPortable_64bit_3_24_246_0.zip",
"extract_dir": "Ditto",
"pre_install": [
"if (!(Test-Path \"$persist_dir\\Ditto.db\")) {",
" Write-Host 'File Ditto.db does not exists. Creating.' -f Yellow",
" Start-Process -FilePath \"$dir\\Ditto.exe\"",
" while (!(Test-Path \"$dir\\Ditto.db\")) {",
" Start-Sleep -Milliseconds 500",
" }",
" Start-Sleep 1",
" Stop-Process -Name Ditto",
"}",
"$file = 'Ditto.Settings'",
"if (!(Test-Path \"$persist_dir\\$file\")) {",
" Write-Host 'File' $file 'does not exists. Creating.' -f Yellow",
" $CONT = @('[Ditto]', 'DBPath3=Ditto.db')",
" Set-Content \"$dir\\$file\" ($CONT -join \"`r`n\") -Encoding Ascii",
"}"
],
"persist": [
"Ditto.db",
"Ditto.Settings"
],
"shortcuts": [
[
"Ditto.exe",
"Ditto"
]
]
}