'how to build atom on a disconnected redhat linux 7.7 system

I am running redhat 7.7 64 bit. I have node 12.16.3 installed. The machine I am building on is not connected to the internet and can not be for security reasons. I get the following error when I run script/build in the unzipped atom directory. It looks to me like it is trying to reach out for something from github. Anyway to build this with out a network connection?

jgaer@ljgaer2_~/atom-master: script/build

fatal: not a git repository (or any parent up to mount point /home) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

/home/jgaer/atom-master/script/lib/spawn-sync.js:17
 `Command ${result.args.join(' ')} exited with code "${result.status}"`  ^

TypeError: Cannot read property 'join' of undefined  at module.exports (/home/jgaer/atom-master/script/lib/spawn-sync.js:17:30)
 at computeAppVersion (/home/jgaer/atom-master/script/config.js:95:20)
 at Object.<anonymous> (/home/jgaer/atom-master/script/config.js:24:28)
 at Module._compile (internal/modules/cjs/loader.js:1133:30)
 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
 at Module.load (internal/modules/cjs/loader.js:977:32)
 at Function.Module._load (internal/modules/cjs/loader.js:877:14)
 at Module.require (internal/modules/cjs/loader.js:1019:19)
 at require (internal/modules/cjs/helpers.js:77:18)
 at Object.<anonymous> (/home/jgaer/atom-master/script/bootstrap:6:16)


Solution 1:[1]

Use Git bash to do this, it worked in my case at least.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Vanshajpoonia