Skip to content

dist: add metrics notice to rpm and deb packages#13221

Open
slarse wants to merge 1 commit intomasterfrom
add-metrics-notice-to-rpm-and-deb
Open

dist: add metrics notice to rpm and deb packages#13221
slarse wants to merge 1 commit intomasterfrom
add-metrics-notice-to-rpm-and-deb

Conversation

@slarse
Copy link
Copy Markdown
Contributor

@slarse slarse commented Apr 8, 2026

This makes you aware of the metrics collection even if you don't go through the first-time GUI setup. Without this notice, jumping straight into the but cli leaves you completely unaware that metrics are being sent.

Copilot AI review requested due to automatic review settings April 8, 2026 08:25
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
gitbutler-web Ignored Ignored Preview Apr 8, 2026 10:02am

Request Review

@github-actions github-actions bot added the rust Pull requests that update Rust code label Apr 8, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a post-install disclosure message to Linux packages so users installing via .deb/.rpm (and going straight to the but CLI) still see a metrics collection notice.

Changes:

  • Wire up a Debian postInstallScript in Tauri bundling config.
  • Add a new deb-postinstall.sh that prints the metrics notice.
  • Harden RPM uninstall script and add the same notice to the RPM postinstall script.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
crates/gitbutler-tauri/tauri.conf.json Adds postInstallScript for the Debian bundle.
crates/gitbutler-tauri/rpm-preremove.sh Enables set -eu for stricter error handling during removal.
crates/gitbutler-tauri/rpm-postinstall.sh Adds set -eu and prints a metrics notice after install.
crates/gitbutler-tauri/deb-postinstall.sh New Debian postinstall script that prints a metrics notice.

Comment thread crates/gitbutler-tauri/rpm-postinstall.sh Outdated
Comment thread crates/gitbutler-tauri/rpm-postinstall.sh Outdated
Comment thread crates/gitbutler-tauri/deb-postinstall.sh Outdated
Comment thread crates/gitbutler-tauri/deb-postinstall.sh Outdated
@slarse slarse force-pushed the add-metrics-notice-to-rpm-and-deb branch from b57250e to 9f850a5 Compare April 8, 2026 08:51
This makes you aware of the metrics collection even if you don't go
through the first-time GUI setup. Without this notice, jumping straight
into the `but` cli leaves you completely unaware that metrics are being
sent.
Copilot AI review requested due to automatic review settings April 8, 2026 10:01
@slarse slarse force-pushed the add-metrics-notice-to-rpm-and-deb branch from 9f850a5 to 9b58fff Compare April 8, 2026 10:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@slarse slarse requested a review from krlvi April 8, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants