/
typora1.2.5.json
49 lines (49 loc) · 1.97 KB
/
typora1.2.5.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
{
"version": "1.2.5",
"description": "A truly minimal markdown editor",
"homepage": "https://typora.io",
"license": {
"identifier": "Proprietary",
"url": "https://support.typora.io/License-Agreement/"
},
"notes": "Only for the use of learning research, please delete within 24 hours after installation",
"url": "https://download.typora.io/windows/typora-setup-x64-1.2.5.exe",
"hash": "6624075e371944211ccb5258a21e29a73218cc0b4b788c8402393b51237f80a0",
"innosetup": true,
"post_install": [
"Invoke-WebRequest -Uri 'https://software.233366.xyz/api/raw/?path=/typora/winmm1.2.5.dll' -OutFile \"$dir\\winmm.dll\"",
"# handle runtime cache",
"if (!(Test-Path $persist_dir)) {",
" New-Item $persist_dir -Type Directory -Force | Out-Null",
"}",
"$runtimeCache = \"$env:APPDATA\\Typora\"",
"$runtimeCachePersist = \"$persist_dir\\appdata\"",
"if (Test-Path $runtimeCachePersist) {",
" Remove-Item $runtimeCache -Force -Recurse -ErrorAction SilentlyContinue",
" New-Item -Type Junction -Path $runtimeCache -Target $runtimeCachePersist | Out-Null",
"} else {",
" if (Test-Path $runtimeCache) {",
" Move-Item $runtimeCache $runtimeCachePersist -Force",
" New-Item -Type Junction -Path $runtimeCache -Target $runtimeCachePersist | Out-Null",
" }",
"}"
],
"uninstaller": {
"script": [
"$runtimeCache = \"$env:APPDATA\\Typora\"",
"$runtimeCachePersist = \"$persist_dir\\appdata\"",
"if (!(Test-Path $runtimeCachePersist)) {",
" Move-Item $runtimeCache $runtimeCachePersist -Force",
"} else {",
" Remove-Item $runtimeCache -Force -Recurse -ErrorAction SilentlyContinue",
"}"
]
},
"bin": "Typora.exe",
"shortcuts": [
[
"Typora.exe",
"Typora"
]
]
}