Skip to content

Commit

Permalink
add linux x86 to update-embedded-git
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Mar 13, 2023
1 parent d090466 commit 130854b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions script/update-embedded-git.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ get(`https://api.github.com/repos/desktop/dugite-native/releases/latest`).then(
'darwin-x64': await findMacOSx64BitRelease(assets),
'darwin-arm64': await findMacOSARM64BitRelease(assets),
'linux-x64': await findLinux64BitRelease(assets),
'linux-x86': await findLinux32BitRelease(assets),
'linux-arm': await findLinuxARM32BitRelease(assets),
'linux-arm64': await findLinuxARM64BitRelease(assets)
}
Expand Down Expand Up @@ -76,6 +77,14 @@ function findLinux64BitRelease(assets) {
return getDetailsForAsset(assets, asset)
}

function findLinux32BitRelease(assets) {
const asset = assets.find(a => a.name.endsWith('-ubuntu-x86.tar.gz'))
if (asset == null) {
throw new Error('Could not find Linux 32-bit archive in latest release')
}
return getDetailsForAsset(assets, asset)
}

function findLinuxARM64BitRelease(assets) {
const asset = assets.find(a => a.name.endsWith('-ubuntu-arm64.tar.gz'))
if (asset == null) {
Expand Down

0 comments on commit 130854b

Please sign in to comment.