Skip to content

feat: add pkg-snap target adapter for Snapcraft Store#2

Open
forgou37 wants to merge 1 commit intoprofullstack:masterfrom
forgou37:feat/pkg-snap
Open

feat: add pkg-snap target adapter for Snapcraft Store#2
forgou37 wants to merge 1 commit intoprofullstack:masterfrom
forgou37:feat/pkg-snap

Conversation

@forgou37
Copy link
Copy Markdown

Summary

Implements the planned pkg-snap target (marked 🚧 in TARGETS.md).

Changes

  • New packages/targets/pkg-snap/ adapter with full build, ship, status, and setup hooks
  • Config: snapName, grade, confinement, base (core22/core24), architectures, channel
  • build(): renders snapcraft.yaml scaffold and runs snapcraft remote-build
  • ship(): uploads via snapcraft upload --release using SNAPCRAFT_STORE_CREDENTIALS secret
  • status(): returns live status URL at snapcraft.io/<name>
  • setup(): step-by-step guide to export and register Snapcraft store credentials
  • Updates TARGETS.md: pkg-snap 🚧 → ✅

Test

cd packages/targets/pkg-snap && pnpm test

Follows the same structure as pkg-homebrew and pkg-npm.

Implements the planned pkg-snap target (was 🚧 in TARGETS.md).

- Config: snapName, grade, confinement, base (core22/core24), architectures, channel
- build(): renders snapcraft.yaml, runs snapcraft remote-build
- ship(): snapcraft upload --release using SNAPCRAFT_STORE_CREDENTIALS secret
- status(): returns live URL at snapcraft.io/<name>
- setup(): guided steps to export and store Snapcraft credentials

Updates TARGETS.md: pkg-snap 🚧 → ✅
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