File tree Expand file tree Collapse file tree 1 file changed +12
-17
lines changed
Expand file tree Collapse file tree 1 file changed +12
-17
lines changed Original file line number Diff line number Diff line change 11class Zoomrecovery < Formula
22 desc "Reset Zoom state and spoof network identity for Zoom"
33 homepage "https://github.com/twinboi90/ZoomRecovery"
4- url "https://github.com/twinboi90/ZoomRecovery/archive/refs/tags/v1.0.13 .tar.gz"
5- sha256 "1429c64baaa002976c2db4475593f69db69ad10635e375bf90874d915d586f89 "
6- version "1.0.13 "
7-
4+ url "https://github.com/twinboi90/ZoomRecovery/archive/refs/tags/v1.0.14 .tar.gz"
5+ sha256 "ab7cdc7f55bcd47e8eb1a0c53d9febef1c7246a3e4bd54997224c420023c2caa "
6+ version "1.0.14 "
7+
88 depends_on "spoof-mac"
99
10- inreplace "zoomrecovery" do |s |
11- replaced = false
12- [
13- /BAKED_VERSION\s *=\s *["'].*?["']/ ,
14- /BAKED_VERSION\s *=\s *[0-9]+\. [0-9]+(?:\. [0-9]+)?/ ,
15- /BAKED_VERSION\s *:\s *["'].*?["']/ ,
16- /BAKED_VERSION\s *[:=]\s *["']?.*?["']?/
17- ] . each do |rx |
18- if s . sub! ( rx , "BAKED_VERSION=\" #{ version } \" " )
19- replaced = true
20- break
21- end
10+ def install
11+ inreplace "zoomrecovery" , "VERSION_PLACEHOLDER" , version . to_s
12+ chmod 0755 , "zoomrecovery"
13+ bin . install "zoomrecovery"
14+ end
15+
16+ test do
17+ assert_match "zoomrecovery #{ version } " , shell_output ( "#{ bin } /zoomrecovery --version" )
2218 end
23- s . prepend ( "BAKED_VERSION=\" #{ version } \" \n " ) unless replaced
2419end
You can’t perform that action at this time.
0 commit comments