2023-10-05 06:19:11 +00:00
|
|
|
# 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 etc/options.html $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
|
2023-10-08 22:15:11 +00:00
|
|
|
|
|
|
|
geoFiles=($(grep deps/GeoGebra etc/manifest.json))
|
|
|
|
for spec in "${geoFiles[@]}"
|
|
|
|
do
|
|
|
|
quotspec=${spec%,}
|
|
|
|
trimRspec="${quotspec%\"}"
|
|
|
|
trimspec="${trimRspec#\"}"
|
|
|
|
dest=${trimspec%/*}
|
|
|
|
mkdir -p $1/$dest
|
|
|
|
cp -r etc/$trimspec $1/$dest
|
|
|
|
done
|
|
|
|
|
2023-10-10 03:17:19 +00:00
|
|
|
npx rollup public/js/giveAwrl.js --dir $1
|
|
|
|
npx rollup public/js/adapptlet.js --file $1/adapptlet.js
|
|
|
|
npx rollup public/js/adapptext.js --file $1/adapptext.js
|
2024-02-18 09:32:17 +00:00
|
|
|
cp public/js/options.js public/js/adapptypes.js public/js/conway.js $1
|
2024-02-19 08:31:08 +00:00
|
|
|
cp public/js/prism.js $1
|
2023-10-10 03:17:19 +00:00
|
|
|
cp node_modules/webextension-polyfill/dist/browser-polyfill.js $1
|
|
|
|
cp node_modules/@webcomponents/custom-elements/custom-elements.min.js $1
|
|
|
|
zip -r $1 $1
|