Closed pdehaan closed 6 years ago
@gregglind , correct me if I am wrong, but I believe one copy (the symlink) is for development, and the other copy is for publishing. There's a naming convention that is adhered to (for tracking in telemetry I assume!), so it's easier to generate this XPI programmatically from details in package.json
than to manually create it later on.
Correct. It makes a real one, and a symlink (that always has a predicatble name 'linked-addon.xpi'. I could change it to be 'copied-addon.xpi'
(this belongs in https://github.com/mozilla/shield-studies-addon-template though :)
Filed upstream as https://github.com/mozilla/shield-studies-addon-template/issues/42 Closing.
Instead of generating a symbolic link to the generated XPI, why not just do a
mv "${XPI_NAME}" addon.xpi
? (Or evenmv *.xpi addon.xpi
, if the /dist/ directory only has one XPI file)https://github.com/gregglind/addon-wr/blob/526535ea04ce79f59a79381ab71b8c9be61b9af8/bin/xpi.sh#L39-L49