Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added git for WoA (beta version for now) #2

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions bucket/git-aarch64.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"version": "2.47.0.2",
"description": "Distributed version control system (beta version for Windows on Arm)",
"homepage": "https://gitforwindows.org",
"license": "GPL-2.0-only",
"notes": [
"Set Git Credential Manager Core by running: \"git config --global credential.helper manager\"",
"",
"To add context menu entries, run '$dir\\install-context.reg'",
"",
"To create file-associations for .git* and .sh files, run '$dir\\install-file-associations.reg'"
],
"architecture": {
"arm64": {
"url": "https://github.com/dennisameling/git/releases/download/v2.47.0.windows.2/PortableGit-2.47.0.2-arm64.7z.exe#/dl.7z",
"hash": "a4a6c86697c1a28cd4328b99bc76638f9cdc41eb642073f57f8cd0b37d9b5352"
},
},
"post_install": [
"'install-context', 'uninstall-context', 'install-file-associations', 'uninstall-file-associations' | ForEach-Object {",
" $reg_file_in = \"$bucketsdir\\main\\scripts\\git\\$_.reg\"",
" $reg_file_out = \"$dir\\$_.reg\"",
" $git_root = \"$dir\".Replace('\\', '\\\\')",
" if (Test-Path $reg_file_in) {",
" $content = Get-Content $reg_file_in",
" $content = $content.Replace('$git_root', $git_root)",
" if ($global) {",
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
" }",
" Set-Content -Path $reg_file_out -Value $content -Encoding Ascii",
" }",
"}"
],
"bin": [
"bin\\sh.exe",
"bin\\bash.exe",
"cmd\\git.exe",
"cmd\\gitk.exe",
"cmd\\git-gui.exe",
"cmd\\scalar.exe",
"usr\\bin\\tig.exe",
"git-bash.exe"
],
"shortcuts": [
[
"git-bash.exe",
"Git Bash",
"--cd-to-home"
],
[
"cmd\\git-gui.exe",
"Git GUI"
]
],
"env_set": {
"GIT_INSTALL_ROOT": "$dir"
},
"checkver": {
"url": "https://api.github.com/repositories/333896603/releases/latest",
"jsonpath": "$..browser_download_url",
"regex": "download/v(?<tag>[\\d.]+windows\\.\\d)/PortableGit-([\\d.]+)-arm64"
},
"autoupdate": {
"architecture": {
"arm64": {
"url": "https://github.com/dennisameling/git/releases/download/v$matchTag/PortableGit-$version-arm64.7z.exe#/dl.7z"
},
},
"hash": {
"url": "https://github.com/git-for-windows/git/releases/tag/v$matchTag",
"regex": "(?s)$basename.*?$sha256"
}
}
}
10 changes: 5 additions & 5 deletions bucket/sysinternals-aarch64.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2024.7.23",
"version": "2024.12.16",
"description": "A set of utilities to manage, diagnose, troubleshoot, and monitor a Windows environment.",
"homepage": "https://docs.microsoft.com/en-us/sysinternals/",
"license": {
Expand All @@ -8,10 +8,10 @@
},
"checkver": {
"script": [
"$resp = Invoke-WebRequest 'https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?board=Sysinternals-Blog'",
"$resp.Content -match '(\\d{1,2}) (\\w{3}) (\\d{4})'",
"$year = $Matches[3]; $month = $Matches[2]; $day = $Matches[1] ",
"$months = @{'Jan'='1';'Feb'='2';'Mar'='3';'Apr'='4';'May'='5';'Jun'='6';'Jul'='7';'Aug'='8';'Sep'='9';'Oct'='10';'Nov'='11';'Dec'='12'}",
"$resp = Invoke-WebRequest 'https://learn.microsoft.com/en-us/sysinternals/downloads/sysinternals-suite'",
"$resp.Content -match 'Updated: (\\w+) (\\d{1,2}), (\\d{4})</p>'",
"$year = $Matches[3]; $month = $Matches[1]; $day = $Matches[2] ",
"$months = @{'January'='1';'February'='2';'March'='3';'April'='4';'May'='5';'June'='6';'Jule'='7';'August'='8';'September'='9';'October'='10';'November'='11';'December'='12'}",
"$month = $months.$month",
"Write-Output $year $month $day"
],
Expand Down