Repository navigation
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two commits:
flockflasher images|drives|flash, built byvite.cli.config.tsinto one file for Node. The download code moves tosrc/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.https://instance-registry.ironflock.com/dl/ironflockos/manifest.json, signed overironflockos-manifest:v1/ironflockos/manifest.json.036ef3bd, Cloud KMSironflock-release/ironflockos-catalogv1.ironflockos-<target>-<variant>[-rt], writesinstaller.confwithpayload=ironflockos-…, and finds the partitionIRONFLOCKOS.ironflockos-manifest.json. Identifiers, help, README and copilot instructions follow.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 key036ef3bd(IronFlock/ironflockos #209 and the release after it). FlockFlasher 3.0.x keeps working withdl/flockos/until that tree is retired.