Add mandatory wasm file to zip file as well

This commit is contained in:
Miodrag Milanovic 2020-03-12 11:17:15 +01:00
parent d38098e5fa
commit 82ad422b4e
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -21,6 +21,7 @@ __pycache__
/yosys /yosys
/yosys.exe /yosys.exe
/yosys.js /yosys.js
/yosys.wasm
/yosys-abc /yosys-abc
/yosys-abc.exe /yosys-abc.exe
/yosys-config /yosys-config

View File

@ -257,10 +257,10 @@ viz.js:
wget -O viz.js.part https://github.com/mdaines/viz.js/releases/download/0.0.3/viz.js wget -O viz.js.part https://github.com/mdaines/viz.js/releases/download/0.0.3/viz.js
mv viz.js.part viz.js mv viz.js.part viz.js
yosysjs-$(YOSYS_VER).zip: yosys.js viz.js misc/yosysjs/* yosysjs-$(YOSYS_VER).zip: yosys.js yosys.wasm viz.js misc/yosysjs/*
rm -rf yosysjs-$(YOSYS_VER) yosysjs-$(YOSYS_VER).zip rm -rf yosysjs-$(YOSYS_VER) yosysjs-$(YOSYS_VER).zip
mkdir -p yosysjs-$(YOSYS_VER) mkdir -p yosysjs-$(YOSYS_VER)
cp viz.js misc/yosysjs/* yosys.js yosysjs-$(YOSYS_VER)/ cp viz.js misc/yosysjs/* yosys.js yosys.wasm yosysjs-$(YOSYS_VER)/
zip -r yosysjs-$(YOSYS_VER).zip yosysjs-$(YOSYS_VER) zip -r yosysjs-$(YOSYS_VER).zip yosysjs-$(YOSYS_VER)
yosys.html: misc/yosys.html yosys.html: misc/yosys.html