Cesium can be build as Web extension, for Mozilla Firefox extension (.xpi
) and Chrome/Chromium (.crx
).
Follow all the steps defined in the Development guide.
After that you should be able to start the application using yarn run start
, and to test it.
-
To create an uncompressed extension, use :
cd cesium gulp build gulp webExtCompile --release
The uncompressed web extension will be visible
dist/web/ext
-
To create a portable and compressed ZIP extension :
cd cesium gulp build gulp webExtBuild --release
The web extension is visible at
dist/web/build/cesium-vx.y.z-extension.zip
Remove the option
--release
to skip creation of minified CSS and JS files (and source maps)
-
Make sure you have
web-ext
installed. If not, run:npm install -g web-ext
-
Sign your extension :
# Define your credentials on addons.mozilla.org (your developer account) export AMO_JWT_ISSUER = // username export AMO_JWT_SECRET = // password # Will archive and upload your extension cd cesium web-ext sign "--api-key=${AMO_JWT_ISSUER}" "--api-secret=${AMO_JWT_SECRET}" "--source-dir=dist/web/ext" "--artifacts-dir=${PROJECT_DIR}/dist/web/build" --id=${WEB_EXT_ID} --channel=listed