Skip to content

Commit

Permalink
Merge pull request #16 from daeho-ro/qstudio-3.06
Browse files Browse the repository at this point in the history
qstudio: add new cask and update readme
  • Loading branch information
daeho-ro authored Jul 20, 2024
2 parents 944a547 + d737abe commit de4530b
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 9 deletions.
36 changes: 36 additions & 0 deletions Casks/qstudio.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
cask "qstudio" do
version "3.06"
sha256 "49dda3a00e68c545becf073bcc6a18a5f0cd315feb58465c48d24a00b6b726ae"

url "https://github.com/timeseries/qstudio/releases/download/#{version}/qstudio.jar",
verified: "github.com/timeseries/qstudio/"
name "qstudio"
desc "Free SQL Analysis Tool"
homepage "https://www.timestored.com/qstudio/"

livecheck do
url :url
strategy :github_latest
end

# shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
shimscript = "#{staged_path}/qstudio.wrapper.sh"
binary shimscript, target: "qstudio"

preflight do
File.write shimscript, <<~EOS
#!/bin/sh
cd "$(dirname "$(readlink -n "${0}")")" && \
java -jar 'qstudio.jar' "$@"
EOS
end

caveats do
depends_on_java "8+"
end

zap trash: [
"~/Library/Preferences/com.timestored.qstudio.plist",
"~/qStudio",
]
end
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ brew install draftbrew/tap/<formula|cask>
## Formulaes and casks

```
.
├── Casks
│   ├── execs.rb
│   ├── notepadnext.rb
│   ├── satyrn.rb
│   └── space-cadet-pinball.rb
└── Formula
   ├── aider.rb
   └── ducker.rb
> tree Casks Formula
Casks
├── execs.rb
├── notepadnext.rb
├── qstudio.rb
├── satyrn.rb
└── space-cadet-pinball.rb
Formula
├── aider.rb
├── ducker.rb
├── dut.rb
└── posting.rb
2 directories, 9 files
```

0 comments on commit de4530b

Please sign in to comment.