Skip to content

Commit

Permalink
[build] only pack code and server binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
akosyakov committed Sep 23, 2021
1 parent 4712bd4 commit 5c8a1f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/gulpfile.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,10 @@ function defineTasks(options) {
const nodeStream = gulp.src([nodePath], { base: path.dirname(nodePath) });

const resourcesBase = path.join(root, 'resources/' + qualifier);
const binStream = gulp.src([path.join(resourcesBase, '**/*.' + (process.platform === 'win32' ? 'cmd' : 'sh'))], { base: resourcesBase })
const binStream = gulp.src([
path.join(resourcesBase, 'bin/code.' + (process.platform === 'win32' ? 'cmd' : 'sh')),
path.join(resourcesBase, 'server.' + (process.platform === 'win32' ? 'cmd' : 'sh'))
], { base: resourcesBase })
.pipe(util.setExecutableBit(['**/*.sh']))
.pipe(rename(path => {
if (path.basename === 'code' && path.extname === '.sh') {
Expand Down

0 comments on commit 5c8a1f3

Please sign in to comment.