Skip to content

Commit

Permalink
Checkout specific transmission commit sha
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ray committed Jul 28, 2024
1 parent 6ab3d3d commit 317c85f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/build-transmission.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 317c85f

Please sign in to comment.