Skip to content

Commit a09e1cd

Browse files
committed
update to v1.0.14
1 parent 8a1d4c5 commit a09e1cd

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

Formula/zoomrecovery.rb

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
class 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
2419
end

0 commit comments

Comments
 (0)