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)