Skip to content

Commit

Permalink
Update packager fix brances
Browse files Browse the repository at this point in the history
  • Loading branch information
iammer committed Feb 23, 2018
1 parent 9599780 commit 52ecbb8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
11 changes: 10 additions & 1 deletion lib/clientData.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
'use strict';

/*
* Loads and caches a client data file. Call loadClientItems(file) or
* createClientItems(obj) to parse and cache client items. Then call
* .clientItemsForStructure(structure) to get client items referenced in the
* structure.
*/

const _ = require('lodash');
const Promise = require('bluebird');
const fs = Promise.promisifyAll(require('fs'));
Expand All @@ -19,7 +28,7 @@ const clientItemTypeMap = {
anchors: 'anchors',
pushBraces: 'braces',
braces: 'braces',
sidewalkBrances: 'braces',
sidewalkBraces: 'braces',
crossArms: 'crossArms',
assemblies: 'assemblies'
};
Expand Down
11 changes: 9 additions & 2 deletions package.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

VERSION=9.2.1
NODE_VERSION=9.2.1
MY_PATH=${BASH_SOURCE%/*}

npm install
Expand All @@ -12,6 +12,13 @@ for os in linux macos win; do
for arch in x64 x86; do
echo Building $os-$arch
mkdir -p target/$os/$arch 2> /dev/null
pkg -t node$VERSION-$os-$arch --out-path target/$os/$arch .
pkg -t node$NODE_VERSION-$os-$arch --out-path target/$os/$arch .

if [ $os == 'win' ]; then
cp target/$os/$arch/cee-cli.exe target/$os/$arch/cee-cli-$arch.exe
else
cp target/$os/$arch/cee-cli target/$os/$arch/cee-cli-$os-$arch
fi

done
done

0 comments on commit 52ecbb8

Please sign in to comment.