bin command

This commit is contained in:
Yuri Kuznetsov
2021-08-14 15:47:52 +03:00
parent ad54fa2ace
commit 152a5b5a7b
2 changed files with 15 additions and 1 deletions

View File

@@ -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',
]);

4
bin/command Normal file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env php
<?php
include __DIR__ . "/../command.php";