From d3ee16e05b887849647a7b704c78a6f93e42d8d7 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Tue, 1 Nov 2016 18:58:00 -0300 Subject: [PATCH] Adds uri handler for macOS (Info.plist) --- Gruntfile.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 3c2064c2c..65e831f8f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -224,7 +224,15 @@ module.exports = function(grunt) { buildDir: './webkitbuilds', version: '0.16.0', macIcns: './resources/<%= pkg.name %>/mac/app.icns', - exeIco: './www/img/app/logo.ico' + exeIco: './www/img/app/logo.ico', + macPlist: { + 'CFBundleURLTypes': [ + { + 'CFBundleURLName' : 'URI Handler', + 'CFBundleURLSchemes' : ['bitcoin', '<%= pkg.name %>'] + } + ] + } }, src: ['./package.json', './www/**/*'] }, @@ -254,6 +262,7 @@ module.exports = function(grunt) { grunt.registerTask('translate', ['nggettext_extract']); grunt.registerTask('desktop', ['prod', 'nwjs', 'copy:linux', 'compress:linux']); grunt.registerTask('macos', ['prod', 'nwjs', 'exec:macos']); + grunt.registerTask('macos-debug', ['default', 'nwjs']); grunt.registerTask('chrome', ['exec:chrome']); grunt.registerTask('wp', ['prod', 'exec:wp']); grunt.registerTask('wp-copy', ['default', 'exec:wpcopy']);