mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-28 00:59:29 +01:00
Preserve texture set hover in the IOR branch merge
This commit is contained in:
commit
2cbbebfd3f
428 files changed
+24761
-4005
No files matched your search
@@ -135,9 +135,20 @@ alone) and `alphaInvert` (swaps paint and no paint inside the stamp square). The
|
||||
procedural, library and imported alphas alike and are returned by `tool.brush` with the other
|
||||
values. The alpha's rotation is the brush `angle`.
|
||||
|
||||
Bake mode applies edits in Common Settings and Mesh Map Settings to every texture set. Each
|
||||
set keeps its own enabled mesh-map checkboxes and Include in Bake flag. Edits update only the
|
||||
changed fields; Restore Defaults resets the whole parameter section across all sets.
|
||||
Bake mode applies an edit in Common Settings or Mesh Map Settings to the texture sets sharing that
|
||||
group's settings: Common Settings, and each map's settings, are shared by any set of texture sets
|
||||
(at first every set shares them). Each set keeps its own enabled mesh-map checkboxes and Include in
|
||||
Bake flag. An edit reaches the sets sharing its group with only the fields it changed, so values
|
||||
that differ elsewhere stay; Restore Defaults resets the whole parameter section across those sets.
|
||||
|
||||
`bake.sync {group: "common" | <map id>, ts: [indices] | "all"}` makes exactly these sets share the
|
||||
group from now on; sets joining take the settings the group shares. `bake.copy {what: "settings" |
|
||||
"checked" | "check", map?, from?, ts}` copies once: every setting with which maps are checked (or
|
||||
one map's settings), which maps are checked, or checks one map; settings also reach the sets sharing a group with a target, while
|
||||
checkboxes stay per set. Each is one undo step. `bake.settings` with `model` keeps each set's sync
|
||||
membership. A `patch` containing `sync` is rejected. Use `bake.sync` to change membership.
|
||||
For `bake.copy`, `from` takes a texture set index and `map` takes a mesh map ID. Omit either field
|
||||
or pass `null` to use its default.
|
||||
|
||||
`bake.settings {ts: "all", patch: {maps: {ao: {parameters: {rays: {rays: 128}}}}}}` changes
|
||||
only AO secondary rays. A `patch` uses the nested `BakeSettings` field names and named enum
|
||||
@@ -145,7 +156,8 @@ values returned in the command's `model` result; omitted fields retain each set'
|
||||
`null` clears optional fields such as `common.resolution_height`. All targeted sets are validated
|
||||
before the edit is applied as one undo step. `model` still replaces the complete settings;
|
||||
when combined, `patch` follows `model`, then the flat command parameters apply. Omitting `ts`
|
||||
still targets the active set for scripts that need individual control.
|
||||
still targets the active set. Settings passed to `bake.run` follow the same sync rules, while only
|
||||
the requested texture sets bake. The settings and baked maps share one undo step.
|
||||
|
||||
Bake presets are saved settings in the UI state (Mesh Map Bakers > Presets). Loading one is
|
||||
`bake.settings {ts: <index>, model: <the preset's settings>, preserveEnabled: true, preset: true}`; Apply to All
|
||||
@@ -223,7 +235,7 @@ keeps its state in a throwaway file.
|
||||
| `ui.inspect` | | UI state, viewport rect, fps, bake progress (`baking`, 0..1), the running bake's stage (`bakeStatus`, e.g. "Baking Ambient Occlusion (2/4)") and live preview (`bakePreview`, see *Live bake preview*), toasts, `titleBar` (who draws the title bar this run: `app`, `integrated` on macOS, or `system`) |
|
||||
| `ui.menu.list` | | the menu catalog: `{menu, submenu, label, id, shortcut, implemented, enabled, checked}` |
|
||||
| `ui.menu.invoke` | `{id}` | behaves like a menu click (may open a window; `ui.resetUi` opens its question; `file.exportMesh` opens the Mesh Export Options prompt, whose Export asks for the file; `ui.view.export` opens the right bar's Export panel). `{"id": "ui.layout.apply", "name": "<layout>"}` switches to a legacy named panel layout (still accessible through assigned shortcuts) (panels only; mode, zoom and wireframes stay) and errors when no layout has that name. `ui.layout.save` still saves the active mode; `ui.layout.save.painting`, `ui.layout.save.rendering` and `ui.layout.save.baking` ask where to save only that mode's panels and view arrangement as a JSON file (without preferences or recent projects); loading preserves the other modes, `ui.layout.load` asks for one to load ("Load UI Layout"); `ui.toolbar.docks` and `ui.toolbar.tools` show or hide the right bar and the painting tools; the disabled Snooze Autosave and Resources Updater buttons stay visible when Tools is off; `ui.view.renderer` toggles the Renderer Settings panel (Rendering Mode only). `{"id": "ui.layout.swap"}` swaps the 3D and 2D views of the split layout (F4) |
|
||||
| `ui.menu.invoke` id `project.sample` | `{id}` | File > Open Sample Project opens a file picker for a `.tcraft` project. The direct `project.sample` engine command still creates the generated sample for automation. |
|
||||
| `ui.menu.invoke` id `project.sample` | `{id}` | File > Open Sample Project opens a picker for a `.tcraft` file. On desktop, it copies any missing bundled samples (currently `Material Ball.tcraft`) into `Samples` under the data folder and opens the picker there. If preparation fails, it shows an error and opens the picker without a start folder. In the browser, the picker uses local files. The direct `project.sample` engine command generates a sample for automation. |
|
||||
| `ui.menu.invoke` id `ui.saveAsTemplate` | `{id}` | File > More Save Options > Save As Template opens a save dialog in the user templates folder. The choice supplies the file path and template name to `project.template.save`. `ui.saveReduced` (Save and Reduce File Size) is listed as not implemented and not enabled |
|
||||
| `ui.menu.invoke` ids `ui.help.releaseNotes`, `ui.help.showLog`, `ui.help.exportLog` | `{id}` | Help > Release Notes opens the releases page in the browser; Help > Show Log opens the current desktop run's rolling `log.txt` in the system text-file handler; Help > Export Log exports the session log with each entry’s recorded UTC time, severity and source (a save dialog on desktop with a `Log_TextureCraft_<version>_<date>_<os>_<gpuMode>.txt` name, a download on the web) |
|
||||
| `ui.menu.invoke` id `ui.wireframe` | `{id}` | Show mesh wireframe: shows or hides the mesh wireframe in the 3D and 2D views (the Display Settings check box). It has no menu entry and no default key; bind it in Settings > Shortcuts. The key bindings `camera.next` and `camera.previous` (Select next camera `>`, Select previous camera `<`) and `ui.mode.bake` (F8) run the same commands as before |
|
||||
@@ -354,6 +366,11 @@ takes a font family, not a path: it reads only the system's font folders.
|
||||
|
||||
`file.close` leaves no project open: `session.inspect` then reports `projectOpen: false`, `command.list` marks every command but the project-independent ones as not enabled: the ones that open or create a project (`file.open`, `file.new`, `project.new`, `project.sample`), `project.inspect`, `viewport.frame`, `project.templates`, the `export.preset*` commands (`export.presets`, `export.preset.get`, `export.preset.save`, `export.preset.remove`) and the library and preset listings (`brush.preset.list`, `alpha.list`, `filter.list`, `material.list`, `mask.smart.list`, `text.fonts`), each still subject to its own enabled check. The rest are refused with "no project is open" until a project is opened or created. A `texturecraft --control` run starts with the sample project (an empty material ball with `--empty`); the app without `--control` starts with no project.
|
||||
|
||||
The desktop control channel accepts `rebuildUvs: true` on `file.new` to generate a new UV layout.
|
||||
The default keeps a complete authored layout and unwraps meshes that need UVs, including on reopen.
|
||||
With `rebuildUvs: true`, the project file saves the generated layout. Reopening or calling
|
||||
`file.reimportMesh` without a path reuses it. Reimporting from a mesh file on disk rebuilds its UVs.
|
||||
|
||||
| Tool | Params | Notes |
|
||||
|---|---|---|
|
||||
| `session_inspect` | | The whole session as JSON |
|
||||
@@ -662,9 +679,11 @@ with `material.apply` instead. The command rejects linked MaterialCraft fills. T
|
||||
- `effect.filter.restoreDefaults {effect?}` puts a filter's parameters back to its defaults (name,
|
||||
channels and blending stay) and returns `{changed}`.
|
||||
- `layer.fill.resetProjection {layer? | effect?}` puts the Fill section back to a new fill's (same
|
||||
projection kind; a placed frame, the symmetry and the sources stay); `layer.fill.resetFrame` puts a
|
||||
warp's frame back around the mesh with its corners unpulled. Each is one undo step, or none when
|
||||
nothing changes.
|
||||
projection kind; a placed frame, the symmetry and the sources stay). `layer.fill.resetFrame
|
||||
{layer? | effect?, keepCorners?: bool}` puts a warp's frame back around the mesh. By default it
|
||||
resets the corners. With `keepCorners: true` it preserves the corners and also resets projector
|
||||
rotation and scale. Projection Depth, crop and culling stay. Each reset is one undo step, or none
|
||||
when nothing changes.
|
||||
|
||||
## MaterialCraft materials
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# Feature names
|
||||
|
||||
## Generator picker
|
||||
|
||||
The picker uses **Worn Metal Edges** for metal edge wear, **Exposed Glass Fibers**
|
||||
for exposed fibers in a worn coating, and **Rust Runoff** for rust that streaks
|
||||
along a selected mesh axis. The labels describe the rendered patterns.
|
||||
Commands, saved generator kinds, and searches using former labels remain
|
||||
compatible.
|
||||
|
||||
On 2026-11-25, the three names were compared with the published generator
|
||||
documentation and Adobe's trademark list. None appeared in that list. Exact
|
||||
phrase software searches found no matching generator. The USPTO and WIPO search
|
||||
interfaces did not expose searchable results in this review environment.
|
||||
|
||||
- [Adobe's published trademark list](https://www.adobe.com/cc-shared/assets/pdf/legal/documents/adobe-trademark-database-external.pdf)
|
||||
- [Painter generator documentation](https://experienceleague.adobe.com/en/docs/substance-3d-painter/using/effects/generators/dripping-rust)
|
||||
- [Designer fiberglass wear documentation](https://experienceleague.adobe.com/en/docs/substance-3d-designer/using/substance-graphs/nodes-reference-for-substance-graphs/node-library/mesh-based-generators/mask-generators/fiber-glass-edge-wear)
|
||||
+10
-7
@@ -114,9 +114,9 @@ Everything TextureCraft does today, by area. What's still missing is in [`ROADMA
|
||||
## Files and texture sets
|
||||
|
||||
- **Open** glTF/GLB, FBX (binary and ASCII), COLLADA, **USD** (usda, usdc, usdz), **Alembic**,
|
||||
OBJ, PLY and STL, or a built-in mesh (the `project.new` command; *File › Open sample project...* opens the
|
||||
material ball); UVs are generated when a mesh has none. A `.gltf`'s buffers
|
||||
and images and a loose USD layer's textures are read from its folder and kept in the project.
|
||||
OBJ, PLY and STL, or a built-in mesh with the `project.new` command. UVs are generated when a mesh
|
||||
has none. A `.gltf`'s buffers and images and a loose USD layer's textures are read from its folder
|
||||
and kept in the project.
|
||||
Reimport a changed mesh and your painted strokes stay on the surface. The
|
||||
`file.changeMesh` command (trusted local command API and the control channel) moves the project onto a different mesh file and keeps its layers.
|
||||
**Edit › Project Configuration...** (desktop) does the same from the 3D MESH section: *Select...* picks the
|
||||
@@ -124,12 +124,15 @@ Everything TextureCraft does today, by area. What's still missing is in [`ROADMA
|
||||
strokes follow the surface (on by default), and PROJECT SETTINGS sets the project's normal map format and
|
||||
shows its UV tiles in the UV workflow tooltip. Edit the tiles in Texture Set Settings.
|
||||
Physical size and color management show the same settings as New project.
|
||||
- **File › Open Sample Project** opens a `.tcraft` picker. On desktop, the picker starts in
|
||||
`Samples` under the data folder and offers the bundled `Material Ball.tcraft`. In the browser,
|
||||
the picker uses local files.
|
||||
- **File › New project...** opens a setup form with BASIC SETTINGS (*Select...* a mesh file,
|
||||
the project template, the document resolution; Create waits for a mesh) and ADVANCED SETTINGS (normal
|
||||
map format, *Use UV Tile workflow*, *Import cameras*, *Import baked maps*, physical size, color
|
||||
map format, *Use UV Tile workflow*, *Import cameras*, *Rebuild mesh UVs*, *Import baked maps*, physical size, color
|
||||
management). The project is named after the mesh file. Settings TextureCraft does not have yet
|
||||
(tangent space per fragment, UV tiles as separate texture sets, turning auto-unwrap off and its
|
||||
options, a custom unit scale, OpenColorIO) are shown disabled with a hint; projects use Legacy color
|
||||
(tangent space per fragment, UV tiles as separate texture sets, a custom unit scale, OpenColorIO)
|
||||
are shown disabled with a hint; projects use Legacy color
|
||||
management. In the browser, *Select...* opens the browser's file picker.
|
||||
- **UDIM / UV tiles:** detected on import or switched on later, with a resolution per tile (blurs,
|
||||
other filters and height-to-normal slopes keep their size in UV space at any tile resolution)
|
||||
@@ -138,7 +141,7 @@ Everything TextureCraft does today, by area. What's still missing is in [`ROADMA
|
||||
channel types to add or remove. Show, hide or invert them all at once, or **focus** on the
|
||||
active one. The project's **normal map format** (OpenGL or DirectX, in Texture Set Settings)
|
||||
says how a normal map image set as a mesh map is read, and is the default for export.
|
||||
- **Projects** are a single `.tcraft` file: the mesh, every layer (sparse and lossless), baked maps
|
||||
- **Projects** are a single `.tcraft` file: the mesh (with its generated UV layout when *Rebuild mesh UVs* was chosen), every layer (sparse and lossless), baked maps
|
||||
and imported images. **Project templates** start new work from a saved setup. *File › More save options › Save as template...* saves the open project's setup (dialog "Save template", in the user templates folder, no confirmation); New project lists "Default (OpenPBR)", the other built-ins with " (starter_assets)", yours with " (your_assets)", and opens on the template of the last project. *More save options* also has *Save as copy...* and *Save and reduce file size* (greyed, "Not available yet"). Closing the app,
|
||||
or opening, starting or closing another project, with unsaved changes asks whether to save them
|
||||
first (in the browser too, where Save downloads the project and closing or reloading the tab
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
# Windows, Linux and macOS release-ref nightly: supervised manual go-live
|
||||
|
||||
**Enabled for supervised manual runs, not yet qualified.** The producer (`nightly.yml`, main) and the
|
||||
signer (`nightly-sign.yml`, release) keep only their exact context guards and run when one of the reviewed
|
||||
manual actors dispatches them. There is no schedule yet. The installed policy
|
||||
[`.github/nightly-signing-policy.json`](../.github/nightly-signing-policy.json) is the v3
|
||||
policy. Once `nightly.yml` is registered on `main`, populate `producer_workflow_id` by reading:
|
||||
**Enabled for supervised manual runs, not yet qualified.** The producer (`nightly.yml`, main) and
|
||||
the signer (`nightly-sign.yml`, on the dedicated `nightly-signer` branch) keep only their exact
|
||||
context guards and run when one of the reviewed manual actors dispatches them.
|
||||
`nightly-dispatch.yml` stays literally off: it only forwards scheduled producers. There is no
|
||||
schedule. The installed policy
|
||||
[`.github/nightly-signing-policy.json`](../.github/nightly-signing-policy.json) is the v3 policy.
|
||||
Its `producer_workflow_id` is the registration of `nightly.yml` on main, read with:
|
||||
|
||||
```bash
|
||||
gh api repos/storytold/texturecraft/actions/workflows/nightly.yml --jq .id
|
||||
@@ -13,22 +15,49 @@ gh api repos/storytold/texturecraft/actions/workflows/nightly.yml --jq .id
|
||||
The callers pass no platform secrets. The unsigned reusable caller's maximum OIDC/attestation
|
||||
permissions are for its isolated attester; its compiler narrows to contents and Actions read
|
||||
only, with no OIDC, attestation write, release environment or platform signing secrets.
|
||||
Shared tooling is pinned to `605d58766e8f536564da8fc81d3676ac86816dea`, the craft-common-actions
|
||||
main commit that merged [#339](https://github.com/storytold/craft-common-actions/pull/339) (bounded
|
||||
lineage compares and an issue reread at the end of candidate admission) on top of
|
||||
[#342](https://github.com/storytold/craft-common-actions/pull/342) (policy v3, the `platforms` input
|
||||
and the Linux and macOS legs). Both callers name it in `uses` and `tooling-revision`. A pin is reviewed
|
||||
source availability, not provider, queue, native signing or crypto qualification.
|
||||
Existing stable workflows are unchanged.
|
||||
Shared tooling is pinned to `be00e5ccd18b68e950c8a08532f2230e7c3d0cba`, the craft-common-actions
|
||||
main commit that merged [#371](https://github.com/storytold/craft-common-actions/pull/371) (the
|
||||
candidate is admitted on the built commit's own Sonar analysis, not main's latest) after
|
||||
[#370](https://github.com/storytold/craft-common-actions/pull/370) (the Windows and macOS nightly
|
||||
registry rows for the 14 apps) and
|
||||
[#369](https://github.com/storytold/craft-common-actions/pull/369) (shared helper checkouts kept out
|
||||
of the app's clean-source check, and macOS on `macos-15`), following
|
||||
[#364](https://github.com/storytold/craft-common-actions/pull/364) (the signer may run on the
|
||||
policy's signer branch) and [#363](https://github.com/storytold/craft-common-actions/pull/363) (the
|
||||
multi-app pipeline, which makes the signer's `app-name` input required and admits any reviewed
|
||||
registry app), with #342 (`a4f6fd51`, policy v3 and the `platforms` input) and #339 (`605d5876`)
|
||||
earlier. Both callers name it in `uses` and `tooling-revision`. A pin is reviewed source
|
||||
availability, not provider, queue, native signing or crypto qualification. Existing stable workflows are unchanged.
|
||||
|
||||
**First runs.** The first runs are manual dispatches in this order: `nightly.yml` on main (only a
|
||||
listed manual actor passes the producer's plan step), then `nightly-sign.yml` on `release` with that
|
||||
producer run ID and attempt, by a listed manual actor.
|
||||
listed manual actor passes the producer's plan step), then `nightly-sign.yml` on `nightly-signer`
|
||||
with that producer run ID and attempt, by a listed manual actor. `nightly-dispatch.yml` only matters
|
||||
once a schedule is approved.
|
||||
|
||||
**Signer branch.** The signer runs on `refs/heads/nightly-signer`, not on the stable `release`
|
||||
branch, so nightly signer files never need a stable release sync. The policy's `release_branch`
|
||||
names it, the signer's guard requires it and the dispatcher targets it. The branch only
|
||||
fast-forwards to reviewed main commits, through the settings script's `advance` (no queued signer
|
||||
run, a trust-closure scan, then the full diff of `.github/` and `packaging/`), and the existing
|
||||
`release` environment must admit `nightly-signer` alongside `release` before the first dispatch (a
|
||||
repository settings change, not a workflow one). Its trust closure is all of `.github/` and
|
||||
`packaging/`, including `packaging/env.sh`, which `packaging/macos/import-cert.sh` sources with the
|
||||
Apple keys. On that branch only the pinned `nightly-sign.yml` caller may reach an environment: no
|
||||
app workflow binds one, nothing else calls `nightly-release.yml`, and the only caller of the shared
|
||||
stable `release.yml` is `release.yml`, whose callee must carry the stable-only environment guard.
|
||||
The contract tests check the in-repo part on every main PR; the settings scan also resolves the
|
||||
callee. Stable releases still come only from `refs/heads/release`. History does not carry over a
|
||||
switch between `release` and `nightly-signer`, so the switch happens before the first publication.
|
||||
|
||||
**Registry admission.** The signer requires the protected policy's `platforms` map to equal the
|
||||
run app's admitted targets in craft-common-actions' `nightly-apps.json`, and it refuses rather
|
||||
than sign a subset. TextureCraft's row admits `linux-x86_64`, `windows-x86_64` and `macos-aarch64`, with
|
||||
each target's entrypoint and asset pattern, since craft-common-actions #370 (in the pin).
|
||||
|
||||
**Manual actors.** `bflatastic`, `dylanmtaylor`, `echelon`, `FredApps` and `skylartaylor`, in the
|
||||
producer's `manual-actors` and the policy's `manual_actors`. The list mirrors the release-managers
|
||||
team (id 19837241), leaving out `echelon-robot`, which only has read access; update it by PR
|
||||
in both places when the team changes.
|
||||
team (id 19837241), leaving out `echelon-robot`, which only has read access; update it by PR in both
|
||||
places when the team changes.
|
||||
|
||||
**Admission timing.** The candidate check reads the newest CI run on the candidate commit and
|
||||
main's latest finished Sonar analysis, so when to dispatch matters:
|
||||
@@ -39,19 +68,19 @@ main's latest finished Sonar analysis, so when to dispatch matters:
|
||||
**Platform rows.** The producer caller lists
|
||||
`platforms: '["windows-x86_64","linux-x86_64","macos-aarch64"]'` on its single job: one producer
|
||||
run builds every listed platform for one all-or-nothing release (one failed or
|
||||
skipped platform stops that night's release, Windows included), and the release-ref signer admits
|
||||
skipped platform stops that night's release, Windows included), and the signer admits
|
||||
platforms only from the protected policy, so there is no separate Linux or macOS caller job and
|
||||
the signer caller has no platform input.
|
||||
|
||||
## Installed policy values and their sources
|
||||
|
||||
Read on 2026-11-24; re-read anything that may have moved before the policy is promoted to `release`.
|
||||
Read on 2026-11-24; re-read anything that may have moved before `nightly-signer` is advanced to it.
|
||||
|
||||
| Field | Value | Source |
|
||||
|---|---|---|
|
||||
| `repository_id` | `1419654881` | `gh api repos/storytold/texturecraft --jq .id` |
|
||||
| `producer_workflow_id` | `null` (pending registration on `main`) | Populate via `gh api repos/storytold/texturecraft/actions/workflows/nightly.yml --jq .id` once `nightly.yml` reaches `main` |
|
||||
| `producer_tooling_revision`, `signer_tooling_revision`, `producer_workflow_ref` | `605d5876…` (craft-common-actions #339) | The callers' pin |
|
||||
| `producer_workflow_id` | `429738073` | `gh api repos/storytold/texturecraft/actions/workflows/nightly.yml --jq .id` |
|
||||
| `producer_tooling_revision`, `signer_tooling_revision`, `producer_workflow_ref` | `be00e5cc…` (craft-common-actions #371 after #370, #369 and #364) | The callers' pin |
|
||||
| `manual_actors` / `automatic_signer_actors` | the five release managers / `[]` | release-managers team (id 19837241) members who can push; equals the producer caller's `manual-actors` |
|
||||
| `max_age_seconds`, `max_artifact_bytes` | `86400`, `2147483648` | Go-live checklist |
|
||||
| `platforms` | three rows (`windows-x86_64`, `linux-x86_64`, `macos-aarch64`) | Stable suite signing identities (`Learning Machines Inc` Authenticode subject, Linux OpenPGP fingerprint `2B76741B414AAD6CD33E631213A005C0B9D7C3ED`, Apple Team ID `DJ6XS33FX8`) |
|
||||
@@ -68,11 +97,15 @@ those values in the same reviewed change that promotes the policy to `release`.
|
||||
- `.github/workflows/nightly.yml`: default-main registration of the unsigned producer, named
|
||||
`TextureCraft unsigned nightly`, enabled for manual dispatch by `manual-actors`; no signing secrets
|
||||
may be passed or inherited.
|
||||
- `.github/workflows/nightly-sign.yml`: top-level release registration, enabled for manual dispatch,
|
||||
and identical on main and release after reviewed promotion. It rejects wrong repository/event/actual branch,
|
||||
- `.github/workflows/nightly-sign.yml`: top-level registration on `nightly-signer`, enabled for manual dispatch,
|
||||
and only ever fast-forwards to reviewed main commits. It rejects wrong repository/event/actual branch,
|
||||
including same-name tags. Its constant whole-run concurrency is distinct from stable,
|
||||
cancellation is off and `queue: max` must be hosted-qualified. The caller itself passes no
|
||||
credentials; only the shared callee's sign jobs bind the `release` environment.
|
||||
credentials; only the shared callee's sign jobs bind the `release` environment, which must admit
|
||||
`nightly-signer` alongside `release` before the first dispatch.
|
||||
- `.github/workflows/nightly-dispatch.yml`: transport only, never authorization. It is literally
|
||||
off (`false &&`) and forwards only a first-attempt scheduled producer to `nightly-sign.yml` on
|
||||
`nightly-signer`. No schedule is registered until activation is reviewed.
|
||||
- Shared reusable entrypoints are `nightly-unsigned.yml` and `nightly-release.yml` in
|
||||
`storytold/craft-common-actions`. Both must resolve to a **real reviewed public immutable
|
||||
commit**; the defining workflow SHA and tooling input must match.
|
||||
@@ -89,17 +122,28 @@ those values in the same reviewed change that promotes the policy to `release`.
|
||||
- `nightly-sign.yml` keeps its literal root `concurrency:` block (`texturecraft-nightly-release`,
|
||||
`cancel-in-progress: false`, `queue: max`).
|
||||
- `.github/nightly-signing-policy.json` matches the v3 schema, repository identity, platform
|
||||
trust anchors, CI workflow trigger contract, and SonarCloud project identity.
|
||||
trust anchors, CI workflow trigger contract, SonarCloud project identity, and the reviewed Sonar
|
||||
gate shape (accepted failures inside the issue scope, every live gate condition present once).
|
||||
- The signer guards `refs/heads/nightly-signer`, passes `app-name: texturecraft`, and the policy's
|
||||
`release_branch` names it.
|
||||
- A trust-closure scan reads every workflow: nothing binds an `environment`, only `nightly-sign.yml`
|
||||
calls `nightly-release.yml` (at a full SHA), and the only caller of the shared stable `release.yml`
|
||||
is `release.yml`.
|
||||
- `nightly-dispatch.yml` keeps a literal-off guard, a `workflow_run`-only trigger and a
|
||||
`refs/heads/nightly-signer` request.
|
||||
|
||||
|
||||
## App-side producer scripts (Windows and macOS)
|
||||
|
||||
**Every Linux Nightly format starts the app the flavor's way.** The `.deb`/`.rpm` wrapper, the
|
||||
Arch launcher, the Flatpak wrapper, the AppImage's `AppRun` and the launcher inside the plain
|
||||
`nightly.tar.gz` all exec the real GUI with the literal
|
||||
Arch launcher, the Flatpak wrapper and the AppImage's `AppRun` all exec the real GUI with the literal
|
||||
`--launch-profile nightly-v1 --profile-root <${XDG_DATA_HOME:-~/.local/share}/TextureCraft-Nightly> --`,
|
||||
and pass a Launcher protocol or a `--version`/`-V` query through untouched (so the smoke checks and
|
||||
`texturecraft-nightly --version` still answer). The profile is outside stable's folders and outside
|
||||
`texturecraft-nightly --version` still answer). The plain `nightly.tar.gz` (and `package.sh`'s tree tarball, which installs the same file) uses craft-common-actions'
|
||||
shared launcher template (#363, rendered for this app) instead: its `texturecraft` adds its own
|
||||
tokens unless the first argument is already a `--launch-profile` pair, execs `texturecraft-bin` beside it with
|
||||
`--profile-root <${XDG_DATA_HOME:-~/.local/share}/ai.storyteller.texturecraft.nightly> --`, and asks a
|
||||
bare `--version`/`-V` in the Launcher's own form. The profile is outside stable's folders and outside
|
||||
the unpacked or installed copy, which the flavor's fence would otherwise refuse.
|
||||
|
||||
Every Nightly Linux format is GUI only. `texturecraft-cli` stays in the Stable packages: a headless
|
||||
@@ -131,3 +175,15 @@ release-dispatch and macOS signing suites, plus the Nightly icons must be byte-i
|
||||
`nightly-signing-tests.ps1` (Windows, with `-FixtureRoot`), and `bash -n` plus shellcheck over the
|
||||
three macOS scripts. The full-ci macOS job (`nightly-macos.yml`) is the only place the bundle and
|
||||
its version query actually run before the first supervised release.
|
||||
|
||||
## The Sonar issue scope
|
||||
|
||||
The pinned candidate validator requires every entry in `candidate_policy.sonar.issue_types` to map
|
||||
from a reviewed `accepted_conditions` row, and it requires the gate condition set to equal
|
||||
`accepted_conditions` plus `required_conditions`. The installed policy lists `VULNERABILITY` with
|
||||
`new_security_rating` accepted (max 5) and the other five gate conditions required - the same shape
|
||||
PhotoCraft and WordCraft ship - so it satisfies that contract before SonarCloud is read. `debt` stays
|
||||
empty, so any unresolved vulnerability on `main` is still refused, and the live gate is still compared
|
||||
condition by condition against the policy. `producer_workflow_id` is now populated and the signer runs
|
||||
on `nightly-signer`; the registry's Windows and macOS targets are what still stand between this tree
|
||||
and a first signed nightly.
|
||||
+15
-8
@@ -31,9 +31,8 @@ release push. An org admin completes the following setup for this repo:
|
||||
|
||||
Those twelve (`APPLE_*` and `KEYCHAIN_PASSWORD`, `AZURE_*`) are all a signed release needs;
|
||||
`GITHUB_TOKEN` is provided by Actions.
|
||||
4. Add the repo to the org's **Default runner group** (Settings → Actions → Runner groups). The
|
||||
macOS job (`macos-15-xlarge`) and the FreeBSD job (`github-ubuntu-16core`) run on larger runners,
|
||||
which only serve repos in that group; outside it they wait for a runner forever, with no error.
|
||||
4. Add the repo to the org's **Default runner group** (Settings → Actions → Runner groups) for the
|
||||
larger macOS runner (`macos-15-xlarge`). The FreeBSD release job runs its VM on `ubuntu-latest`.
|
||||
|
||||
### 2. Set the version
|
||||
|
||||
@@ -109,15 +108,16 @@ All file names are `texturecraft-<version>-<platform>-<arch>.<ext>`, written to
|
||||
| Windows x64, x86, arm64 | `-windows-<arch>.msi`, `-windows-<arch>-portable.zip` | `packaging/windows/package.ps1` |
|
||||
| Linux x86_64, aarch64 (Ubuntu 22.04, glibc 2.35) | `.AppImage` + `.AppImage.zsync`, `.deb`, `.rpm`, `.tar.gz` | `packaging/linux/package.sh` |
|
||||
| Flatpak x86_64, aarch64 | `-linux-<arch>.flatpak`, repackaged from the Linux tarball | `packaging/linux/flatpak-bundle.sh` |
|
||||
| FreeBSD x86_64 (14.3 VM on `github-ubuntu-16core`) | `-freebsd-x86_64.tar.gz` | `packaging/freebsd/package.sh` |
|
||||
| FreeBSD x86_64 and aarch64 (aarch64 is cross-compiled in the x86_64 VM) | `-freebsd-<arch>.tar.gz` | `packaging/freebsd/package.sh` |
|
||||
| Web | `texturecraft-web-<version>.zip` (trunk, `wasm-release` profile; hosting notes in `packaging/web/README.md`) | `packaging/web/package.sh` |
|
||||
|
||||
Every desktop package ships both binaries, `texturecraft` and `texturecraft-cli` (on macOS the CLI
|
||||
is its own zip next to the DMG). Release builds embed the craft-fonts interface font (Inter) and CJK UI fonts
|
||||
(`CRAFT_FONTS_REF` in `release.yml`) and ship their `OFL-<family>.txt` licences with the other
|
||||
notices. The packaging
|
||||
scripts smoke-test `texturecraft-cli --version`, and the Linux job also runs the AppImage with
|
||||
`--version`, so both binaries must print their version and exit without opening a window.
|
||||
notices. The packaging scripts smoke-test `texturecraft-cli --version` where they can run the
|
||||
staged binary. The FreeBSD aarch64 release cross-build skips that check. The Linux job also runs
|
||||
the AppImage with `--version` as a non-blocking check. Both binaries must print their version and
|
||||
exit without opening a window.
|
||||
|
||||
## TextureCraft-specific values
|
||||
|
||||
@@ -155,6 +155,13 @@ entry and icons).
|
||||
Secrets live only in the `release` environment and are all optional: a missing one gives an
|
||||
unsigned artifact and a `::warning::`, never a failed build.
|
||||
|
||||
The supervised nightly signer does not sign from `release`: it runs on `refs/heads/nightly-signer`,
|
||||
which only ever fast-forwards to reviewed main commits, and the `release` environment must admit
|
||||
`nightly-signer` alongside `release` before the first dispatch. Everything that can reach it is the
|
||||
trust closure: all of `.github/` and `packaging/`, including `packaging/env.sh`, which
|
||||
`packaging/macos/import-cert.sh` sources with the Apple keys. Stable releases still come only from
|
||||
`refs/heads/release`.
|
||||
|
||||
- macOS: `APPLE_CERTIFICATE`, `APPLE_CERTIFICATE_PASSWORD`, `KEYCHAIN_PASSWORD` (import into a
|
||||
temporary keychain, `packaging/macos/import-cert.sh`), then `APPLE_ID`, `APPLE_PASSWORD`,
|
||||
`APPLE_TEAM_ID` for `notarytool` and stapling. Without them the app is ad-hoc signed.
|
||||
@@ -173,7 +180,7 @@ artwork and keep `ATTRIBUTION.md` in step. See `assets/app-icon/README.md`.
|
||||
|
||||
## Local checks
|
||||
|
||||
- `cargo xtask ci`: fmt, clippy, tests, `cargo xtask layers`, `cargo xtask wasm`.
|
||||
- `cargo xtask ci`: fmt, clippy, tests, `cargo xtask layers`, `cargo xtask wasm` (not run by `ci` on Windows; the other hosts cover it).
|
||||
- `bash packaging/linux/apprun-test.sh` and `bash packaging/freebsd/package.sh --dry-run` run
|
||||
anywhere with bash.
|
||||
- `packaging/macos/package.sh --arch aarch64` on a Mac builds an ad-hoc signed DMG.
|
||||
|
||||
Reference in new issue
Block a user