Closed maboloshi closed 3 years ago
现在 Homebrew 中还搜索不到这个软件,自己写了个trojanx.rb 放在自己的私人源中: 建议官网创建个homebrew-tap 或者直接提交到 Homebrew/homebrew-cask哈
trojanx.rb
homebrew-tap
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
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.
现在 Homebrew 中还搜索不到这个软件,自己写了个
trojanx.rb
放在自己的私人源中: 建议官网创建个homebrew-tap
或者直接提交到 Homebrew/homebrew-cask哈