generated from Ash258/GenericBucket
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathUWP.Fluent-Terminal.json
64 lines (64 loc) · 3.37 KB
/
UWP.Fluent-Terminal.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
{
"version": "0.6.1.0",
"description": "A Terminal Emulator based on UWP and web technologies. - felixse/FluentTerminal",
"homepage": "https://github.com/felixse/FluentTerminal",
"license": "GPL-3.0",
"url": "https://github.com/felixse/FluentTerminal/releases/download/0.6.1.0/FluentTerminal.Package_0.6.1.0_Test.zip#/install.zip",
"hash": "343344a1becb633c68448f39e76603cf0c8f323ce4e38ddeface379f057c73d9",
"pre_install": "7z x -tzip \"$dir\\install.ms\" -o\"$dir\\tmp\"",
"installer": {
"script": [
"$osversionLookup = @{",
" \"5.1.2600\" = \"XP\";",
" \"5.1.3790\" = \"2003\";",
" \"6.0.6001\" = \"Vista/2008\";",
" \"6.1.7600\" = \"Win7/2008R2\";",
" \"6.1.7601\" = \"Win7 SP1/2008R2 SP1\"; # SP1 or later.",
" \"6.2.9200\" = \"Win8/2012\";",
" \"6.3.9600\" = \"Win8.1/2012R2\";",
" \"10.0.*\" = \"Windows 10/Server 2016\"",
" }",
"$os = Get-WmiObject Win32_OperatingSystem",
"$osVersion = $os.version",
"$ProductName = (Get-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion' -Name 'ProductName').ProductName",
"$EditionId = (Get-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion' -Name 'EditionID').EditionId",
"",
"#This will show us if we are running on Nano Server (Kernel version alone won't show this)",
"Write-Output \"Running on: $ProductName, ($EditionId), Windows Kernel: $osVersion\"",
"",
"if( ([version]$osVersion).Major -eq \"10\" ) {",
" $osVersion = \"$(([version]$osVersion).Major).$(([version]$osVersion).Minor).*\"",
"}",
" ",
"switch ($osversionLookup[$osVersion]) {",
" \"Windows 10/Server 2016\" {",
" # Ok",
" }",
" default {",
" # Windows XP, Windows 2003, Windows Vista, Windows 7, or unknown?",
" throw \"$packageName is not supported on $ProductName, ($EditionId), Windows Kernel: $osVersion\"",
" }",
"}",
" ",
"# Version check OK, go ahead and install",
"echo \"Enabling App Sideloading\"",
"reg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AppModelUnlock\" /t REG_DWORD /f /v \"AllowAllTrustedApps\" /d \"1\"",
"& \"$dir\\tmp\\Install.ps1\" -Force -ForceContextMenu",
"if ( -not $? ) { Exit 1 }",
"Remove-Item \"$dir\\tmp\" -Recurse",
"echo \"Installation complete\""
]
},
"uninstaller": {
"script": [
"Get-AppxPackage -Name *FluentTerminal* | Remove-AppxPackage -AllUsers",
"& certutil -delstore TrustedPeople 1ec0504f23d8f58f4b2cbe942f41d279",
"$ErrorActionPreference = 'Continue'",
"reg delete \"HKCU\\Software\\Classes\\Directory\\shell\\Open Fluent Terminal here\" /f",
"reg delete \"HKCU\\Software\\Classes\\Directory\\Background\\shell\\Open Fluent Terminal here\" /f",
"reg delete \"HKCU\\Software\\Classes\\Directory\\LibraryFolder\\shell\\Open Fluent Terminal here\" /f",
"$ErrorActionPreference = 'Stop'"
]
},
"checkver": "github"
}