forked from StudioInfinity/dyna3
Write a deployment packaging script
The packaging script and the configuration files around it are based on the ones from the `Vectornaut/dyna3:demo-summer-2025` branch.
This commit is contained in:
parent
a4565281d5
commit
c0294123d8
4 changed files with 37 additions and 0 deletions
16
tools/package-for-deployment.bash
Normal file
16
tools/package-for-deployment.bash
Normal file
|
@ -0,0 +1,16 @@
|
|||
# set paths. this technique for getting the script location comes from
|
||||
# `mklement0` on Stack Overflow
|
||||
#
|
||||
# https://stackoverflow.com/a/24114056
|
||||
#
|
||||
tools=$(dirname -- "$(readlink -f -- "$BASH_SOURCE")")
|
||||
src="$tools/../app-proto/dist"
|
||||
dest="$tools/../deploy/dyna3"
|
||||
|
||||
# remove the old hash-named files
|
||||
[ -e "$dest"/dyna3-*.js ] && rm "$dest"/dyna3-*.js
|
||||
[ -e "$dest"/dyna3-*.wasm ] && rm "$dest"/dyna3-*.wasm
|
||||
[ -e "$dest"/main-*.css ] && rm "$dest"/main-*.css
|
||||
|
||||
# copy the distribution
|
||||
cp -r "$src/." "$dest"
|
Loading…
Add table
Add a link
Reference in a new issue