Skip to content

Commit d679fb1

Browse files
committed
Fix installation from source, which missed wombatSetup.js
1 parent ac1fbd9 commit d679fb1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616

1717
- Add proper typing @overload to `zimscraperlib.image.optimize_xxx` methods (#273)
1818
- Backport wabac.JS change around rewriting: detect when JS is in 'strict' mode and avoid using 'arguments' (#286)
19+
- Fix installation from source, which missed wombatSetup.js (#287)
1920

2021
### Changed
2122

openzim.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,13 @@ execute_after=[
88
action="get_file"
99
source="https://cdn.jsdelivr.net/npm/@webrecorder/wombat@3.10.3/dist/wombat.js"
1010
target_file="wombat.js"
11+
12+
# wombatSetup.js is supposed to be built locally from files in javascript folder.
13+
# Should someone install from Github repo directly, the configuration below ensures that
14+
# wombatSetup.js is downloaded from dev.kiwix.org, where we have the latest version from
15+
# `main` branch. wheel and sdist contains the wombatSetup.js which was built that time
16+
# (reminder: get_file action does not overwrite a file which already exists)
17+
[files.assets.actions."wombatSetup.js"]
18+
action="get_file"
19+
source="https://dev.kiwix.org/zimscraperlib/wombatSetup.js"
20+
target_file="wombatSetup.js"

0 commit comments

Comments
 (0)