{"id":18756443,"url":"https://github.com/libgit2/libgit2sharp.nativebinaries","last_synced_at":"2025-05-15T17:00:17.615Z","repository":{"id":28463595,"uuid":"31979375","full_name":"libgit2/libgit2sharp.nativebinaries","owner":"libgit2","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-20T22:47:49.000Z","size":12322,"stargazers_count":33,"open_issues_count":15,"forks_count":67,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-09T12:19:07.292Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libgit2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-03-10T20:12:24.000Z","updated_at":"2025-04-15T10:22:40.000Z","dependencies_parsed_at":"2023-01-16T23:30:53.056Z","dependency_job_id":"fb9a1dca-fae4-41a2-882f-b89e41338f29","html_url":"https://github.com/libgit2/libgit2sharp.nativebinaries","commit_stats":{"total_commits":161,"total_committers":15,"mean_commits":"10.733333333333333","dds":0.6149068322981366,"last_synced_commit":"827d4bed8ab544ab77ddfb6e253862819bd125e1"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libgit2%2Flibgit2sharp.nativebinaries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libgit2%2Flibgit2sharp.nativebinaries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libgit2%2Flibgit2sharp.nativebinaries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libgit2%2Flibgit2sharp.nativebinaries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libgit2","download_url":"https://codeload.github.com/libgit2/libgit2sharp.nativebinaries/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254384900,"owners_count":22062419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T17:36:38.583Z","updated_at":"2025-05-15T17:00:17.501Z","avatar_url":"https://github.com/libgit2.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LibGit2Sharp.NativeBinaries\n\n**[Libgit2Sharp][lg2s]** is a managed wrapper around **[libgit2][lg2]**, and as\nsuch requires compilation of libgit2 for your platform.\n\nLibGit2Sharp makes this easy by distributing, and leveraging as a dependency,\nthe **[LibGit2Sharp.NativeBinaries][lg2s-nb]** NuGet package.\n\nThis package contains the compiled versions of the libgit2 native library for\nthe following platforms:\n\n - Windows (x86, x64, arm64)\n - macOS (x64, arm64)\n - Linux\n   - glibc: (x64, arm, arm64, ppc64le)\n   - musl: (x64, arm, arm64)\n\n [lg2s-nb]: https://www.nuget.org/packages/LibGit2Sharp.NativeBinaries\n [lg2]: https://libgit2.github.com/\n [lg2s]: http://libgit2sharp.com/\n\n## Script overview\n\nThe following scripts are used to build libgit2 and update this repo.\n\n### build.libgit2.ps1\n\nThis script builds Windows libgit2 binaries. It requires Visual Studio 2019 to run.\n\nTo build x86 binaries:\n\n```\nbuild.libgit2.ps1 -x86\n```\n\nTo build x64 binaries:\n\n```\nbuild.libgit2.ps1 -x64\n```\n\nTo build arm64 binaries:\n\n```\nbuild.libgit2.ps1 -arm64\n```\n\nMultiple architecture parameters can be specified to build multiple binaries with a single execution of the script.\n\nSee the script for additional parameters.\n\n### build.libgit2.sh\n\nThis script builds Linux and macOS binaries. It can be invoked directly, but for Linux binaries, `dockerbuild.sh` should be used instead.\n\n### dockerbuild.sh\n\nThis script will build one of the Dockerfiles in the repo. It chooses which one to run based on the value of the `RID` environment variable. Using docker to build the Linux binaries for the various RIDs ensures that a specific environment and distro is used.\n\n### UpdateLibgit2ToSha.ps1\n\nThis script is used to update the libgit2 submodule and update the references within the project to the correct libgit2 revision. \n\nYou can update to a specific commit:\n\n```\nUpdateLibgit2ToSha.ps1 1a2b3c4\n```\n\nOr you can specify references:\n\n```\nUpdateLibgit2ToSha.ps1 master\n```\n\n## Building the package locally\n\nAfter running the appropriate build script(s) to create binaries, the NuGet package needs to be created.\n\nFirst, to use the same version locally that will be generated via CI, install the [minver-cli](https://www.nuget.org/packages/minver-cli) dotnet tool:\n\n```\ndotnet tool install --global minver-cli\n```\n\nOnce that is installed, running the `minver` command will output a version:\n\n```\nMinVer: Using { Commit: 2453a6d, Tag: '2.0.312', Version: 2.0.312, Height: 3 }.\nMinVer: Calculated version 2.0.313-alpha.0.3.\n2.0.313-alpha.0.3\n```\n\nTo create the package, use the the following command:\n\n```\nnuget.exe Pack nuget.package/NativeBinaries.nuspec -Version \u003cversion\u003e -NoPackageAnalysis\n```\n\nWhere `\u003cversion\u003e` is the version from the MinVer tool or manually chosen version.\n\n\n## Notes on Visual Studio\n\nVisual Studio 2019 is required to build the Windows native binaries, however you\ndo not need to install a *paid* version of Visual Studio. libgit2\ncan be compiled using [Visual Studio Community](https://visualstudio.microsoft.com/vs/community/),\nwhich is free for building open source applications.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibgit2%2Flibgit2sharp.nativebinaries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibgit2%2Flibgit2sharp.nativebinaries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibgit2%2Flibgit2sharp.nativebinaries/lists"}