-
Notifications
You must be signed in to change notification settings - Fork 51
feat: add Fedora RPM packaging support #101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -83,13 +83,18 @@ Download the `.exe` installer directly from the [Releases page](https://github.c | |
|
|
||
| ### Linux | ||
|
|
||
| Three packages are published to the [Releases page](https://github.com/EtienneLescot/openscreen/releases) for each version. Pick the one that matches your distro: | ||
| Packages are published to the [Releases page](https://github.com/EtienneLescot/openscreen/releases) for each version. Pick the one that matches your distro: | ||
|
|
||
| **Debian / Ubuntu / Pop!_OS (`.deb`)** | ||
| ```bash | ||
| sudo apt install ./Openscreen-Linux-latest.deb | ||
| ``` | ||
|
|
||
| **Fedora / RHEL / CentOS (`.rpm`)** | ||
| ```bash | ||
| sudo dnf install ./Openscreen-Linux-latest.rpm | ||
| ``` | ||
|
|
||
| **Arch / Manjaro (`.pacman`)** | ||
| ```bash | ||
| sudo pacman -U Openscreen-Linux-latest.pacman | ||
|
|
@@ -101,6 +106,19 @@ chmod +x Openscreen-Linux-*.AppImage | |
| ./Openscreen-Linux-*.AppImage | ||
| ``` | ||
|
|
||
| **Building from Source (Local Compilation)** | ||
| If you want to build and install the application locally on Fedora/RPM systems: | ||
| ```bash | ||
| # Clone the repository and install dependencies | ||
| npm install | ||
|
|
||
| # Compile and package only the RPM target | ||
| npm run build:rpm | ||
|
|
||
| # Install the generated RPM locally | ||
| sudo dnf install ./release/1.6.0/Openscreen-Linux-*.rpm | ||
| ``` | ||
|
Comment on lines
+118
to
+120
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Hardcoded release version in build output paths. Both the documentation and the Flatpak manifest hardcode the
📍 Affects 2 files
🤖 Prompt for AI Agents |
||
|
|
||
| **NixOS / Nix (flake)** | ||
|
|
||
| Try without installing: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -78,7 +78,8 @@ | |
| "target": [ | ||
| "AppImage", | ||
| "deb", | ||
| "pacman" | ||
| "pacman", | ||
| "rpm" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Build will produce Or, if you want to keep this PR focused on Flatpak-only, drop the |
||
| ], | ||
| "icon": "icons/icons/png", | ||
| "artifactName": "${productName}-Linux-${version}.${ext}", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,7 +30,8 @@ | |
| "build:mac": "npm run build:native:mac && tsc && vite build && electron-builder --mac", | ||
| "build:native:win": "node scripts/build-windows-wgc-helper.mjs", | ||
| "build:win": "npm run build:native:win && tsc && vite build && electron-builder --win --config.npmRebuild=false", | ||
| "build:linux": "tsc && vite build && electron-builder --linux AppImage deb pacman --config.npmRebuild=false", | ||
| "build:linux": "tsc && vite build && electron-builder --linux AppImage deb pacman rpm --config.npmRebuild=false", | ||
| "build:rpm": "tsc && vite build && electron-builder --linux rpm --config.npmRebuild=false", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| "test": "vitest --run", | ||
| "test:watch": "vitest", | ||
| "test:cursor-native:win": "node scripts/test-windows-native-cursor.mjs", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Use the versioned release filenames.
Electron Builder produces
Openscreen-Linux-${version}.${ext}, notOpenscreen-Linux-latest.*. These commands will fail after downloading the published assets.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents