From a0a258548902f734f9d26b4ccbb4042df85fd0d1 Mon Sep 17 00:00:00 2001 From: ci010 Date: Fri, 20 Dec 2024 01:20:26 +0800 Subject: [PATCH] chore: fix brew update format --- .github/workflows/deploy-release.yml | 48 ++++++++++++++-------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/deploy-release.yml b/.github/workflows/deploy-release.yml index 1f1bc5805..5add55909 100644 --- a/.github/workflows/deploy-release.yml +++ b/.github/workflows/deploy-release.yml @@ -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);