pulsar-edit / pulsar

A Community-led Hyper-Hackable Text Editor
https://pulsar-edit.dev
Other
3.24k stars 137 forks source link

[pulsar-next] Ensure the canary release channel's `pulsar` and `ppm` always work correctly #1103

Open savetheclocktower opened 6 days ago

savetheclocktower commented 6 days ago

The “canary” channel — which I sometimes call “PulsarNext” because I can't decide on a name — is something we'll have to do for a while so that people can run the latest-Electron version alongside the regular Pulsar version. This roughly corresponds to Atom's concept of a separate “release channel”; Atom had beta and nightly release channels.

To make this possible, yarn dist --next (the --next flag is new) will tell the repo to build a different channel of Pulsar — complete with a different name, a different storage path (for IndexedDB and other data), and a different ATOM_HOME (since two versions of Pulsar with different underlying Electron versions shouldn't share ~/.pulsar). The pulsar and ppm executables should have different names — e.g., pulsar-next and ppm-next.

Perhaps most challenging is the fact that ppm-next will need to point to the PulsarNext app's ATOM_HOME. For instance, ppm-next should not list the packages that are installed into ~/.pulsar; it should default to listing the packages installed into ~/.pulsar-next.

Requirements:

savetheclocktower commented 5 days ago

This is almost 100% done:

Things left to solve: