Releasing LazyMapLayers#
Cut a release#
-
Version. Set the new version in
package.json,package-lock.json,CSXS/manifest.xmlandsrc/host/00-namespace.jsx. The build also writes it intodist/. -
Checks. Run
npm run verify. It includesnpm run check:expressions, which runs every generated expression in an ES3 engine like After Effects' Legacy ExtendScript expression engine. -
Release code inside After Effects. Users get minified code, so run the in-AE tests on it:
node tools/build.mjs --dev --minify npm run ae:spikes -- --only R1,G2,E1,X1,D1,D1L npm run build:dev -
Docs. Update
docs/CHANGELOG.md, the README and the status board indocs/PLAN.md. -
Offline data (DECISIONS D91). Build the pack the zip carries, once per release, after asking Sohan (it downloads about 2.2 GB from Protomaps, Mapterhorn, geoBoundaries and the imagery-1 release):
node --max-old-space-size=8192 tools/build-offline-pack.tsIt writes
.cache/offline/pack(about 1.95 GB) and continues where it stopped if it is run again; delete a part of the pack to build that part fresh (a newer Protomaps build, say). Then, with the pack copied into the user data folder (robocopy .cache\offline\pack %APPDATA%\LazyMapLayers /E), runnpm run ae:spikes -- --only OW1.Then the light pack (DECISIONS D101), cut from the full one on this computer, nothing downloaded:
node --max-old-space-size=4096 tools/build-offline-pack.ts --lightIt writes
.cache/offline/light(about 121 MB: the world to zoom 6, elevation to zoom 5). SD1 renders street detail on demand over it:npm run ae:spikes -- --only SD1(online, about 25 MB, ask first). -
Package. Run
node tools/package-zxp.mjs. It builds into a temporary folder, sodist/is not touched, then signs with a timestamp, verifies, and writes two zips toD:\GitHub\00. Install from here:LazyMapLayers-vX.Y.zipwith the offline data pack streamed in asoffline-data/and the light pack aslight-data/(the installer asks Full, Light or Online), andLazyMapLayers-vX.Y-light.zipwith the light pack alone (Light or Online). It replaces the older LazyMapLayers zips there and prints each SHA-256. It refuses a pack that is incomplete or covers only a test area, and warns when a zip reaches 2 GB, which GitHub does not take as a release asset (1.1.2's full zip was 1.985 GB; the light pack adds 0.121 GB).--no-lightleaves the light pack and its zip out;--no-offlinepackages the panel alone, for a quick test build.- The first time on a machine, run
node tools/package-zxp.mjs --cert, or restore the backed-upSigning key (do not share)folder. Keep the same key for every release. - ZXPSignCmd lives in
tools/vendor/. Get it withnode tools/get-zxpsigncmd.mjs.
- The first time on a machine, run
-
Test the installer on the development PC (below).
-
Publish, only with Sohan's go-ahead:
- Commit and push as Raisul Sohan.
- Create a GitHub release with tag
vX.Y.Zand title "LazyMapLayers X.Y". - Write notes with three sections: Download & install (the full zip, or the light one for a small download), What's new, and the SHA-256 of each zip.
- Attach both zips as release assets.
Test a release on the development PC#
On the development PC, %APPDATA%\Adobe\CEP\extensions\com.sohan.LazyMapLayers is a link to dist/,
and Adobe's PlayerDebugMode is on. The scripts in tools/release-test/ switch the PC to the setup a
user has, then switch it back. Close After Effects before each step.
-
1 Install the release for testing.bat- Saves the current setup (the link and every PlayerDebugMode value) to
%LOCALAPPDATA%\LazyMapLayers release test\state.json. - Unzips the newest full release zip (never the
-lightone) into%TEMP%and opens the folder. - Then double-click Install LazyMapLayers.bat there, as a user would.
- Saves the current setup (the link and every PlayerDebugMode value) to
-
Try the release in After Effects:
- [ ] Window > Extensions > LazyMapLayers opens, and the log says "LazyMapLayers X.Y.Z".
- [ ] The preview map shows the world.
- [ ] World flight sample builds without red lines in the log, and After Effects shows no expression errors. Try it once in a project from File > New > New Project too: with a project template, that project may use the Legacy ExtendScript expression engine.
- [ ] Render finishes, and the comp plays the globe, the flight to Paris, the route and Tokyo.
- [ ] Auto labels with another language, Fly here, and Alt+click all work.
- [ ] The installer asked Full, Light or Online. With Full it said it copied the map data, and
%APPDATA%\LazyMapLayers\offline\world.pmtilesis there. Fly the preview to any country at zoom 8: rivers, roads and borders show with the network cable out. - [ ] Installed again with Light:
offline\world.pmtilesis about 45 MB. Online, fly the preview into a city's streets: they come in a second or two. Render a fly-to into them: the log names no frame without detail. With the network cable out, render it on a second map: the same frames.
-
2 Turn on the signature check.bat(optional but recommended)- Sets PlayerDebugMode to 0, so After Effects checks signatures as on a user's computer.
- Start After Effects: the panel must open, not blank.
- Unsigned panels, such as other development links, do not load during this session.
- If the panel is blank, do not run "Fix a blank panel". Keep the
%TEMP%\CEPHtmlEngine12-*.logfiles for diagnosis.
-
3 Back to development.bat- Removes the release install and links
dist/again. - Puts every PlayerDebugMode value back.
- Deletes the unzipped copy.
- Removes the release install and links
Show test status.bat shows at any time which setup is active. Downloaded regions in
%APPDATA%\LazyMapLayers are never touched by these scripts.
আমি