Skip to content
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

[MacOS] add Qucs-S to homebrew package manager #804

Closed
dsm opened this issue Jul 5, 2024 · 11 comments
Closed

[MacOS] add Qucs-S to homebrew package manager #804

dsm opened this issue Jul 5, 2024 · 11 comments
Assignees
Milestone

Comments

@dsm
Copy link
Contributor

dsm commented Jul 5, 2024

Hi,

It would be good to add qucs-s to homebrew.

https://docs.brew.sh/Adding-Software-to-Homebrew#casks

@dsm
Copy link
Contributor Author

dsm commented Jul 8, 2024

@ra3xdh can you look at the ngspice homebrew build configuration for macos is OK for qucs-s.

ngspice.rb

@ra3xdh
Copy link
Owner

ra3xdh commented Jul 8, 2024

Yes, the ngspice build configuration contains all necessary options set.

@dsm
Copy link
Contributor Author

dsm commented Jul 8, 2024

I'll add qucs-s continuous to homebrew below is the draft.

cask "qucs-s@nightly" do
  version "24.2.1"
  arch arm: "arm64", intel: "x86_64"

  url "https://github.com/ra3xdh/qucs_s/releases/download/continuous_build/Qucs-S-#{version}-macOS-#{arch}.dmg",
      verified: "github.com/ra3xdh/qucs_s/"

  name "Qucs-S"
  desc "Quite Universal Circuit Simulator with SPICE"
  homepage "https://ra3xdh.github.io/"

  depends_on formula: "ngspice"

  livecheck do
    url :url
    regex(%r{href=.*?/Qucs-S[._-]v?(\d+(?:\.\d+)+)-macOS-(arm64|x86_64)\.dmg}i)
  end

  app "qucs-s.app", target: "Qucs-S.app"

  zap trash: [
    "~/Library/Application Support/qucs-s",
    "~/Library/Preferences/com.example.qucs-s.plist",
    "~/Library/Saved Application State/com.example.qucs-s.savedState",
  ]
end

@dsm
Copy link
Contributor Author

dsm commented Jul 17, 2024

I created this PR to solve this issue, Homebrew/homebrew-cask#179918

@dsm
Copy link
Contributor Author

dsm commented Jul 17, 2024

this is the final code for to add cask to brew but macos on arm binaries must be sign and notarize and my PR discarded so we need apple developer account but no one can afford this $99 fee so issue should be close.

cask "qucs-s@nightly" do
  arch arm: "arm64", intel: "x86_64"

  version "24.2.1"
  sha256 :no_check

  url "https://github.com/ra3xdh/qucs_s/releases/download/continuous_build/Qucs-S-#{version}-macOS-#{arch}.dmg",
      verified: "github.com/ra3xdh/qucs_s/"
  name "Qucs-S"
  desc "Quite Universal Circuit Simulator with SPICE"
  homepage "https://ra3xdh.github.io/"

  livecheck do
    url :url
    strategy :github_latest
  end

  depends_on formula: "ngspice"

  app "qucs-s.app", target: "Qucs-S.app"

  zap trash: [
    "$HOME/Library/Application Support/qucs-s",
    "$HOME/Library/Preferences/com.example.qucs-s.plist",
    "$HOME/Library/Saved Application State/com.example.qucs-s.savedState",
  ]

@ra3xdh
Copy link
Owner

ra3xdh commented Jul 18, 2024

@dsm Thanks for effort. I don't consider buying Apple developer certificate to sign the binaries. We can try the approach using own tap. I can create an empty repository for example qucs_s_tap at my ra3xdh account. Then you will create a PR to upload a necessary files. After the tap setup has finished I will update the installation instructions at the Qucs-S website.

@dsm
Copy link
Contributor Author

dsm commented Jul 18, 2024

in repo name should has homebrew- prefix ex. homebrew-qucs-s and then below commands works.

brew tap ra3xdh/qucs-s && brew install qucs-s

repository-naming-conventions-and-assumptions

@ra3xdh
Copy link
Owner

ra3xdh commented Jul 18, 2024

@dsm I have just created https://github.com/ra3xdh/homebrew-qucs-s and invited you as collaborator. You may send PR or use direct push to populate this repository. Then please send me an instruction about MacOS installation for placing on Qucs-S website. You may also make a PR to https://github.com/ra3xdh/ra3xdh.github.io/ with MacOS install instruction.

@dsm
Copy link
Contributor Author

dsm commented Jul 18, 2024

I accepted your invitation thanks, I'll test and push the necessary things.

@dsm
Copy link
Contributor Author

dsm commented Jul 18, 2024

I updated homebrew-qucs-s repo so macos brew installation is succesfull

@ra3xdh
Copy link
Owner

ra3xdh commented Jul 19, 2024

I have updated the installation instructions on the website. Closing this as completed.

@ra3xdh ra3xdh closed this as completed Jul 19, 2024
@ra3xdh ra3xdh added this to the 24.3.0 milestone Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants