fix(flatpak): bundle git so hermit can clone its package registry (#10511)

This commit is contained in:
Abhijay Jain
2026-07-18 01:55:05 +05:30
committed by GitHub
parent c55b5fb62f
commit a3b92a2f1d
+10
View File
@@ -143,6 +143,15 @@ module.exports = {
'ln -s $(find /usr/lib -name "libbz2.so.1" | head -n 1) /app/lib/libbz2.so.1.0',
],
},
{
name: 'git',
buildsystem: 'simple',
'build-commands': [
'mkdir -p /app/bin /app/libexec/git-core',
'cp /usr/bin/git /app/bin/git',
'cp /usr/libexec/git-core/git-remote-https /app/libexec/git-core/git-remote-https 2>/dev/null || true',
],
},
],
finishArgs: [
'--share=ipc',
@@ -156,6 +165,7 @@ module.exports = {
'--socket=system-bus',
// This ensures the app looks in our shim folder first
'--env=LD_LIBRARY_PATH=/app/lib',
'--env=GIT_EXEC_PATH=/app/libexec/git-core',
],
},
},