Mac binary zipped and installed successfully

This commit is contained in:
Gleb Bahmutov
2017-06-28 11:51:41 -04:00
parent b79405145e
commit 87f839c6cb
3 changed files with 12 additions and 4 deletions
+2 -2
View File
@@ -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')
+9 -2
View File
@@ -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")
}
+1
View File
@@ -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