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

Release 2.5.0 #540

Merged
merged 4 commits into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dugite",
"version": "2.4.0",
"version": "2.5.0",
"description": "Elegant bindings for Git",
"main": "./build/lib/index.js",
"typings": "./build/lib/index.d.ts",
Expand Down
30 changes: 15 additions & 15 deletions script/embedded-git.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"win32-x64": {
"name": "dugite-native-v2.39.2-ddb2ace-windows-x64.tar.gz",
"url": "https://github.com/desktop/dugite-native/releases/download/v2.39.2/dugite-native-v2.39.2-ddb2ace-windows-x64.tar.gz",
"checksum": "7d5a68de79c7ec981366c9543fc2f2c8e5160f8b41b3039767a046fc59e91367"
"name": "dugite-native-v2.39.3-887e871-windows-x64.tar.gz",
"url": "https://github.com/desktop/dugite-native/releases/download/v2.39.3/dugite-native-v2.39.3-887e871-windows-x64.tar.gz",
"checksum": "04fccfb4ed18e72b82bf7a4d5489b97a61d07b027e44ac20a4c00ac8e5c0fac3"
},
"win32-ia32": {
"name": "dugite-native-v2.39.2-ddb2ace-windows-x86.tar.gz",
"url": "https://github.com/desktop/dugite-native/releases/download/v2.39.2/dugite-native-v2.39.2-ddb2ace-windows-x86.tar.gz",
"checksum": "d9b75e5d2cbfc604e96a1b3822ac8b989898af39c9c9ed4bf05355d02f7cc778"
"name": "dugite-native-v2.39.3-887e871-windows-x86.tar.gz",
"url": "https://github.com/desktop/dugite-native/releases/download/v2.39.3/dugite-native-v2.39.3-887e871-windows-x86.tar.gz",
"checksum": "850df5220f87f97653b2fb8efc4318b7c6eb9f4a2b46b6927eb13486838066a5"
},
"darwin-x64": {
"name": "dugite-native-v2.39.2-ddb2ace-macOS-x64.tar.gz",
"url": "https://github.com/desktop/dugite-native/releases/download/v2.39.2/dugite-native-v2.39.2-ddb2ace-macOS-x64.tar.gz",
"checksum": "63861250a026e1b0d7d126375139237c8342b3963b5d73df89912db4cb921d24"
"name": "dugite-native-v2.39.3-887e871-macOS-x64.tar.gz",
"url": "https://github.com/desktop/dugite-native/releases/download/v2.39.3/dugite-native-v2.39.3-887e871-macOS-x64.tar.gz",
"checksum": "7074046490e0788eafd647d79ea1118fd14632ef6008bbbb1183ec6952e18198"
},
"darwin-arm64": {
"name": "dugite-native-v2.39.2-ddb2ace-macOS-arm64.tar.gz",
"url": "https://github.com/desktop/dugite-native/releases/download/v2.39.2/dugite-native-v2.39.2-ddb2ace-macOS-arm64.tar.gz",
"checksum": "09b58004239dad007f7ac53839d8f2ce53b966992fd49244fb163fb98c22c989"
"name": "dugite-native-v2.39.3-887e871-macOS-arm64.tar.gz",
"url": "https://github.com/desktop/dugite-native/releases/download/v2.39.3/dugite-native-v2.39.3-887e871-macOS-arm64.tar.gz",
"checksum": "9c043ae08a739b195a517952dfd53be6fa56c7db26dcb6cab0931f0a7c905b9b"
},
"linux-x64": {
"name": "dugite-native-v2.39.2-ddb2ace-ubuntu.tar.gz",
"url": "https://github.com/desktop/dugite-native/releases/download/v2.39.2/dugite-native-v2.39.2-ddb2ace-ubuntu.tar.gz",
"checksum": "b08c173de92eecf653427810cbc9193efb3b39751690ec21196c79805038e738"
"name": "dugite-native-v2.39.3-887e871-ubuntu.tar.gz",
"url": "https://github.com/desktop/dugite-native/releases/download/v2.39.3/dugite-native-v2.39.3-887e871-ubuntu.tar.gz",
"checksum": "7a6c87e0010896c6580a09a973a3ba895ebbac4f980fbf57502615954e3cd24f"
}
}
31 changes: 2 additions & 29 deletions script/update-embedded-git.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ get(`https://api.github.com/repos/desktop/dugite-native/releases/latest`).then(
'win32-ia32': await findWindows32BitRelease(assets),
'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)
'linux-x64': await findLinux64BitRelease(assets)
}

const fileContents = JSON.stringify(output, null, 2)
Expand Down Expand Up @@ -70,37 +67,13 @@ function findMacOSARM64BitRelease(assets) {
}

function findLinux64BitRelease(assets) {
const asset = assets.find(a => a.name.endsWith('-ubuntu-x64.tar.gz'))
const asset = assets.find(a => a.name.endsWith('-ubuntu.tar.gz'))
if (asset == null) {
throw new Error('Could not find Linux 64-bit archive in latest release')
}
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) {
throw new Error('Could not find Linux 64-bit archive in latest release')
}
return getDetailsForAsset(assets, asset)
}

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

async function getDetailsForAsset(assets, currentAsset) {
const { name } = currentAsset
const url = currentAsset.browser_download_url
Expand Down
4 changes: 2 additions & 2 deletions test/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { GitProcess, IGitResult, GitError } from '../lib'

// NOTE: bump these versions to the latest stable releases
export const gitVersion = '2.39.2'
export const gitForWindowsVersion = '2.39.2.windows.1'
export const gitVersion = '2.39.3'
export const gitForWindowsVersion = '2.39.3.windows.1'
export const gitLfsVersion = '3.3.0'

const temp = require('temp').track()
Expand Down