Skip to content

Commit

Permalink
Use version modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
codello committed Mar 28, 2024
1 parent f8a9e78 commit a4194fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Casks/ultrastar-creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
version "1.2.0"
sha256 "7ca4342588b9c32f3f0ee33a964f1562fbe5619dcec3464c7a1e42fcd9ed83c5"

url "https://downloads.sourceforge.net/usc/UltraStarCreator-#{version.sub(/\.\d+$/, "")}.dmg",
url "https://downloads.sourceforge.net/usc/UltraStarCreator-#{version.major_minor}.dmg",
verified: "downloads.sourceforge.net/usc/"
name "UltraStar Creator"
desc "Create UltraStar karaoke songs from scratch"
Expand Down
6 changes: 3 additions & 3 deletions Casks/yamaha-steinberg-usb-driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version "3.1.6"
sha256 "2e6f2ad37509f8bd5ea172850c14e691b50cd399525a974acd697bc650b6109a"

url "https://download.steinberg.net/downloads_hardware/Yamaha_Steinberg_USB_Driver/Mac/#{version}/YSUSB_V#{version.delete(".")}_Mac.zip"
url "https://download.steinberg.net/downloads_hardware/Yamaha_Steinberg_USB_Driver/Mac/#{version}/YSUSB_V#{version.no_dots}_Mac.zip"
name "Yamaha Steinberg USB Driver"
desc "USB driver for Yamaha Steinberg devices"
homepage "https://o.steinberg.net/de/support/downloads_hardware/yamaha_steinberg_usb_driver.html"
Expand All @@ -14,10 +14,10 @@

auto_updates false

pkg "YSUSB_V#{version.delete(".")}_Mac/Yamaha Steinberg USB Driver V#{version}.pkg"
pkg "YSUSB_V#{version.no_dots}_Mac/Yamaha Steinberg USB Driver V#{version}.pkg"

uninstall script: {
executable: "#{staged_path}/YSUSB_V#{version.delete(".")}_Mac/Uninstall Yamaha Steinberg USB Driver.app/Contents/Resources/Scripts/delpkg.sh",
executable: "#{staged_path}/YSUSB_V#{version.no_dots}_Mac/Uninstall Yamaha Steinberg USB Driver.app/Contents/Resources/Scripts/delpkg.sh",
sudo: true,
}

Expand Down

0 comments on commit a4194fb

Please sign in to comment.