Here is a automatic update method for plexconnect by @wahlmanj on osx. A pull request has been made to automate this process and includes a easy to follow readme:
https://github.com/wahlmanj/PlexConnect/tree/master/update/OSX
Here is a automatic update method for plexconnect by @wahlmanj on osx. A pull request has been made to automate this process and includes a easy to follow readme:
https://github.com/wahlmanj/PlexConnect/tree/master/update/OSX
You should add a note, that the GITHUB app needs to be installed...
You should add a note, that the GITHUB app needs to be installed...
Why for?
git comes with osx. do you mean some other github app?
Oh. It does? I wasn't aware of that... installed that nice github GUI and *thought* the git command came with that.
Oh. It does? I wasn't aware of that... installed that nice github GUI and *thought* the git command came with that.
I didn't install github app and it works so I assume it comes with osx?
No, git comes with the command-line tools that are installed with Xcode (or separately from Xcode, if you want).
(Unless they added it to Mavericks, but as far as I can tell that isn't the case.)
No, git comes with the command-line tools that are installed with Xcode (or separately from Xcode, if you want).
(Unless they added it to Mavericks, but as far as I can tell that isn't the case.)
I don't have any of that installed. Fresh 10.9.1 install.
Git is not installed by default on OS X, be it 10.6, 10.7, 10.8, or 10.9.
As mentioned, you either need to install it from [here](http://git-scm.com) or possibly as part of the command line utilities install for Xcode. I'd personally go for the former option of getting it from the git website.
Git is not installed by default on OS X, be it 10.6, 10.7, 10.8, or 10.9.
As mentioned, you either need to install it from here or possibly as part of the command line utilities install for Xcode. I'd personally go for the former option of getting it from the git website.
That's absolutely absurd! MY OSX MAVERICKS CAME WITH GIT!
That's absolutely absurd! MY OSX MAVERICKS CAME WITH GIT!
You mentioned a hackintosh. Unless I'm mistaken, that would be a non Apple intel machine running OS X, correct? In which case, it is quite possible whatever steps were required to get OS X to install on the box has installed git.
You mentioned a hackintosh. Unless I'm mistaken, that would be a non Apple intel machine running OS X, correct? In which case, it is quite possible whatever steps were required to get OS X to install on the box has installed git.
My bad guys...I found Xcode. So sorry!!!
"There’s more, too. OS X Mavericks is built on the Darwin 13 core, the same core in iOS 6 and still one version behind iOS 7’s core as has been the tradition for years now. Other open source components have been updated, with Apache 2.2.24, Ruby 2, Python 2.7.5, PHP 5.4.17, SQLite 3.7.13, Bash 3.2, Emacs 22.1.1, VI 7.3 and more included in OS X now. Developer tools, such as git and g++, as well as the Java runtime, will request to download and install when you first try to use them but aren’t included out-of-the-box. "
admins - please delete posts that reflected my stupidity and blindness...sorry everyone!
Hey, we all have stupid/blind posts here; welcome to the club. :)
Hey, we all have stupid/blind posts here; welcome to the club. :)
No way. I don't even know how I missed Xcode. Did a search and it was the first result. Just jumped to conclusions too fast. Again, sorry everyone!
The lack of git not being installed by default was on of the reasons auto updating a was not built in to the main code.
I don’t see why you could’t have a automated installation for this on osx by inserting a simple command in one of the bash scripts:
git
Then it would ask you to install Xcode as seen here and set itself up for the user:

Why not just build this into the main code? You should be able to even have a equivalent for linux and windows where it asks the user to install git when the code is ran. I don’t see how this code could be even much work to automate this into the main branch if desired by the forum leads.
You would still need to create a app/shortcut to run the update if desired but that would be trivial to the rest of the code and could be automated on any OS. Here is the mac version of the updater built using automator:
updater.zip
You can also have this run during each boot if you put it in the login items on osx.

I would think you could have a script that copies the different Os’s app/shortcut somewhere in the main code to install the updater wherever you want on the various systems if desired.
Osx /Applications
Windows /some_dir
Linux /some_dir
You could make a new dir called update in the main code with the separate os folders as well with their update scripts etc.
One query / problem I see with the auto-update is how it will deal with a file that is potentially open / running. Usually when I'm pulling a commit the code isn't being executed so it isn't a problem, but in this case it may be as the script / daemon would likely be running. Does git error / skip the file?
Perhaps a better solution would be for the update script to check if the script / daemon is running, quit it, update and then relaunch.
I was about to mention checking if the process is running before updating, then it dawned on this foolish ape's mind that this is a manually run app, not something automatic, so you'd do it at a time when things are not streaming, so that somewhat invalidates my points.
Having said that, a script running as cron job that checks for the process being run, polls something to find out if things are being streamed (not to sure what you'd check for that, perhaps the process / deamon could, when queired return what it is doing, eg; idle, streaming, transcoding, etc...) and if not, kill the process, grab the the latest code, then relaunch the script.
@Markuswarren I was thinking on osx to just put it in startup items so it runs once per boot unless you want to manually update at will. Some of the code I borrowed from your topic actually, I was hoping you would come across this ;)
Here is my pull req if you wanted to take a look at it with a link to the updated app:
https://github.com/wahlmanj/PlexConnect/tree/master/update/OSX
It needs something that says ALREADY UP TO DATE or FINISHED UPDATING. Maybe a pop up window or else this app is useless.