[PR #266] [MERGED] Build a macOS bundle for Intel and ARM #350

Closed
opened 2026-05-05 22:17:22 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/feschber/lan-mouse/pull/266
Author: @mrled
Created: 2/18/2025
Status: Merged
Merged: 2/21/2025
Merged by: @feschber

Base: mainHead: macos-bundle


📝 Commits (4)

  • 50720e5 Build a macOS bundle for Intel and ARM
  • 1b74ba8 Build icon.icns file in a script
  • a10a9b4 Add imagemagick
  • 4cf8997 Add macOS bundling to pre/tagged-release actions

📊 Changes

5 files changed (+127 additions, -20 deletions)

View changed files

📝 .github/workflows/pre-release.yml (+27 -7)
📝 .github/workflows/rust.yml (+26 -6)
📝 .github/workflows/tagged-release.yml (+27 -7)
📝 Cargo.toml (+5 -0)
scripts/makeicns.sh (+42 -0)

📄 Description

Build a macOS bundle on Intel and ARM. This generates a nice double-clickable Lan Mouse.app application.

I've tested the bundling locally and it does work for me, but the Github Actions might require some adjustment.

Let me know if anything needs adjustment, I am not very familiar with the rust/cargo world so maybe I made some mistakes :)

Includes an icns file created from the existing icon. I created it like this:

cd lan-mouse-gtk/resources
mkdir icon.iconset
magick convert -density 256x256 -background none de.feschber.LanMouse.svg icon.iconset/icon_512x512@2x.png
magick convert icon.iconset/icon_512x512@2x.png -resize 16x16 icon.iconset/icon_16x16.png
magick convert icon.iconset/icon_512x512@2x.png -resize 32x32 icon.iconset/icon_16x16@2x.png
magick convert icon.iconset/icon_512x512@2x.png -resize 32x32 icon.iconset/icon_32x32.png
magick convert icon.iconset/icon_512x512@2x.png -resize 64x64 icon.iconset/icon_32x32@2x.png
magick convert icon.iconset/icon_512x512@2x.png -resize 128x128 icon.iconset/icon_128x128.png
magick convert icon.iconset/icon_512x512@2x.png -resize 256x256 icon.iconset/icon_128x128@2x.png
magick convert icon.iconset/icon_512x512@2x.png -resize 256x256 icon.iconset/icon_256x256.png
magick convert icon.iconset/icon_512x512@2x.png -resize 512x512 icon.iconset/icon_256x256@2x.png
magick convert icon.iconset/icon_512x512@2x.png -resize 512x512 icon.iconset/icon_512x512.png 
iconutil -c icns icon.iconset

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/feschber/lan-mouse/pull/266 **Author:** [@mrled](https://github.com/mrled) **Created:** 2/18/2025 **Status:** ✅ Merged **Merged:** 2/21/2025 **Merged by:** [@feschber](https://github.com/feschber) **Base:** `main` ← **Head:** `macos-bundle` --- ### 📝 Commits (4) - [`50720e5`](https://github.com/feschber/lan-mouse/commit/50720e550937d7cba0f6f8019ed8b8969e5581e1) Build a macOS bundle for Intel and ARM - [`1b74ba8`](https://github.com/feschber/lan-mouse/commit/1b74ba8049c5f43a7115819822ea4d055ff1f17d) Build icon.icns file in a script - [`a10a9b4`](https://github.com/feschber/lan-mouse/commit/a10a9b42a3019f0662a3cd2686ac1f719c74254e) Add imagemagick - [`4cf8997`](https://github.com/feschber/lan-mouse/commit/4cf8997886efe440c799506fe4c4b90eb3f2fd81) Add macOS bundling to pre/tagged-release actions ### 📊 Changes **5 files changed** (+127 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pre-release.yml` (+27 -7) 📝 `.github/workflows/rust.yml` (+26 -6) 📝 `.github/workflows/tagged-release.yml` (+27 -7) 📝 `Cargo.toml` (+5 -0) ➕ `scripts/makeicns.sh` (+42 -0) </details> ### 📄 Description Build a macOS bundle on Intel and ARM. This generates a nice double-clickable `Lan Mouse.app` application. I've tested the bundling locally and it does work for me, but the Github Actions might require some adjustment. Let me know if anything needs adjustment, I am not very familiar with the rust/cargo world so maybe I made some mistakes :) Includes an icns file created from the existing icon. I created it like this: ```sh cd lan-mouse-gtk/resources mkdir icon.iconset magick convert -density 256x256 -background none de.feschber.LanMouse.svg icon.iconset/icon_512x512@2x.png magick convert icon.iconset/icon_512x512@2x.png -resize 16x16 icon.iconset/icon_16x16.png magick convert icon.iconset/icon_512x512@2x.png -resize 32x32 icon.iconset/icon_16x16@2x.png magick convert icon.iconset/icon_512x512@2x.png -resize 32x32 icon.iconset/icon_32x32.png magick convert icon.iconset/icon_512x512@2x.png -resize 64x64 icon.iconset/icon_32x32@2x.png magick convert icon.iconset/icon_512x512@2x.png -resize 128x128 icon.iconset/icon_128x128.png magick convert icon.iconset/icon_512x512@2x.png -resize 256x256 icon.iconset/icon_128x128@2x.png magick convert icon.iconset/icon_512x512@2x.png -resize 256x256 icon.iconset/icon_256x256.png magick convert icon.iconset/icon_512x512@2x.png -resize 512x512 icon.iconset/icon_256x256@2x.png magick convert icon.iconset/icon_512x512@2x.png -resize 512x512 icon.iconset/icon_512x512.png iconutil -c icns icon.iconset ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 22:17:22 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/lan-mouse#350
No description provided.