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
+11 -1
View File
@@ -159,7 +159,7 @@ module.exports = grunt => {
'img/**', 'img/**',
'css/**', 'css/**',
'sounds/**', 'sounds/**',
'custom/**' 'custom/**',
], ],
dest: 'build/tmp/client', dest: 'build/tmp/client',
}, },
@@ -184,6 +184,7 @@ module.exports = grunt => {
'html/**', 'html/**',
'public/**', 'public/**',
'install/**', 'install/**',
'bin/**',
'bootstrap.php', 'bootstrap.php',
'cron.php', 'cron.php',
'daemon.php', 'daemon.php',
@@ -254,6 +255,14 @@ module.exports = grunt => {
'build/EspoCRM-<%= pkg.version %>/application/Espo/Modules', 'build/EspoCRM-<%= pkg.version %>/application/Espo/Modules',
] ]
}, },
executable: {
options: {
mode: '754'
},
src: [
'build/EspoCRM-<%= pkg.version %>/bin/*',
],
},
}, },
replace: { replace: {
@@ -387,6 +396,7 @@ module.exports = grunt => {
'chmod:php', 'chmod:php',
'chmod:folders', 'chmod:folders',
'chmod:foldersWritable', 'chmod:foldersWritable',
'chmod:executable',
'clean:final', 'clean:final',
]); ]);
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env php
<?php
include __DIR__ . "/../command.php";