mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-25 00:19:11 -05:00
Mac binary zipped and installed successfully
This commit is contained in:
@@ -121,9 +121,9 @@ deploy = {
|
||||
options = @parseOptions(process.argv)
|
||||
askMissingOptions(['platform'])(options)
|
||||
.then (options) ->
|
||||
buildDir = meta.buildDir(options.platform)
|
||||
zipDir = meta.zipDir(options.platform)
|
||||
dest = path.resolve(zippedFilename(options.platform))
|
||||
zip.ditto(buildDir, dest)
|
||||
zip.ditto(zipDir, dest)
|
||||
|
||||
upload: ->
|
||||
console.log('#upload')
|
||||
|
||||
@@ -12,6 +12,14 @@ buildDir = (platform, args...) ->
|
||||
distDir = (platform, args...) ->
|
||||
path.resolve("dist", platform, args...)
|
||||
|
||||
## returns folder to zip before uploading
|
||||
zipDir = (platform) ->
|
||||
switch platform
|
||||
when "darwin"
|
||||
buildDir(platform, "Cypress.app")
|
||||
when "linux"
|
||||
buildDir(platform, "Cypress")
|
||||
|
||||
## returns a path into the /build/*/app directory
|
||||
## specific to each platform
|
||||
buildAppDir = (platform, args...) ->
|
||||
@@ -24,8 +32,7 @@ buildAppDir = (platform, args...) ->
|
||||
module.exports = {
|
||||
buildDir
|
||||
distDir
|
||||
zipDir
|
||||
buildAppDir
|
||||
# distDir: path.join(process.cwd(), "dist")
|
||||
# buildDir: path.join(process.cwd(), "build")
|
||||
cacheDir: path.join(process.cwd(), "cache")
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ macZip = (src, dest) ->
|
||||
# foo/
|
||||
# ...
|
||||
zip = "ditto -c -k --sequesterRsrc --keepParent #{src} #{dest}"
|
||||
console.log(zip)
|
||||
cp.exec zip, {}, (err, stdout, stderr) ->
|
||||
return reject(err) if err
|
||||
|
||||
|
||||
Reference in New Issue
Block a user