"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/script/postinstall.js" (7 Feb 2017, 355 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 var path = require('path')
    2 var cp = require('child_process')
    3 
    4 var script = path.join(__dirname, 'postinstall')
    5 if (process.platform.indexOf('win') === 0) {
    6   script += '.cmd'
    7 } else {
    8   script += '.sh'
    9 }
   10 var child = cp.spawn(script, [], { stdio: ['pipe', 'pipe', 'pipe'], shell: true })
   11 child.stderr.pipe(process.stderr)
   12 child.stdout.pipe(process.stdout)