mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 15:15:12 +08:00
fix(build-flow): More minor tweaks to applescript runner
This commit is contained in:
parent
0af18c9f2e
commit
faa1dd6190
1 changed files with 13 additions and 12 deletions
|
@ -139,24 +139,25 @@ module.exports = (grunt) ->
|
|||
|
||||
grunt.registerTask "publish-nylas-build", "Publish Nylas build", ->
|
||||
done = @async()
|
||||
dmgPath = path.join(grunt.config.get('atom.buildDir'), dmgName())
|
||||
|
||||
if not fs.existsSync dmgPath
|
||||
grunt.log.error "DMG does not exist at #{dmgPath}. Run script/grunt build first."
|
||||
cp dmgPath, path.join(publishPath(), dmgName())
|
||||
runEmailIntegrationTest().then ->
|
||||
dmgPath = path.join(grunt.config.get('atom.buildDir'), dmgName())
|
||||
|
||||
grunt.log.ok "Copied DMG to #{publishPath()}"
|
||||
if publishPath() is defaultPublishPath()
|
||||
grunt.log.ok "Set the PUBLISH_PATH environment variable to change where Edgehill copies the built file to."
|
||||
if not fs.existsSync dmgPath
|
||||
grunt.log.error "DMG does not exist at #{dmgPath}. Run script/grunt build first."
|
||||
cp dmgPath, path.join(publishPath(), dmgName())
|
||||
|
||||
s3Client = prepareS3()
|
||||
if s3Client
|
||||
runEmailIntegrationTest().then ->
|
||||
grunt.log.ok "Copied DMG to #{publishPath()}"
|
||||
if publishPath() is defaultPublishPath()
|
||||
grunt.log.ok "Set the PUBLISH_PATH environment variable to change where Edgehill copies the built file to."
|
||||
|
||||
s3Client = prepareS3()
|
||||
if s3Client
|
||||
Promise.all([uploadDMGToS3(s3Client), uploadZipToS3(s3Client)])
|
||||
.then ->
|
||||
done()
|
||||
.catch (err) ->
|
||||
grunt.log.error(err)
|
||||
return false
|
||||
else
|
||||
return false
|
||||
else
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue