Skip to content

Commit

Permalink
Merge pull request #544 from Brewforge/fix-flowus
Browse files Browse the repository at this point in the history
fix(#488): flowus coding
  • Loading branch information
Oscaner authored Jan 17, 2025
2 parents 4182a28 + 1e36fb5 commit c9a73c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Casks/f/flowus.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
require "net/http"
require "uri"

cask "flowus" do
arch arm: "arm64", intel: "x64"

Expand All @@ -20,6 +17,9 @@
livecheck do
url "https://flowus.cn/download"
strategy :page_match do |page|
require "net/http"
require "uri"

page.scan(/download-([0-9a-f]+)\.js/).map do |match|
uri = URI("https://cdn2.flowus.cn/assets/_next/static/chunks/pages/download-#{match[0]}.js")
res = Net::HTTP.get_response(uri)
Expand Down

0 comments on commit c9a73c3

Please sign in to comment.