Remove script/copy-info-plist

Perform the copy in Gruntfile.coffee instead of a script
This commit is contained in:
Kevin Sawicki 2013-06-21 09:30:47 -07:00
parent 3938d143a1
commit b562b3cf72
2 changed files with 6 additions and 14 deletions

View File

@ -151,9 +151,12 @@ module.exports = (grunt) ->
grunt.task.run('compile', 'copy-info-plist')
grunt.registerTask 'copy-info-plist', 'Copy plist', ->
done = @async()
spawn cmd: 'script/copy-info-plist', args: [BUILD_DIR], (error, result, code) ->
done(error)
plistPath = path.join(CONTENTS_DIR, 'Info.plist')
helperPlistPath = path.join(CONTENTS_DIR, 'Frameworks/Atom Helper.app/Contents/Info.plist')
# Copy custom plist files
cp 'resources/mac/atom-Info.plist', plistPath
cp 'resources/mac/helper-Info.plist', helperPlistPath
grunt.registerTask 'set-development-version', "Sets version to current sha", ->
done = @async()

View File

@ -1,11 +0,0 @@
#!/bin/sh
set -e
BUILT_PRODUCTS_DIR=$1
PLIST_PATH="$BUILT_PRODUCTS_DIR/Atom.app/Contents/Info.plist"
HELPER_PLIST_PATH="$BUILT_PRODUCTS_DIR/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/Info.plist"
# Copy custom plist files
cp resources/mac/atom-Info.plist "$PLIST_PATH"
cp resources/mac/helper-Info.plist "$HELPER_PLIST_PATH"