Skip to content

Commit

Permalink
add missing files to the install dir
Browse files Browse the repository at this point in the history
We need
- src/layer/tile/CanvasTileUtils.js (included from TileWorker.js)
and
- src/layer/tile/TileWorker.js (because we have
  `this._worker = new Worker('src/layer/tile/TileWorker.js');`
  in bundle.js

These files have to be present separately in install dir.
Whether it's a permanent solution, or a temporary hack, I don't know.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9d0d21463be0cef10ff95a0cd80226a5fc29fa75
  • Loading branch information
timar committed Dec 18, 2024
1 parent 3109c22 commit 2d17ebd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions browser/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,9 @@ install-data-hook:
--exclude='multidocs.html' \
--exclude='tsconfig.tsbuildinfo' \
dist $(DESTDIR)$(pkgdatadir)/browser/;
mkdir -p $(DESTDIR)$(pkgdatadir)/browser/dist/src/layer/tile;
cp -a dist/src/layer/tile/CanvasTileUtils.js $(DESTDIR)$(pkgdatadir)/browser/dist/src/layer/tile/CanvasTileUtils.js;
cp -a dist/src/layer/tile/TileWorker.js $(DESTDIR)$(pkgdatadir)/browser/dist/src/layer/tile/TileWorker.js;
if ENABLE_WASM
find $(DESTDIR)$(pkgdatadir)/browser/dist -type f ! -iname "*.png" -exec brotli --force {} \;
endif
Expand Down

0 comments on commit 2d17ebd

Please sign in to comment.