Skip to content

Commit

Permalink
Fixing Makefile to handle more granular releases
Browse files Browse the repository at this point in the history
  • Loading branch information
mihok committed Jun 19, 2017
1 parent 3eb682a commit c3aa467
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 11 deletions.
52 changes: 41 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,53 @@ build:
$(NPM_CMD) run build


compile: build
@echo
@# SUPER HACKY
mkdir -p $(ASSETS)/css
sed 's/\.\.\/resources/\.\./g' <node_modules/@blueprintjs/core/dist/blueprint.css >assets/css/blueprint.css
sed 's/\.\.\/resources/\.\./g' <node_modules/@blueprintjs/core/dist/blueprint.css.map >assets/css/blueprint.css.map
mkdir -p $(ASSETS)/icons
cp -r node_modules/@blueprintjs/core/resources/icons/*.{eot,ttf,woff} $(ASSETS)/icons/

$(NPM_CMD) run compile -- \
compile-linux:
@echo "\nLinux\n"

$(NPM_CMD) run compile:linux -- \
--ignore=README.md \
--ignore=webpack.config.js \
--ignore=Makefile \
--ignore=yarn.lock \
--ignore=.gitignore \
--ignore=src \
--ignore=node_modules
--ignore=node_modules \
--win32metadata.CompanyName='Minimal Chat' \
--win32metadata.ProductName=Operator \
--appname=Operator \
--app-copyright=BSD-3

compile-win:
@echo "\nWindows\n"
$(NPM_CMD) run compile:win -- \
--ignore=README.md \
--ignore=webpack.config.js \
--ignore=Makefile \
--ignore=yarn.lock \
--ignore=.gitignore \
--ignore=src \
--ignore=node_modules \
--win32metadata.CompanyName='Minimal Chat' \
--win32metadata.ProductName=Operator \
--appname=Operator \
--app-copyright=BSD-3

compile-osx:
@echo "\nOSX\n"
$(NPM_CMD) run compile:osx -- \
--ignore=README.md \
--ignore=webpack.config.js \
--ignore=Makefile \
--ignore=yarn.lock \
--ignore=.gitignore \
--ignore=src \
--ignore=node_modules \
--win32metadata.CompanyName='Minimal Chat' \
--win32metadata.ProductName=Operator \
--appname=Operator \
--app-copyright=BSD-3

compile: build compile-linux compile-win compile-osx

distribute:
@echo
Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"build": "webpack --progress --colors",
"build:watch": "webpack --progress --colors --watch",
"compile": "electron-packager . --all --out=dist/",
"compile:win": "electron-packager . Operator --platform=win32 --arch=all --out=dist/",
"compile:osx": "electron-packager . Operator --platform=darwin --platform=mas --arch=all --out=dist/",
"compile:linux": "electron-packager . operator --platform=linux --arch=all --out=dist/",
"start": "electron ."
},
"jest": {
Expand Down Expand Up @@ -90,5 +93,9 @@
"react-test-renderer": "^15.4.1",
"style-loader": "^0.13.1",
"webpack": "^2.2.0"
},
"optionalDependencies": {
"bufferutil": "^3.0.1",
"utf-8-validate": "^3.0.2"
}
}
1 change: 1 addition & 0 deletions src/components/InputBar/InputBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class InputBar extends Component {
onChange={this.handleChange}
onKeyDown={this.onKeyPress}
name="chatText"
value={this.state.chatText}
placeholder="Say something meaningful &hellip;"
/>
<Button variant="send" onClick={this.sendChat} >Send</Button>
Expand Down

0 comments on commit c3aa467

Please sign in to comment.