Skip to content

Commit 52ecbb8

Browse files
committed
Update packager fix brances
1 parent 9599780 commit 52ecbb8

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

lib/clientData.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
'use strict';
2+
3+
/*
4+
* Loads and caches a client data file. Call loadClientItems(file) or
5+
* createClientItems(obj) to parse and cache client items. Then call
6+
* .clientItemsForStructure(structure) to get client items referenced in the
7+
* structure.
8+
*/
9+
110
const _ = require('lodash');
211
const Promise = require('bluebird');
312
const fs = Promise.promisifyAll(require('fs'));
@@ -19,7 +28,7 @@ const clientItemTypeMap = {
1928
anchors: 'anchors',
2029
pushBraces: 'braces',
2130
braces: 'braces',
22-
sidewalkBrances: 'braces',
31+
sidewalkBraces: 'braces',
2332
crossArms: 'crossArms',
2433
assemblies: 'assemblies'
2534
};

package.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
VERSION=9.2.1
3+
NODE_VERSION=9.2.1
44
MY_PATH=${BASH_SOURCE%/*}
55

66
npm install
@@ -12,6 +12,13 @@ for os in linux macos win; do
1212
for arch in x64 x86; do
1313
echo Building $os-$arch
1414
mkdir -p target/$os/$arch 2> /dev/null
15-
pkg -t node$VERSION-$os-$arch --out-path target/$os/$arch .
15+
pkg -t node$NODE_VERSION-$os-$arch --out-path target/$os/$arch .
16+
17+
if [ $os == 'win' ]; then
18+
cp target/$os/$arch/cee-cli.exe target/$os/$arch/cee-cli-$arch.exe
19+
else
20+
cp target/$os/$arch/cee-cli target/$os/$arch/cee-cli-$os-$arch
21+
fi
22+
1623
done
1724
done

0 commit comments

Comments
 (0)