All the stremio official add-ons, in AddonCollection.load()
format
The index.js
file is meant to be generated from the output of AddonCollection.save()
To change what's contained in this module, you have to change scripts/gen.js
for version 1 and official-addons-v2/scripts/build.js
for version 2.
Besides changing this module, you have to update all it's dependant packages, most notably:
-
stremio-api-workers: this is the most important one, since it will affect
addonsofficialcollection.json
and therefore the addonCollection API, and therefore all running apps should respect it (stremio-official-addons@1
package) -
stremio: the desktop/web app (
stremio-official-addons@1
package) -
stremio-rn: the react native app (
stremio-official-addons@1
package) -
stremio-web: the new desktop/web app (
@stremio/stremio-official-addons@2
package) -
stremio-core: the core for most applications including web, android tv, android, etc. (
stremio-official-addons@2
crate) -
stremio-api-legacy-shim: this one does not depend on this module, and does not include it, but it contains a separate list of official add-ons in
addons/official.js
that is respected by all apps using the legacy endpoints ARCHIVED
To release a new version for v1 npm package you need to:
- Bump
package.json
1.1. Make sure to update package-lock.json
:
npm i --package-lock-only
- Make a new tag
git tag -a v1.XX.XX -m "Tag for releases v1.XX.XX"
- Push it to the repo
git push -u origin v1.XX.XX
-
Create a new release using the version as a title, e.g.
v1.5.6
and automatically generate changes from previous tag. -
The
publish
workflow will run thev1
job and will:- Build
stremio-official-addons@1
package - Publish the package on npm
- Build
To release a new version for v2 npm and crate packages you need to:
1.1. Make sure to update package-lock.json
:
npm i --package-lock-only
2.1. Make sure to update Cargo.lock
:
cargo update -p stremio-official-addons
- Make a new tag
git tag -a v2.XX.XX -m "Tag for releases v2.XX.XX"
- Push it to the repo
git push -u origin v2.XX.XX
-
Create a new release using the version as a title, e.g.
v2.0.12
and automatically generate changes from previous tag. -
The
publish
workflow will run thev2
job and will:- Build
@stremio/stremio-official-addons@2
package - Publish the package on npm
- Publish the crate on crates.io
- Build
Both packages are licensed under the MIT license:
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the project by you, shall be licensed as MIT, without any additional terms or conditions.