generated from ScoopInstaller/BucketTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xanmod-WSL2: update naming for Locietta/xanmod-kernel-WSL2#57
- Loading branch information
Showing
9 changed files
with
259 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"homepage": "https://github.com/Locietta/xanmod-kernel-WSL2", | ||
"license": "GPL-2.0", | ||
"extract_dir": "", | ||
"bin": "", | ||
"post_install": [ | ||
"#########################################", | ||
"# set `.wslconfig` to use custom kernel #", | ||
"#########################################", | ||
"$ini = Add-Type -memberDefinition @\"", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern long WritePrivateProfileString (string section, string key, string val, string filePath);", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern int GetPrivateProfileString (string section, string key, string def, StringBuilder retVal, int size, string filePath);", | ||
"\"@ -passthru -name CustomWSL2ProfileInstall -UsingNamespace System.Text", | ||
"$kernel_path=\"$dir\\bzImage-x64v3\" -replace \"\\\\\", \"\\\\\" # double all back-slashess", | ||
"$null = $ini::WritePrivateProfileString(\"wsl2\", \"kernel\", $kernel_path, \"$env:USERPROFILE\\.wslconfig\")" | ||
], | ||
"post_uninstall": [ | ||
"##########################################", | ||
"# recover `.wslconfig` to default kernel #", | ||
"##########################################", | ||
"$ini = Add-Type -memberDefinition @\"", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern long WritePrivateProfileString (string section,string key, string val, string filePath);", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern int GetPrivateProfileString (string section, string key, string def, StringBuilder retVal, int size, string filePath);", | ||
"\"@ -passthru -name CustomWSL2ProfileUninstall -UsingNamespace System.Text", | ||
"$null = $ini::WritePrivateProfileString(\"wsl2\", \"kernel\", $null, \"$env:USERPROFILE\\.wslconfig\")" | ||
], | ||
"version": "6.6.29-1.1", | ||
"url": "https://github.com/Locietta/xanmod-kernel-WSL2/releases/download/6.6.29-locietta-WSL2-xanmod1.1-lts/bzImage-x64v3", | ||
"hash": "2fdf1c3d11ede72098c958f3a59149f91740369d269f5f22f24aee2288f0a87f", | ||
"checkver": { | ||
"script": [ | ||
"$LATEST = ((curl.exe -sL -H \"Authorization: Bearer $(Get-GitHubToken)\" https://api.github.com/repos/Locietta/xanmod-kernel-WSL2/tags?per_page=60 | ConvertFrom-Json).name | Select-String 'lts')[0]", | ||
"$LATEST" | ||
], | ||
"regex": "(?<main>[\\d.]+)-locietta-WSL2-xanmod(?<xanmod>[\\d.]+)", | ||
"replace": "${1}-${2}" | ||
}, | ||
"autoupdate": { | ||
"url": "https://github.com/Locietta/xanmod-kernel-WSL2/releases/download/$matchMain-locietta-WSL2-xanmod$matchXanmod-lts/bzImage-x64v3", | ||
"hash": { | ||
"url": "https://github.com/Locietta/xanmod-kernel-WSL2/releases/download/$matchMain-locietta-WSL2-xanmod$matchXanmod-lts/bzImage-x64v3.sha256" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"homepage": "https://github.com/Locietta/xanmod-kernel-WSL2", | ||
"license": "GPL-2.0", | ||
"extract_dir": "", | ||
"bin": "", | ||
"post_install": [ | ||
"#########################################", | ||
"# set `.wslconfig` to use custom kernel #", | ||
"#########################################", | ||
"$ini = Add-Type -memberDefinition @\"", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern long WritePrivateProfileString (string section, string key, string val, string filePath);", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern int GetPrivateProfileString (string section, string key, string def, StringBuilder retVal, int size, string filePath);", | ||
"\"@ -passthru -name CustomWSL2ProfileInstall -UsingNamespace System.Text", | ||
"$kernel_path=\"$dir\\bzImage-x64v4\" -replace \"\\\\\", \"\\\\\" # double all back-slashess", | ||
"$null = $ini::WritePrivateProfileString(\"wsl2\", \"kernel\", $kernel_path, \"$env:USERPROFILE\\.wslconfig\")" | ||
], | ||
"post_uninstall": [ | ||
"##########################################", | ||
"# recover `.wslconfig` to default kernel #", | ||
"##########################################", | ||
"$ini = Add-Type -memberDefinition @\"", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern long WritePrivateProfileString (string section,string key, string val, string filePath);", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern int GetPrivateProfileString (string section, string key, string def, StringBuilder retVal, int size, string filePath);", | ||
"\"@ -passthru -name CustomWSL2ProfileUninstall -UsingNamespace System.Text", | ||
"$null = $ini::WritePrivateProfileString(\"wsl2\", \"kernel\", $null, \"$env:USERPROFILE\\.wslconfig\")" | ||
], | ||
"version": "6.6.29-1.1", | ||
"url": "https://github.com/Locietta/xanmod-kernel-WSL2/releases/download/6.6.29-locietta-WSL2-xanmod1.1-lts/bzImage-x64v4", | ||
"hash": "2fdf1c3d11ede72098c958f3a59149f91740369d269f5f22f24aee2288f0a87f", | ||
"checkver": { | ||
"script": [ | ||
"$LATEST = ((curl.exe -sL -H \"Authorization: Bearer $(Get-GitHubToken)\" https://api.github.com/repos/Locietta/xanmod-kernel-WSL2/tags?per_page=60 | ConvertFrom-Json).name | Select-String 'lts')[0]", | ||
"$LATEST" | ||
], | ||
"regex": "(?<main>[\\d.]+)-locietta-WSL2-xanmod(?<xanmod>[\\d.]+)", | ||
"replace": "${1}-${2}" | ||
}, | ||
"autoupdate": { | ||
"url": "https://github.com/Locietta/xanmod-kernel-WSL2/releases/download/$matchMain-locietta-WSL2-xanmod$matchXanmod-lts/bzImage-x64v4", | ||
"hash": { | ||
"url": "https://github.com/Locietta/xanmod-kernel-WSL2/releases/download/$matchMain-locietta-WSL2-xanmod$matchXanmod-lts/bzImage-x64v4.sha256" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"homepage": "https://github.com/Locietta/xanmod-kernel-WSL2", | ||
"description": "Xanmod Kernel for WSL2.", | ||
"license": "GPL-2.0", | ||
"extract_dir": "", | ||
"bin": "", | ||
"post_install": [ | ||
"#########################################", | ||
"# set `.wslconfig` to use custom kernel #", | ||
"#########################################", | ||
"$ini = Add-Type -memberDefinition @\"", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern long WritePrivateProfileString (string section,string key, string val, string filePath);", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern int GetPrivateProfileString (string section, string key, string def, StringBuilder retVal, int size, string filePath);", | ||
"\"@ -passthru -name CustomWSL2ProfileInstall -UsingNamespace System.Text", | ||
"$kernel_path=\"$dir\\bzImage-x64v2\" -replace \"\\\\\", \"\\\\\" # double all back-slashess", | ||
"$null = $ini::WritePrivateProfileString(\"wsl2\", \"kernel\", $kernel_path, \"$env:USERPROFILE\\.wslconfig\")" | ||
], | ||
"post_uninstall": [ | ||
"##########################################", | ||
"# recover `.wslconfig` to default kernel #", | ||
"##########################################", | ||
"$ini = Add-Type -memberDefinition @\"", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern long WritePrivateProfileString (string section, string key, string val, string filePath);", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern int GetPrivateProfileString (string section, string key, string def, StringBuilder retVal, int size, string filePath);", | ||
"\"@ -passthru -name CustomWSL2ProfileUninstall -UsingNamespace System.Text", | ||
"$null = $ini::WritePrivateProfileString(\"wsl2\", \"kernel\", $null, \"$env:USERPROFILE\\.wslconfig\")" | ||
], | ||
"version": "6.8.8-1.1", | ||
"url": "https://github.com/Locietta/xanmod-kernel-WSL2/releases/download/6.8.8-locietta-WSL2-xanmod1.1/bzImage-x64v2", | ||
"hash": "a235d6ef59827e3cfcac599e61a2da89baebc88e54238abe7e9b2bdff649b1ac", | ||
"checkver": { | ||
"script": [ | ||
"$LATEST = ((curl.exe -sL -H \"Authorization: Bearer $(Get-GitHubToken)\" https://api.github.com/repos/Locietta/xanmod-kernel-WSL2/tags?per_page=60 | ConvertFrom-Json).name | Select-String 'lts' -NotMatch)[0]", | ||
"$LATEST" | ||
], | ||
"regex": "(?<main>[\\d.]+)-locietta-WSL2-xanmod(?<xanmod>[\\d.]+)", | ||
"replace": "${1}-${2}" | ||
}, | ||
"autoupdate": { | ||
"url": "https://github.com/Locietta/xanmod-kernel-WSL2/releases/download/$matchMain-locietta-WSL2-xanmod$matchXanmod/bzImage-x64v2", | ||
"hash": { | ||
"url": "https://github.com/Locietta/xanmod-kernel-WSL2/releases/download/$matchMain-locietta-WSL2-xanmod$matchXanmod/bzImage-x64v2.sha256" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"homepage": "https://github.com/Locietta/xanmod-kernel-WSL2", | ||
"description": "Xanmod Kernel for WSL2.", | ||
"license": "GPL-2.0", | ||
"extract_dir": "", | ||
"bin": "", | ||
"post_install": [ | ||
"#########################################", | ||
"# set `.wslconfig` to use custom kernel #", | ||
"#########################################", | ||
"$ini = Add-Type -memberDefinition @\"", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern long WritePrivateProfileString (string section, string key, string val, string filePath);", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern int GetPrivateProfileString (string section, string key, string def, StringBuilder retVal, int size, string filePath);", | ||
"\"@ -passthru -name CustomWSL2ProfileInstall -UsingNamespace System.Text", | ||
"$kernel_path=\"$dir\\bzImage-x64v3\" -replace \"\\\\\", \"\\\\\" # double all back-slashess", | ||
"$null = $ini::WritePrivateProfileString(\"wsl2\", \"kernel\", $kernel_path, \"$env:USERPROFILE\\.wslconfig\")" | ||
], | ||
"post_uninstall": [ | ||
"##########################################", | ||
"# recover `.wslconfig` to default kernel #", | ||
"##########################################", | ||
"$ini = Add-Type -memberDefinition @\"", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern long WritePrivateProfileString (string section,string key, string val, string filePath);", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern int GetPrivateProfileString (string section, string key, string def, StringBuilder retVal, int size, string filePath);", | ||
"\"@ -passthru -name CustomWSL2ProfileUninstall -UsingNamespace System.Text", | ||
"$null = $ini::WritePrivateProfileString(\"wsl2\", \"kernel\", $null, \"$env:USERPROFILE\\.wslconfig\")" | ||
], | ||
"version": "6.8.8-1.1", | ||
"url": "https://github.com/Locietta/xanmod-kernel-WSL2/releases/download/6.8.8-locietta-WSL2-xanmod1.1/bzImage-x64v3", | ||
"hash": "9ae1395dd9b0a69c6802b57a370ff9070fe1cb60126cf674a4c7452f7dfda822", | ||
"checkver": { | ||
"script": [ | ||
"$LATEST = ((curl.exe -sL -H \"Authorization: Bearer $(Get-GitHubToken)\" https://api.github.com/repos/Locietta/xanmod-kernel-WSL2/tags?per_page=60 | ConvertFrom-Json).name | Select-String 'lts' -NotMatch)[0]", | ||
"$LATEST" | ||
], | ||
"regex": "(?<main>[\\d.]+)-locietta-WSL2-xanmod(?<xanmod>[\\d.]+)", | ||
"replace": "${1}-${2}" | ||
}, | ||
"autoupdate": { | ||
"url": "https://github.com/Locietta/xanmod-kernel-WSL2/releases/download/$matchMain-locietta-WSL2-xanmod$matchXanmod/bzImage-x64v3", | ||
"hash": { | ||
"url": "https://github.com/Locietta/xanmod-kernel-WSL2/releases/download/$matchMain-locietta-WSL2-xanmod$matchXanmod/bzImage-x64v3.sha256" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"homepage": "https://github.com/Locietta/xanmod-kernel-WSL2", | ||
"description": "Xanmod Kernel for WSL2.", | ||
"license": "GPL-2.0", | ||
"extract_dir": "", | ||
"bin": "", | ||
"post_install": [ | ||
"#########################################", | ||
"# set `.wslconfig` to use custom kernel #", | ||
"#########################################", | ||
"$ini = Add-Type -memberDefinition @\"", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern long WritePrivateProfileString (string section, string key, string val, string filePath);", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern int GetPrivateProfileString (string section, string key, string def, StringBuilder retVal, int size, string filePath);", | ||
"\"@ -passthru -name CustomWSL2ProfileInstall -UsingNamespace System.Text", | ||
"$kernel_path=\"$dir\\bzImage-x64v4\" -replace \"\\\\\", \"\\\\\" # double all back-slashess", | ||
"$null = $ini::WritePrivateProfileString(\"wsl2\", \"kernel\", $kernel_path, \"$env:USERPROFILE\\.wslconfig\")" | ||
], | ||
"post_uninstall": [ | ||
"##########################################", | ||
"# recover `.wslconfig` to default kernel #", | ||
"##########################################", | ||
"$ini = Add-Type -memberDefinition @\"", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern long WritePrivateProfileString (string section,string key, string val, string filePath);", | ||
"[DllImport(\"Kernel32\")]", | ||
"public static extern int GetPrivateProfileString (string section, string key, string def, StringBuilder retVal, int size, string filePath);", | ||
"\"@ -passthru -name CustomWSL2ProfileUninstall -UsingNamespace System.Text", | ||
"$null = $ini::WritePrivateProfileString(\"wsl2\", \"kernel\", $null, \"$env:USERPROFILE\\.wslconfig\")" | ||
], | ||
"version": "6.8.8-1.1", | ||
"url": "https://github.com/Locietta/xanmod-kernel-WSL2/releases/download/6.8.8-locietta-WSL2-xanmod1.1/bzImage-x64v4", | ||
"hash": "9ae1395dd9b0a69c6802b57a370ff9070fe1cb60126cf674a4c7452f7dfda822", | ||
"checkver": { | ||
"script": [ | ||
"$LATEST = ((curl.exe -sL -H \"Authorization: Bearer $(Get-GitHubToken)\" https://api.github.com/repos/Locietta/xanmod-kernel-WSL2/tags?per_page=60 | ConvertFrom-Json).name | Select-String 'lts' -NotMatch)[0]", | ||
"$LATEST" | ||
], | ||
"regex": "(?<main>[\\d.]+)-locietta-WSL2-xanmod(?<xanmod>[\\d.]+)", | ||
"replace": "${1}-${2}" | ||
}, | ||
"autoupdate": { | ||
"url": "https://github.com/Locietta/xanmod-kernel-WSL2/releases/download/$matchMain-locietta-WSL2-xanmod$matchXanmod/bzImage-x64v4", | ||
"hash": { | ||
"url": "https://github.com/Locietta/xanmod-kernel-WSL2/releases/download/$matchMain-locietta-WSL2-xanmod$matchXanmod/bzImage-x64v4.sha256" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.