Skip to content

Add macOS support - #7

Merged
shesek merged 7 commits into
masterfrom
202609-macos
Sep 2, 2026
Merged

Add macOS support#7
shesek merged 7 commits into
masterfrom
202609-macos

Conversation

@shesek

@shesek shesek commented Sep 2, 2026

Copy link
Copy Markdown
Owner

No description provided.

@shesek shesek mentioned this pull request Sep 2, 2026
@shesek
shesek requested a balanced review from Copilot September 2, 2026 07:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Architecture gating, non-atomic app extraction, and reduced MSRV coverage need correction.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds macOS support for downloading, extracting, and running Electrum.

Changes:

  • Adds DMG download/extraction and platform-specific executable paths.
  • Adds macOS checksums and CI coverage.
  • Updates CI runners and Rust-version coverage.
File summaries
File Description
build.rs Downloads and extracts macOS DMGs.
src/lib.rs Uses platform-specific executable paths.
src/versions.rs Defines Linux and macOS executable paths.
.github/workflows/test.yml Adds macOS CI and updates runners.
sha256/electrum-4.1.5.dmg-SHA256SUM Adds macOS checksum.
sha256/electrum-4.1.5-x86_64.AppImage-SHA256SUM Adds Linux checksum.
sha256/electrum-4.5.4.dmg-SHA256SUM Adds macOS checksum.
sha256/electrum-4.5.4-x86_64.AppImage-SHA256SUM Adds Linux checksum.
sha256/electrum-4.6.2.dmg-SHA256SUM Adds macOS checksum.
sha256/electrum-4.6.2-x86_64.AppImage-SHA256SUM Adds Linux checksum.
sha256/electrum-4.7.0.dmg-SHA256SUM Adds macOS checksum.
sha256/electrum-4.7.0-x86_64.AppImage-SHA256SUM Adds Linux checksum.
Review details
  • Files reviewed: 8/12 changed files
  • Comments generated: 4
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

fail-fast: false
matrix:
toolchain: [ "1.70", "stable", "nightly" ]
toolchain: [ "1.88", "stable", "nightly" ]
Comment thread build.rs
Comment on lines +17 to +19
#[cfg(target_os = "macos")]
fn download_filename() -> String {
format!("electrum-{}.dmg", &VERSION)
Comment thread build.rs
Comment on lines +96 to +106
let app_dest = download_dir.join("Electrum.app");
let app_src = mounted_dmg.0.join("Electrum.app");
let cp_output = std::process::Command::new("cp")
.args(["-R", app_src.to_str().unwrap(), app_dest.to_str().unwrap()])
.output()
.expect("failed to copy Electrum.app");
assert!(
cp_output.status.success(),
"cp -R failed: {}",
String::from_utf8_lossy(&cp_output.stderr)
);
Comment thread src/versions.rs
Comment on lines +11 to +12
#[cfg(target_os = "macos")]
pub const EXE_REL_PATH: &str = "Electrum.app/Contents/MacOS/run_electrum";
@shesek
shesek merged commit eae0b31 into master Sep 2, 2026
25 checks passed
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.

3 participants