Skip to content

Commit

Permalink
Finish icons for OSX build script
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJaredWilcurt committed Oct 24, 2017
1 parent 6b69605 commit b933542
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ function updateExe (done) {
exec('chmod +x ' + filePath);
done();
} else if (process.platform === 'darwin') {
// TODO: Copy files from image folder into app contents (.icns)
fs.copySync('./_img/app.icns', './build/' + nwBuildSettings.appName + '/osx64/' + nwBuildSettings.appName + '.app/Contents/Resources/app.icns');
fs.copySync('./_img/document.icns', './build/' + nwBuildSettings.appName + '/osx64/' + nwBuildSettings.appName + '.app/Contents/Resources/document.icns');
done();
} else {
done();
Expand All @@ -155,6 +156,7 @@ function updateExe (done) {
function copyManifest () {
var manifest = fs.readJsonSync('./package.json');
manifest.devDependencies = {};
manifest.name = nwBuildSettings.appName;
var output = JSON.stringify(manifest, null, 2);
var buildPackagePath = './build/' + nwBuildSettings.appName + '/' + platform + '/package.json';
if (process.platform === 'darwin') {
Expand Down

0 comments on commit b933542

Please sign in to comment.