diff --git a/Gruntfile.js b/Gruntfile.js index 570ea7a9fc..c8746c0b99 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -159,7 +159,7 @@ module.exports = grunt => { 'img/**', 'css/**', 'sounds/**', - 'custom/**' + 'custom/**', ], dest: 'build/tmp/client', }, @@ -184,6 +184,7 @@ module.exports = grunt => { 'html/**', 'public/**', 'install/**', + 'bin/**', 'bootstrap.php', 'cron.php', 'daemon.php', @@ -254,6 +255,14 @@ module.exports = grunt => { 'build/EspoCRM-<%= pkg.version %>/application/Espo/Modules', ] }, + executable: { + options: { + mode: '754' + }, + src: [ + 'build/EspoCRM-<%= pkg.version %>/bin/*', + ], + }, }, replace: { @@ -387,6 +396,7 @@ module.exports = grunt => { 'chmod:php', 'chmod:folders', 'chmod:foldersWritable', + 'chmod:executable', 'clean:final', ]); diff --git a/bin/command b/bin/command new file mode 100644 index 0000000000..dfddf93fe4 --- /dev/null +++ b/bin/command @@ -0,0 +1,4 @@ +#!/usr/bin/env php +