Skip to content

Commit

Permalink
chore: fix brew update format
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Dec 19, 2024
1 parent 1604f8e commit a0a2585
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,35 +77,35 @@ jobs:
const version = '${{ github.event.release.tag_name }}'.substring(1);
const fs = require('fs');
const text = `cask "xmcl" do
version "${version}"
sha256 :no_check
arch arm: "arm64", intel: "x86_64"
version "${version}"
sha256 :no_check
arch arm: "arm64", intel: "x86_64"
on_arm do
url "https://github.com/Voxelum/x-minecraft-launcher/releases/download/v${version}/xmcl-${version}-arm64.dmg"
end
on_arm do
url "https://github.com/Voxelum/x-minecraft-launcher/releases/download/v${version}/xmcl-${version}-arm64.dmg"
end
on_intel do
url "https://github.com/Voxelum/x-minecraft-launcher/releases/download/v${version}/xmcl-${version}-x64.dmg"
end
on_intel do
url "https://github.com/Voxelum/x-minecraft-launcher/releases/download/v${version}/xmcl-${version}-x64.dmg"
end
name "X Minecraft Launcher"
desc "An Open Source Minecraft Launcher with Modern UX. Provides a Disk Efficient way to manage all your Mods!"
homepage "https://xmcl.app"
name "X Minecraft Launcher"
desc "An Open Source Minecraft Launcher with Modern UX. Provides a Disk Efficient way to manage all your Mods!"
homepage "https://xmcl.app"
livecheck do
url :url
strategy :header_match
end
app "X Minecraft Launcher.app"
livecheck do
url :url
strategy :header_match
end
app "X Minecraft Launcher.app"
zap trash: [
"~/Applications/X Minecraft Launcher.app",
"~/Library/Application Support/xmcl",
"~/Library/Preferences/xmcl.plist",
"~/Library/Saved Application State/xmcl.savedState"
]
zap trash: [
"~/Applications/X Minecraft Launcher.app",
"~/Library/Application Support/xmcl",
"~/Library/Preferences/xmcl.plist",
"~/Library/Saved Application State/xmcl.savedState"
]
end
`
fs.writeFileSync('./homebrew-xmcl/Casks/xmcl.rb', text);
Expand Down

0 comments on commit a0a2585

Please sign in to comment.