mirror of
https://github.com/Felitendo/spotifast.git
synced 2026-11-01 17:33:26 +01:00
Packages no longer install a fastpotify command or declare that they replace, provide or conflict with the old packages. Releases no longer carry the 0.9.1 bridge files, the release script only checks and sums Spotifast downloads, and the Flatpak, Homebrew, macOS and Windows recipes lose their old-identity branches and clean-ups. Packaging CI tests the v0.11.2 release instead of installing the 0.8.0 package first. The Rename page and the notes pointing to it are gone. Updates begun by 0.10.2 or earlier on Windows relaunch fastpotify.exe, which the installer no longer provides; such an install updates, but needs starting by hand once.
20 lines
903 B
Ruby
20 lines
903 B
Ruby
# frozen_string_literal: true
|
|
|
|
# native-packages supplies an owned copy, already signed when Apple credentials
|
|
# are configured. Keep it unchanged and package only this input.
|
|
require "fileutils"
|
|
require "tmpdir"
|
|
|
|
payload, output = ARGV
|
|
abort "usage: dmg.rb PAYLOAD OUTPUT.dmg" unless payload && output
|
|
abort "output already exists: #{output}" if File.exist?(output)
|
|
Dir.mktmpdir("spotifast-dmg-") do |directory|
|
|
FileUtils.cp_r(File.join(payload, "."), directory, preserve: true)
|
|
app = File.join(directory, "Spotifast.app")
|
|
abort "expected the signed Spotifast.app input" unless File.directory?(app)
|
|
File.symlink("/Applications", File.join(directory, "Applications"))
|
|
abort "DMG creation failed" unless system("hdiutil", "create", "-volname", "Spotifast",
|
|
"-srcfolder", directory, "-format", "UDZO", output)
|
|
abort "DMG verification failed" unless system("hdiutil", "verify", output)
|
|
end
|