Skip to content

Commit

Permalink
115: fix installation method
Browse files Browse the repository at this point in the history
  • Loading branch information
Loyalsoldier committed May 4, 2024
1 parent 8bf7fb7 commit c7d9de9
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Casks/1/115.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,28 @@

auto_updates true
depends_on macos: ">= :high_sierra"
# This .dmg cannot be extracted normally
container type: :naked

app "115生活.app"
preflight do
system_command "/usr/bin/hdiutil",
args: ["attach", "-nobrowse", "#{staged_path}/115pc_v#{version}.dmg"]
system_command "/Volumes/115生活/115生活.app/Contents/MacOS/115setup"
system_command "/usr/bin/hdiutil",
args: ["detach", "/Volumes/115生活"]
end

uninstall quit: "org.115pc.115Desktop"
uninstall delete: [
"/Applications/115生活.app",
"/Applications/115生活.app/Contents/app/115DocViewer.app",
"/Applications/115生活.app/Contents/app/115Music.app",
"/Applications/115生活.app/Contents/app/115Photo.app",
"/Applications/115生活.app/Contents/app/115Player.app",
]

zap trash: [
"~/Library/Application Support/115*",
"~/Library/Application Support/115生活",
"~/Library/Saved Application State/org.115pc.115*",
]
end

0 comments on commit c7d9de9

Please sign in to comment.