Web app: choose the release, the release candidate or the edge build (#11419)
The web app is now offered at /app/ (latest release), /app-rc/ (newest release candidate) and /app-edge/ (current main), each with its own browser storage. /app/ is built from the latest release's web zip instead of main.
This commit is contained in:
+2
-1
@@ -29,4 +29,5 @@ done < <(find . -name '*.html' | sort)
|
||||
for u in "${urls[@]}"; do echo " <url><loc>$u</loc></url>"; done
|
||||
echo '</urlset>'
|
||||
} > sitemap.xml
|
||||
printf 'User-agent: *\nAllow: /\n\nSitemap: %s/sitemap.xml\n' "$base" > robots.txt
|
||||
# The release candidate and edge web apps can break: keep them out of search results.
|
||||
printf 'User-agent: *\nAllow: /\nDisallow: /app-rc/\nDisallow: /app-edge/\n\nSitemap: %s/sitemap.xml\n' "$base" > robots.txt
|
||||
|
||||
@@ -110,6 +110,15 @@ The same app runs in the browser: [open SolidCraft on the web](../app/) (`?sampl
|
||||
part, `?webgl` forces WebGL2 where WebGPU is missing or misbehaves; the browser remembers it until
|
||||
`?webgpu`, and an app installed from Chrome or Edge starts with it too). Designs are saved in the
|
||||
browser's private file storage, which needs HTTPS or localhost.
|
||||
|
||||
The web app at `/app/` is always the latest release. Two more builds are there to try early:
|
||||
the [release candidate](../app-rc/) (the newest `-rc` pre-release; a page saying so appears
|
||||
until the first one is out) and the [edge build](../app-edge/) (the current `main`, rebuilt on
|
||||
every change). **Both can break, and a design saved in them may not open in the release.** Each
|
||||
keeps its designs, settings and recovery copies apart from the release's, so trying one never
|
||||
changes what the release sees, and nothing is copied between them: to move a design, save it to
|
||||
a file in one and open the file in the other. Search engines are told to skip both.
|
||||
|
||||
Planned worker and tiered-storage integration is
|
||||
described in [web-runtime.md](https://github.com/tangency-labs/solidcraft/blob/main/docs/web-runtime.md)
|
||||
(design; not yet wired in the shipped wasm build).
|
||||
|
||||
+7
-1
@@ -13,7 +13,11 @@ Every platform and package. The links point at the latest release.
|
||||
With Snap: `sudo snap install solidcraft` ([Snap Store][snap-store], or the [.snap file][linux-snap]).
|
||||
For ARM64: [AppImage][linux-arm64-appimage], [.deb][linux-arm64-deb], [.rpm][linux-arm64-rpm].
|
||||
On Arch Linux: `sudo pacman -U` the [package][linux-arch] (ARM64: [package][linux-arm64-arch]).
|
||||
- **Web:** [try it in your browser][web-app], no install.
|
||||
- **Web:** [try it in your browser][web-app], no install. This is the latest release. To try
|
||||
what is coming, there are two more builds: the [release candidate][web-rc] (the newest
|
||||
`-rc` pre-release) and the [edge build][web-edge] (the current `main`, rebuilt on every
|
||||
change). Both can break, and a design saved in them may not open in the release, so keep a copy
|
||||
of anything you care about. Each keeps its own designs and settings, apart from the release's.
|
||||
|
||||
|
||||
## Code signing
|
||||
@@ -51,3 +55,5 @@ Install details, upgrading from earlier builds and building from source are in
|
||||
[linux-arm64-arch]: https://github.com/tangency-labs/solidcraft/releases/latest/download/solidcraft-linux-aarch64.pkg.tar.zst
|
||||
[snap-store]: https://snapcraft.io/solidcraft
|
||||
[web-app]: https://solidcraft.io/app
|
||||
[web-rc]: https://docs.solidcraft.io/app-rc/
|
||||
[web-edge]: https://docs.solidcraft.io/app-edge/
|
||||
@@ -33,6 +33,15 @@ service worker after the code that registered it is gone, so to switch it off de
|
||||
`apps/solidcraft-web/sw.js` unbuilt (as `trunk serve` builds do): it deletes what it kept and
|
||||
unregisters. A site without `build.json` is also safe: launches then go to the network.
|
||||
|
||||
The site serves the web app three ways (`packaging/web-channels.sh`, run by `pages.yml`):
|
||||
`/app/` is the web zip attached to the latest release that is not a pre-release, `/app-rc/` the
|
||||
zip of the newest published `v*-rc.N` pre-release (a page saying there is none, when it is not
|
||||
newer than the release), and `/app-edge/` the build of `main`. Publishing a release or
|
||||
pre-release deploys the site again through `flatpak-pages.yml`. The directories are separate
|
||||
because a service worker controls everything beneath its own, and each pre-release channel keeps
|
||||
its browser storage under its own names (`apps/solidcraft-web/src/channel.rs`), so a design saved
|
||||
in one can't reach another. Nightly tags (`vX.Y.Z-nightly...`) are not release candidates.
|
||||
|
||||
## Nightly prereleases
|
||||
|
||||
`release.yml` also runs at midnight in `America/New_York` (Eastern time, following daylight
|
||||
|
||||
Reference in New Issue
Block a user