From 317c85feac6b2282149505d855325834fd89bb8f Mon Sep 17 00:00:00 2001 From: Geoffrey Bonneville Date: Sun, 28 Jul 2024 15:43:08 +0200 Subject: [PATCH] Checkout specific transmission commit sha --- scripts/build-transmission.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/build-transmission.js b/scripts/build-transmission.js index 57d95d3..5f8a420 100755 --- a/scripts/build-transmission.js +++ b/scripts/build-transmission.js @@ -4,6 +4,8 @@ const fs = require('node:fs') const path = require('node:path') const { spawn } = require('node:child_process') +const COMMIT_SHA = 'd7edcb3f37c8a6e12b1b7438585710592953f330' + const NPROCESSORS = os.availableParallelism() const COMMON_CMAKE_FLAGS = [ '-DCMAKE_BUILD_TYPE=Release', @@ -47,11 +49,13 @@ const clone = async () => { await runCommand('git', [ 'clone', '-b', - '4.0.6-pikatorrent', - '--recurse-submodules', + '4.0.x-pikatorrent', + '--single-branch', 'https://github.com/G-Ray/transmission.git', transmissionPath ]) + await runCommand('git', ['checkout', COMMIT_SHA], { cwd: transmissionPath }) + await runCommand('git', ['submodule', 'update', '--init', '--recursive'], { cwd: transmissionPath }) } const cmake = (...args) => runCommand('cmake', ...args)