Old 09-03-2018, 01:35 PM   #1
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 7,577
Default Bash script to install Reaper

I finally got too bored downloading the Reaper .dmg with the browser, opening the .dmg in Finder etc and made a bash script to do it from the command line :

Code:
#!/bin/bash
wget $1 -O cockosreaper.dmg
rm cockosreaperbar.cdr
/usr/bin/hdiutil convert -quiet cockosreaper.dmg -format UDTO -o cockosreaperbar
/usr/bin/hdiutil attach -quiet -nobrowse -noverify -noautoopen -mountpoint cockos_temp_mount cockosreaperbar.cdr
cp -R cockos_temp_mount/REAPER64.app /Applications
hdiutil detach cockos_temp_mount
rm cockosreaperbar.cdr 
rm cockosreaper.dmg
This assumes you have the wget program available. The script is kind of horrible but I just could not figure out how to do it more straight forwardly. (The conversion to a temporary CD image file needed to be done because using hdiutil directly to mount the Reaper .dmg file causes the license text to appear in terminal and it doesn't seem to be possible to automate accepting that.)

Anybody have any ideas if this could be done more cleanly? The Windows version is just 2 lines... (Though that does still cause a Windows security prompt to appear when running the installer, which is annoying. On OS-X this can be done with just normal user privileges.)
__________________
For info on SWS Reaper extension plugin (including Xenakios' previous extension/actions) :
http://www.sws-extension.org/
https://github.com/Jeff0S/sws
--
Xenakios blog (about HourGlass, Paul(X)Stretch and λ) :
http://xenakios.wordpress.com/
Xenakios is online now   Reply With Quote
Old 09-04-2018, 03:49 AM   #2
Vasily
Human being with feelings
 
Join Date: Mar 2016
Location: Ukraine
Posts: 98
Default

I believe, `brew cask` is more straightforward way.
it already has reaper:

$ brew cask info reaper
reaper: 5.941
https://www.reaper.fm/
Not installed
From: https://github.com/Homebrew/homebrew...asks/reaper.rb
==> Name
REAPER
==> Artifacts
REAPER64.app (App)
ReaMote64.app (App)
Vasily is offline   Reply With Quote
Old 09-04-2018, 03:56 AM   #3
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 7,577
Default

Quote:
Originally Posted by Vasily View Post
I believe, `brew cask` is more straightforward way.
it already has reaper:
Cool, weird I didn't check if that would have been the case! Of course that only works for the official versions and not the landoleet ones, though, which I am more interested in.
__________________
For info on SWS Reaper extension plugin (including Xenakios' previous extension/actions) :
http://www.sws-extension.org/
https://github.com/Jeff0S/sws
--
Xenakios blog (about HourGlass, Paul(X)Stretch and λ) :
http://xenakios.wordpress.com/
Xenakios is online now   Reply With Quote
Old 09-04-2018, 04:46 AM   #4
Vasily
Human being with feelings
 
Join Date: Mar 2016
Location: Ukraine
Posts: 98
Default

Quote:
Originally Posted by Xenakios View Post
Of course that only works for the official versions and not the landoleet ones, though, which I am more interested in.
well, you can hack the cask formula:

1. name it differently (say, reaper-devel)
2. set sha256 to :no_check
3. set URL to landoleet
UPD: 4. don't forget to set a conflicts_with so you can't install reaper and reaper-devel casks at once

and use `brew cask edit reaper-devel; brew cask upgrade reaper-devel` when you want to get a different version.

if you won't like editing the version in your caskfile, you can also save it to a separate file and make your cask get version from this file.

Last edited by Vasily; 09-04-2018 at 04:53 AM.
Vasily is offline   Reply With Quote
Old 09-04-2018, 04:51 AM   #5
Vasily
Human being with feelings
 
Join Date: Mar 2016
Location: Ukraine
Posts: 98
Default

if you switch between landoleet and official versions, you may want to set URL from reaper.rm when you get an official version (without -pre, -rc or whatever in it's name) and from landoleet otherwise.
Vasily is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:25 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.