Skip to content

Commit

Permalink
updated release target in Makefile to use production build system
Browse files Browse the repository at this point in the history
  • Loading branch information
dktr0 committed Sep 17, 2018
1 parent 4d825b4 commit 4e6dc84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
estuary-client.tgz
closure-compiler.jar
Estuary.db
*.lkshf
Expand Down
25 changes: 9 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ installClient: buildClient
cp -Rf static/* Estuary.jsexe
$(GCC_PREPROCESSOR) Estuary.jsexe/index.html.template -o Estuary.jsexe/index.html

prodInstallClient: prodBuildClient
prodInstallClient: # make prodBuildClient first!
rm -rf ./Estuary.jsexe
cp -Rf $(PRODUCTION_INSTALL_DIR) .
cp -Rf static/* Estuary.jsexe
Expand All @@ -41,32 +41,25 @@ prodInstallClient: prodBuildClient
rm -rf Estuary.jsexe/out.js
rm -rf Estuary.jsexe/all.js
rm -rf Estuary.jsexe/out.stats
rm -rf Estuary.jsexe/index.html.template
rm -rf Estuary.jsexe/all.min.js.gz

installServer: buildServer
cp $$(stack path --local-install-root --stack-yaml=server.yaml)/bin/EstuaryServer ./EstuaryServer

rggtrn: installClient installServer
EstuaryServer/EstuaryServer rggtrn

openClient:
cp -Rf $$(stack path --local-install-root --stack-yaml=client.yaml)/bin/Estuary.jsexe .
cp static/index.html Estuary.jsexe
cp static/style.css Estuary.jsexe
openClient: installClient
open Estuary.jsexe/index.html

zipClient:
prodReleaseClient: # make prodInstallClient first!
rm -rf temp
mkdir temp
cp package.json temp
cp estuary.js temp
cp evalClient.js temp
cp -Rf $$(stack path --local-install-root --stack-yaml=client.yaml)/bin/Estuary.jsexe temp
cp static/index.html temp/Estuary.jsexe
cp static/style.css temp/Estuary.jsexe
cp static/EstuaryProtocol.js temp/Estuary.jsexe
tar czf estuary-build.tgz -C temp .
rm -rf temp
cp -Rf Estuary.jsexe temp
rm -rf temp/Estuary.jsexe/Dirt
tar czf estuary-client.tgz -C temp .
# rm -rf temp

zipClientWithWebDirt:
rm -rf temp
Expand Down

0 comments on commit 4e6dc84

Please sign in to comment.