archematics/tools/makePlugin.bash
Glen Whitney 58469f793e feat: Get plugin working with Joyce Geometry Applets as well
Since third-party code may not be loaded from the web in an extension,
  requires bundling many GeoGebra app files into the extension.

  Still to come: control panel for the extension.
2023-10-04 16:39:55 -07:00

13 lines
587 B
Bash

# Takes one parameter, the destination directory
mkdir -p $1/deps/x_ite/assets/images
mkdir -p $1/deps/x_ite/assets/components
cp etc/manifest.json $1
cp etc/deps/x_ite/x_ite.css $1/deps/x_ite
cp etc/deps/x_ite/assets/images/logo.128.png $1/deps/x_ite/assets/images
cp etc/deps/x_ite/x_ite.mjs $1/deps/x_ite
cp etc/deps/x_ite/assets/components/* $1/deps/x_ite/assets/components
cp -r etc/deps/GeoGebra $1/deps
npx rollup public/js/giveAwrl.js --dir extension
npx rollup public/js/adapptlet.js --file extension/adapptlet.js
npx rollup public/js/adapptext.js --file extension/adapptext.js