Skip to content

Commit

Permalink
dist: Add a packaging script
Browse files Browse the repository at this point in the history
  • Loading branch information
cpitclaudel committed Apr 15, 2018
1 parent b08f5cb commit d1f9b10
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
/provision.log
/html/z3w.wasm
/html/z3w.js
/dist/
/z3.wasm.tar.gz
10 changes: 10 additions & 0 deletions README.dist.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
=============
``z3.wasm``
=============

This tarball contains a pre-build version of ``z3.wasm``. Consult `the original README <https://github.com/cpitclaudel/z3.wasm>`_ for details.

Demo
====

Use ``python3 -m http.server`` to start a web server in the current folder, then visit http://localhost:8000/z3.html to check whether everything works.
7 changes: 7 additions & 0 deletions dist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
rm -rf dist/ html/z3*w.*
mkdir dist
cp html/* dist/
cp README.dist.rst dist/README.rst
cp z3-wasm/z3/z3smt2w.js z3-wasm/z3/z3smt2w.wasm z3-wasm/z3/z3w.js z3-wasm/z3/z3w.wasm dist/
tar --create --gzip --file z3.wasm.tar.gz --transform 's|^dist|z3.wasm|' dist

0 comments on commit d1f9b10

Please sign in to comment.