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

Homebrew distribution #167

Open
IGPenguin opened this issue Dec 11, 2019 · 2 comments
Open

Homebrew distribution #167

IGPenguin opened this issue Dec 11, 2019 · 2 comments
Assignees
Labels
help wanted unknown solution or major effort inevitable new feature idea for new feature

Comments

@IGPenguin
Copy link
Owner

IGPenguin commented Dec 11, 2019

🐞 Whats wrong

The installation process is too complicated.

🌈 Desired state

brew install mobile-toolkit

📏 Challenges

I have not done anything like this yet.

📂 Sources

https://kylebebak.github.io/post/distribute-program-via-homebrew
www.google.com

@IGPenguin IGPenguin added help wanted unknown solution or major effort inevitable new feature idea for new feature labels Dec 11, 2019
@mkj-is mkj-is self-assigned this Oct 1, 2020
@radimvaculik
Copy link
Contributor

radimvaculik commented Dec 29, 2020

brew create https://github.com/IntergalacticPenguin/mobile-toolkit/archive/1.1.0.tar.gz
class MobileToolkit < Formula
  desc "📱 Shell scripts for Android and iOS device management"
  homepage "https://github.com/IntergalacticPenguin/mobile-toolkit"
  url "https://github.com/IntergalacticPenguin/mobile-toolkit/archive/1.1.0.tar.gz"
  sha256 "e8d48513e3fb393072eeed2b850146b9ebbf9ebbd2c3f5d4c069a4c4645f2eaa"
  license "MIT"

  def install
    bin.install "ios/icheckdevice"
    bin.install "ios/icrashlogs"
    bin.install "ios/igif"
    bin.install "ios/iinstall"
    bin.install "ios/ilog"
    bin.install "ios/ireboot"
    bin.install "ios/irecord"
    bin.install "ios/iscreenshot"
    bin.install "ios/isimulator"
    bin.install "ios/iuninstall"

    bin.install "android/aanimationspeed"
    bin.install "android/aappinfo"
    bin.install "android/abounds"
    bin.install "android/abuildproject"
    bin.install "android/acamera"
    bin.install "android/acheckdevice"
    bin.install "android/acontrol"
    bin.install "android/aemulator"
    bin.install "android/aerase"
    bin.install "android/afontscale"
    bin.install "android/agoogleplay"
    bin.install "android/ainstall"
    bin.install "android/akill"
    bin.install "android/alaunch"
    bin.install "android/alog"
    bin.install "android/aoptions"
    bin.install "android/apaste"
    bin.install "android/apermissionreset"
    bin.install "android/areboot"
    bin.install "android/arecord"
    bin.install "android/ascreenshot"
    bin.install "android/aservices"
    bin.install "android/auninstall"
    bin.install "android/aurl"
    bin.install "android/awipe"
    bin.install "android/awireless"
  end
end

Optionally, you can add depends_on part (for example for libimobiledevice)

brew audit --new mobile-toolkit

Solve all issues found via audit (for example, add test do part)

brew install mobile-toolkit

⚠️ But there is a problem with relative path to common_tools. The best option is to create distribute file or put all files into same folder (but prefer dist file).

Then just submit a pull request to https://github.com/Homebrew/homebrew-core 🎉

See:

@radimvaculik
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted unknown solution or major effort inevitable new feature idea for new feature
Projects
None yet
Development

No branches or pull requests

3 participants