Skip to content

Adapt snapcraft.yaml and add GitHub workflow - #22

Merged
arran4 merged 5 commits into
masterfrom
feature/snapcraft-github-actions-4799241707444094423
Mar 3, 2026
Merged

Adapt snapcraft.yaml and add GitHub workflow#22
arran4 merged 5 commits into
masterfrom
feature/snapcraft-github-actions-4799241707444094423

Conversation

@google-labs-jules

Copy link
Copy Markdown

Adapts snap/snapcraft.yaml to ensure correct service paths within the snap and introduces a disabled GitHub workflow for building the snap package using snapcore/action-build.


PR created automatically by Jules for task 4799241707444094423 started by @arran4

- Updated `snap/snapcraft.yaml` to substitute placeholder values in the D-Bus `.service.in` template, mapping them to the proper paths inside the snap package (`/snap/playerctl/current/bin`).
- Added a new GitHub Actions workflow `.github/workflows/snap.yml` utilizing `snapcore/action-build@v1` to build the snap. The workflow is currently disabled as requested.
@google-labs-jules

Copy link
Copy Markdown
Author

馃憢 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 馃憖 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Comment thread snap/snapcraft.yaml Outdated
@@ -19,7 +19,10 @@ parts:
craftctl default
go build -o "$CRAFT_PART_INSTALL/bin/goplayerctl" ./cmd/goplayerctl
go build -o "$CRAFT_PART_INSTALL/bin/playerctld" ./cmd/playerctld

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jules this is out of date as I don't offer a playerctld

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood. I have removed playerctld entirely from the snapcraft.yaml configuration.

Comment thread .github/workflows/snap.yml Outdated

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jules this should be merged with the existing release process, and if goreleaser can do this entirely replaced

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood. I have deleted the separate .github/workflows/snap.yml workflow and migrated the snapcraft configuration to .goreleaser.yml so that it uses the existing release process.

Comment thread snap/snapcraft.yaml Outdated

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jules please reassess this file and ensure the contents is accurate based on what the new program does, and how it builds. If the config can be entirely replaced by modifying the goreleaser config please do that

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have completely removed snap/snapcraft.yaml and integrated the correct snap build settings (for goplayerctl only) into the .goreleaser.yml configuration.

- Addressed PR comment by completely removing all `playerctld` references (build step, dbus slot, app definition) from `snap/snapcraft.yaml` as the daemon is not provided via the snap package.
- Deleted `.github/workflows/snap.yml` and `snap/snapcraft.yaml` completely.
- Implemented `snapcrafts` configuration in `.goreleaser.yml` to replace the standalone configurations and unify the release process.
- Ensured `playerctld` references are correctly omitted from the new snap release logic as requested in the PR feedback.
Comment thread .goreleaser.yml Outdated
- data/goplayerctl.zsh

snapcrafts:
- name: playerctl

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jules it's goplayerctl

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I've updated the snap package name to goplayerctl.

google-labs-jules Bot and others added 2 commits March 3, 2026 10:56
- Triggering another push to resolve intermittent GitHub issue blocking the workflow file removal from taking effect correctly on the PR side.
@arran4
arran4 merged commit c959adc into master Mar 3, 2026
2 checks passed
@arran4
arran4 deleted the feature/snapcraft-github-actions-4799241707444094423 branch March 3, 2026 11:33
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