Skip to content

release flockflasher v3.0.3 - #28

Merged
markope merged 3 commits into
mainfrom
cli
Nov 11, 2026
Merged

markope merged 3 commits into
mainfrom
cli

Conversation

@markope

@markope markope commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Two commits:

  1. FlockFlasher's command line (fbd10ee, from 2026-11-10): flockflasher images|drives|flash, built by vite.cli.config.ts into one file for Node. The download code moves to src/main/utils/download.ts, and the device files go to their own module (device-files.ts). The commit adds tests for the arguments, drives, image, plan and write.
  2. The IronFlockOS names (ironflockos ADR-0017):
    • FlockFlasher reads the catalog at https://instance-registry.ironflock.com/dl/ironflockos/manifest.json, signed over ironflockos-manifest:v1 / ironflockos/manifest.json.
    • It trusts only the new catalog key: 036ef3bd, Cloud KMS ironflock-release/ironflockos-catalog v1.
    • It accepts image ids ironflockos-<target>-<variant>[-rt], writes installer.conf with payload=ironflockos-…, and finds the partition IRONFLOCKOS.
    • The catalog cache becomes ironflockos-manifest.json. Identifiers, help, README and copilot instructions follow.
    • FlockFlasher keeps its name, appId and download names.

Tests

The old catalog fixture, signed with the earlier key, is gone. Content tests use an unsigned fixture with the new names, signed at runtime with a throwaway key where a test needs a signature. One test checks that a catalog signed over the old lines is refused.

Locally: vitest 196 passed, type check (node and web) passed, ESLint without errors.

Order

A FlockFlasher with this change shows boards only once the first IronFlockOS release is published in dl/ironflockos/, signed with key 036ef3bd (IronFlock/ironflockos #209 and the release after it). FlockFlasher 3.0.x keeps working with dl/flockos/ until that tree is retired.

- Moved download-related functions from `src/main/utils/index.ts` to `src/main/utils/download.ts`.
- Updated `getRemoteFileSize` and `downloadFile` functions to improve structure and maintainability.
- Added unit tests for command-line argument parsing in `test/cli-args.test.ts`.
- Implemented tests for disk management functions in `test/cli-disks.test.ts`.
- Created tests for image verification in `test/cli-image.test.ts`.
- Added tests for plan selection logic in `test/cli-plan.test.ts`.
- Introduced tests for writing images in `test/cli-write.test.ts`.
- Enhanced installer configuration tests in `test/config-partition.test.ts`.
- Added tests for device file writing in `test/device-files.test.ts`.
- Updated TypeScript configuration to include CLI source files.
- Created Vite configuration for building the command-line tool.
Catalog dl/ironflockos/manifest.json over ironflockos-manifest:v1, image ids ironflockos-*, installer.conf payloads, the IRONFLOCKOS partition, identifiers and docs (IronFlock/ironflockos ADR-0017). Only the new catalog key 036ef3bd is trusted. FlockFlasher keeps its name.
@markope markope changed the title FlockFlasher command line and the IronFlockOS names release flockflasher v3.0.3 Nov 11, 2026
@markope
markope enabled auto-merge (squash) November 11, 2026 22:46
@markope
markope merged commit 5cd77d0 into main Nov 11, 2026
25 checks passed
@markope
markope deleted the cli branch November 11, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant