mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-17 12:41:08 -06:00
17 lines
422 B
CoffeeScript
17 lines
422 B
CoffeeScript
cp = require("child_process")
|
|
Promise = require("bluebird")
|
|
|
|
module.exports = {
|
|
ditto: (platform) ->
|
|
platform.log("#zip")
|
|
|
|
src = platform.buildPathToApp()
|
|
dest = platform.buildPathToZip()
|
|
|
|
new Promise (resolve, reject) =>
|
|
zip = "ditto -c -k --sequesterRsrc --keepParent #{src} #{dest}"
|
|
cp.exec zip, {}, (err, stdout, stderr) ->
|
|
return reject(err) if err
|
|
|
|
resolve(dest)
|
|
} |