Skip to content

Add Linux packaging scripts and desktop entry for Cheating Daddy#75

Open
sebamar88 wants to merge 13 commits intosohzm:masterfrom
sebamar88:master
Open

Add Linux packaging scripts and desktop entry for Cheating Daddy#75
sebamar88 wants to merge 13 commits intosohzm:masterfrom
sebamar88:master

Conversation

@sebamar88
Copy link
Copy Markdown

  • Updated package.json to include Linux build commands for .deb, .rpm, and AppImage targets.
  • Added post-installation script to update desktop database, icon cache, and MIME database after installation.
  • Added post-removal script to update desktop database and icon cache after removal.
  • Added pre-removal script to display a message before removing the application.
  • Created a .desktop file for Cheating Daddy to integrate it into the applications menu with appropriate metadata.

- Updated package.json to include Linux build commands for .deb, .rpm, and AppImage targets.
- Added post-installation script to update desktop database, icon cache, and MIME database after installation.
- Added post-removal script to update desktop database and icon cache after removal.
- Added pre-removal script to display a message before removing the application.
- Created a .desktop file for Cheating Daddy to integrate it into the applications menu with appropriate metadata.
Copilot AI review requested due to automatic review settings July 11, 2025 21:12

This comment was marked as outdated.

sebamar88 and others added 2 commits July 11, 2025 18:14
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sebamar88 sebamar88 requested a review from Copilot July 11, 2025 21:27

This comment was marked as outdated.

@sebamar88 sebamar88 requested a review from Copilot July 11, 2025 21:33

This comment was marked as outdated.

@sebamar88 sebamar88 requested a review from Copilot July 11, 2025 21:39

This comment was marked as outdated.

@sebamar88 sebamar88 requested a review from Copilot July 11, 2025 21:44

This comment was marked as outdated.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sebamar88 sebamar88 requested a review from Copilot July 15, 2025 13:30
Copy link
Copy Markdown

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

This PR adds comprehensive Linux packaging support for Cheating Daddy, including build scripts, Debian installer hooks, and desktop integration.

  • Introduces new npm scripts and Makefile targets for building .deb, .rpm, and AppImage packages
  • Adds Debian lifecycle scripts (postinst, prerm, postrm) and a .desktop entry for applications menu integration
  • Updates Electron Forge configuration plus documentation (README.md, LINUX_INSTALL.md, PACKAGING_SUMMARY.md) to reflect Linux installation

Reviewed Changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/assets/cheating-daddy.desktop Desktop entry metadata for menu integration
scripts/prerm, scripts/postinst, scripts/postrm Debian package pre- and post-install/removal scripts
package.json New make:linux, make:deb, make:rpm, make:appimage scripts
forge.config.js Configured Linux makers (deb, rpm, AppImage)
Makefile Build targets for all Linux package formats
README.md, LINUX_INSTALL.md, PACKAGING_SUMMARY.md Documentation updates for Linux packaging and installation
Comments suppressed due to low confidence (2)

PACKAGING_SUMMARY.md:9

  • Update this entry to reflect that RPM packaging support has now been implemented (maker-rpm added) or adjust the status indicator accordingly.
-   **❌ .rpm package** - Requires `rpmbuild` (not installed on your system)

LINUX_INSTALL.md:33

  • The AppImage filename pattern in documentation uses hyphens but elsewhere artifacts include spaces (e.g., "Cheating Daddy-*.AppImage"). Align this step with actual filenames or escape spaces.
chmod +x Cheating-Daddy-*.AppImage

},
},
},
{
Copy link

Copilot AI Jul 15, 2025

Choose a reason for hiding this comment

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

The RPM maker config is missing desktopTemplate and scripts entries (postinst, prerm, postrm) to install the desktop file and hook scripts—add these to mirror the Debian maker setup.

Copilot uses AI. Check for mistakes.
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.

2 participants