pycharm: add command-line launcher

This commit is contained in:
MoonFruit 2024-01-08 17:40:35 +08:00
parent 7e8afac48b
commit 9bf8c28c9b
No known key found for this signature in database
GPG Key ID: 86EE2A2C61AB27B3
1 changed files with 1 additions and 9 deletions

View File

@ -24,15 +24,7 @@ cask "pycharm" do
depends_on macos: ">= :high_sierra" depends_on macos: ">= :high_sierra"
app "PyCharm.app" app "PyCharm.app"
binary "#{appdir}/PyCharm.app/Contents/MacOS/pycharm"
uninstall_postflight do
ENV["PATH"].split(File::PATH_SEPARATOR).map { |path| File.join(path, "charm") }.each do |path|
if File.readable?(path) &&
File.readlines(path).grep(/# see com.intellij.idea.SocketLock for the server side of this interface/).any?
File.delete(path)
end
end
end
zap trash: [ zap trash: [
"~/Library/Application Support/JetBrains/PyCharm#{version.major_minor}", "~/Library/Application Support/JetBrains/PyCharm#{version.major_minor}",