Skip to content
This repository has been archived by the owner on Feb 14, 2018. It is now read-only.

Commit

Permalink
Try and address dist issues
Browse files Browse the repository at this point in the history
- Update to Atom-Shell 0.22.2
- Remove codesign
  • Loading branch information
gmr committed Mar 24, 2015
1 parent 29acad9 commit c031a06
Show file tree
Hide file tree
Showing 5 changed files with 7,722 additions and 26 deletions.
14 changes: 4 additions & 10 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ gruntFunction = (grunt) ->

clean:
app: appDir
build: './build'
css: "#{resourcesDir}/*.css"
fonts: "#{appDir}/static/fonts"
icon: "#{resourcesDir}/*.icns"
Expand Down Expand Up @@ -71,7 +72,7 @@ gruntFunction = (grunt) ->
]

'build-atom-shell':
tag: 'v0.21.2'
tag: 'v0.22.2'
targetDir: './binaries'
buildDir: './build',
projectName: 'vessel'
Expand All @@ -86,14 +87,8 @@ gruntFunction = (grunt) ->
'resources/vessel.css': 'src/less/bootstrap.less'

shell:
prep:
command: 'scripts/prep.sh'
options:
stdout: true
stderr: true
failOnError: true
dist:
command: "scripts/dist.sh <%= pkg.version %>"
command: "./scripts/dist.sh <%= pkg.version %>"
options:
stdout: true
stderr: true
Expand Down Expand Up @@ -154,10 +149,9 @@ gruntFunction = (grunt) ->
grunt.loadNpmTasks 'grunt-template'

grunt.registerTask 'default', ['compile']
grunt.registerTask 'setup', ['checkDependencies', 'devUpdate', 'build-atom-shell', 'shell:prep']
grunt.registerTask 'setup', ['checkDependencies', 'devUpdate', 'clean:dist', 'build-atom-shell']
grunt.registerTask 'lint', ['coffeelint:app']
grunt.registerTask 'compile', ['lint', 'coffee', 'less', 'template', 'copy']
grunt.registerTask 'build', ['setup', 'compile', 'shell:dist']
grunt.registerTask 'dist', ['compile', 'shell:dist']
grunt.registerTask 'run', ['shell:run']

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vessel",
"productName": "Vessel",
"version": "0.3.1",
"version": "0.3.2",
"description": "Docker Based Development Workflow Management",
"author": "Gavin M. Roy",
"license": "BSD",
Expand Down
7,711 changes: 7,708 additions & 3 deletions resources/vessel.css

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions scripts/dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@
CPATH=`pwd`
ZIPFILE=../vessel-$1.zip

echo "Removing Atom Icon"
rm binaries/Vessel.app/Contents/Resources/atom.icns

echo "Making app dir"
mkdir -p binaries/Vessel.app/Contents/Resources/app

echo "Installing dependencies"
cd binaries/Vessel.app/Contents/Resources/app
npm install --production -q . 1> /dev/null 2> /dev/null

echo "Codesign"
cd $CPATH/binaries
codesign --deep --force --verbose --sign '3rd Party Mac Developer Application: AWeber Systems' Vessel.app
#echo "Codesign"
#cd $CPATH/binaries
#codesign --deep --force --verbose --sign '3rd Party Mac Developer Application: AWeber Systems' Vessel.app

cd $CPATH/binaries
if [ -e "$ZIPFILE" ]
Expand Down
9 changes: 0 additions & 9 deletions scripts/prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,3 @@
echo "Removing previous Vessel.app if it exists"
rm -rf binaries
mkdir binaries

echo "Removing Atom Icon"
rm ./binaries/Vessel.app/Contents/Resources/atom.icns

echo "Making app dir"
mkdir -p ./binaries/Vessel.app/Contents/Resources/app

echo "Removing dependency logfile"
rm -f node_modules/moment/sauce_connect.log

0 comments on commit c031a06

Please sign in to comment.