generated from ScoopInstaller/BucketTemplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheasinote.json
118 lines (118 loc) · 5.67 KB
/
easinote.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"version": "5.2.4.8760",
"description": "为互动教学而生",
"homepage": "https://easinote.seewo.com/",
"license": "Proprietary",
"url": "https://cstore-pub-cos-seewo-report-tx.seewo.com/seewo-report_uwiwpxvxhhulnhlwhpmolpppqkhhihhh?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDJUXMxJRLzPaeMp20jDSTFl23pLcdPwDF%26q-sign-time%3D1737622119%3B2052982119%26q-key-time%3D1737622119%3B2052982119%26q-header-list%3Dhost%26q-url-param-list%3Dresponse-content-disposition%26q-signature%3D14a2bf38b68072251894c8751e260e3f609f175b&response-content-disposition=attachment%3Bfilename%3D%22EasiNoteSetup_5.2.4.8760_seewo.exe%22%3Bfilename%2A%3Dutf-8%27%27EasiNoteSetup_5.2.4.8760_seewo.exe#/dl.7z",
"hash": "1dbe915c1e864a31abf594e469e1f2cb59845904ded4155a21d0f43c80221c24",
"extract_dir": "EasiNote5_5.2.4.8760",
"shortcuts": [
[
"Main\\EasiNote.exe",
"希沃白板 5"
]
],
"installer": {
"script": [
". \"$bucketsdir\\$bucket\\bin\\utils.ps1\"",
"New-PersistDirectory \"$env:APPDATA\\Seewo\\EasiNote5\" \"$persist_dir\\Data\" -Migrate",
"",
"if ($global) {",
" $registry_scope = \"HKEY_LOCAL_MACHINE\"",
"} else {",
" $registry_scope = \"HKEY_CURRENT_USER\"",
"}",
"",
"@\"",
"Windows Registry Editor Version 5.00",
"",
"[$registry_scope\\SOFTWARE\\Classes\\.enb]",
"@=\"iseewo.enb\"",
"",
"[$registry_scope\\SOFTWARE\\Classes\\.enbx]",
"@=\"iseewo.enbx\"",
"",
"[$registry_scope\\SOFTWARE\\Classes\\easinote]",
"@=\"希沃白板 5\"",
"\"URL Protocol\"=\"$($dir -replace '\\\\','\\\\')\\\\Main\\\\EasiNote.exe\"",
"",
"[$registry_scope\\SOFTWARE\\Classes\\easinote\\shell\\open]",
"\"FriendlyAppName\"=\"希沃白板 5\"",
"",
"[$registry_scope\\SOFTWARE\\Classes\\easinote\\shell\\open\\command]",
"@=\"$($dir -replace '\\\\','\\\\')\\\\Main\\\\EasiNote.exe \\\"%%1\\\"\"",
"",
"[$registry_scope\\SOFTWARE\\Classes\\iseewo.enb]",
"@=\"Seewo EasiNote File\"",
"",
"[$registry_scope\\SOFTWARE\\Classes\\iseewo.enb\\DefaultIcon]",
"@=\"$($dir -replace '\\\\','\\\\')\\\\Main\\\\EasiNote.exe\"",
"",
"[$registry_scope\\SOFTWARE\\Classes\\iseewo.enb\\shell\\open]",
"\"FriendlyAppName\"=\"希沃白板 5\"",
"",
"[$registry_scope\\SOFTWARE\\Classes\\iseewo.enb\\shell\\open\\command]",
"@=\"$($dir -replace '\\\\','\\\\')\\\\Main\\\\EasiNote.exe \\\"%%1\\\"\"",
"",
"[$registry_scope\\SOFTWARE\\Classes\\iseewo.enbx]",
"@=\"Seewo EasiNote File\"",
"",
"[$registry_scope\\SOFTWARE\\Classes\\iseewo.enbx\\DefaultIcon]",
"@=\"$($dir -replace '\\\\','\\\\')\\\\Main\\\\EasiNote.exe\"",
"",
"[$registry_scope\\SOFTWARE\\Classes\\iseewo.enbx\\shell\\open]",
"\"FriendlyAppName\"=\"希沃白板 5\"",
"",
"[$registry_scope\\SOFTWARE\\Classes\\iseewo.enbx\\shell\\open\\command]",
"@=\"$($dir -replace '\\\\','\\\\')\\\\Main\\\\EasiNote.exe \\\"%%1\\\"\"",
"",
"[$registry_scope\\SOFTWARE\\Classes\\iseewo.enbx\\shell\\使用 希沃白板 5 开始授课]",
"\"Icon\"=\"$($dir -replace '\\\\','\\\\')\\\\Main\\\\EasiNote.exe\"",
"",
"[$registry_scope\\SOFTWARE\\Classes\\iseewo.enbx\\shell\\使用 希沃白板 5 开始授课\\command]",
"@=\"$($dir -replace '\\\\','\\\\')\\\\Main\\\\EasiNote.exe \\\"%%1\\\" -m Display\"",
"\"@ | Set-Content -Path \"$dir\\install_EasiNote.reg\" -Encoding Unicode",
"",
"reg.exe import \"$dir\\install_EasiNote.reg\" *>$null"
]
},
"uninstaller": {
"script": [
"if ($global) {",
" $registry_scope = \"HKLM\"",
"} else {",
" $registry_scope = \"HKCU\"",
"}",
"",
"reg.exe delete \"$registry_scope\\Software\\Classes\\.enb\" /f *>$null",
"reg.exe delete \"$registry_scope\\Software\\Classes\\.enbx\" /f *>$null",
"reg.exe delete \"$registry_scope\\Software\\Classes\\easinote\" /f *>$null",
"reg.exe delete \"$registry_scope\\Software\\Classes\\iseewo.enb\" /f *>$null",
"reg.exe delete \"$registry_scope\\Software\\Classes\\iseewo.enbx\" /f *>$null"
]
},
"post_install": [
"$scoop_startmenu_folder = shortcut_folder $global",
"Copy-Item -Path \"$scoop_startmenu_folder\\希沃白板 5.lnk\" -Destination \"$env:USERPROFILE\\Desktop\\希沃白板 5.lnk\" -Force -ErrorAction SilentlyContinue | Out-Null"
],
"pre_uninstall": [
"$bucket = $install.bucket",
". \"$bucketsdir\\$bucket\\bin\\utils.ps1\"",
"Stop-App",
"Remove-Junction \"$env:APPDATA\\Seewo\\EasiNote5\""
],
"post_uninstall": "Remove-Item \"$env:USERPROFILE\\Desktop\\希沃白板 5.lnk\" -Force -ErrorAction SilentlyContinue | Out-Null",
"checkver": {
"script": [
"$Object1 = Invoke-RestMethod -Uri 'https://easinote.seewo.com/com/softinfo?softCode=EasiNote5'",
"$v = $Object1.data[0].softVersion",
"$d = $Object1.data[0].downloadUrl",
"$v + '=====' + $d"
],
"regex": "(.*)=====(?<url>.*)"
},
"autoupdate": {
"extract_dir": "EasiNote5_$version",
"url": "$matchUrl#/dl.7z"
}
}