JimLee1996 / TrojanX

Trojan Client for macOS, ported from ShadowsocksX-NG. Please use it in compliance with laws, regulations and rules.
GNU General Public License v3.0
601 stars 106 forks source link

建议发布到 Homebrew 哈 #32

Closed maboloshi closed 3 years ago

maboloshi commented 4 years ago

现在 Homebrew 中还搜索不到这个软件,自己写了个trojanx.rb 放在自己的私人源中: 建议官网创建个homebrew-tap 或者直接提交到 Homebrew/homebrew-cask

cask 'trojanx' do
  version '0.3'
  sha256 '1ec5aa55de3ef9c0e1661fcc37f7ef1a038c3c4a1c9286e5bad9641cc29b9f5d'

  url "https://github.com/JimLee1996/TrojanX/releases/download/#{version}/TrojanX.app.zip"
  appcast 'https://github.com/JimLee1996/TrojanX/releases.atom'
  name 'TrojanX'
  homepage 'https://github.com/JimLee1996/TrojanX'

  auto_updates true
  depends_on macos: '>= :sierra'

  app 'TrojanX.app'

  uninstall delete:    '/Library/Application Support/TrojanX',
            launchctl: [
                         'TrojanX.http',
                         'TrojanX.trojan',
                       ],
            quit:      'TrojanX',
            script:    {
                         executable: "#{appdir}/TrojanX.app/Contents/Resources/proxy_conf_helper",
                         args:       ['--mode', 'off'],
                         sudo:       true,
                       }

  zap trash: [
               '~/.TrojanX',
               '~/Library/Application Support/TrojanX',
               '~/Library/Preferences/TrojanX.plist',
               '/private/var/folders/*/*/*/TrojanX',
               '~/Library/Logs/trojan.log',
               '~/Library/Logs/privoxy.log',
             ]
end
singularitti commented 3 years ago

I have done this, see PR 95420. You can update the cask to add the things I hadn't added to it @maboloshi. This issue can be closed.