Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(iTunes) Update to latest version and fix install errors #527

Merged
merged 3 commits into from
Feb 3, 2017

Conversation

lennartb-
Copy link

This fixes the invalid cast exception from Object[] to Version[], adds a link to the 32 bit version and points both 32 and 64 bit to the latest version

@gep13
Copy link
Member

gep13 commented Jan 14, 2017

@lennartb- thank you for taking the time to update this, however, there would still need to be some work done here before we could merge it in. iTunes is actually currently what we call a ketatin automatic package, and we are in the process of moving these sorts of packages to be AU packages. You have done part of the work to get this package there. Would you be interested in doing the rest?

@lennartb-
Copy link
Author

lennartb- commented Jan 14, 2017

Sure, are there docs on how to do this?
Edit: Oh, its called Ketarin. Found the docs here: https://github.com/chocolatey/choco/wiki/AutomaticPackages
I'll check it out

@pascalberger
Copy link
Member

@lennartb- Ketarin was the old tool used. Now we're in the process to rewrite everything to a new tool (AU). You can find documentationo about it here.

There are also quite a few package in this repo which already use AU, which you can use as a sample.

And please also check our contribution guidelines.

And if you have any specific questions just let us know :)

@lennartb-
Copy link
Author

What happens if there isn't a direct download to the required installer? I poked around the iTunes download page and it seems the URL is constructed via JS. The actual link the permanent, but there is no *.exe file linked (as in the sample au-packages-template project). I look around the existing packages, but those who had an update.ps1 mostly contained fixed links to the installers. I took a look with Fiddler, but I couldn't figure out the actual download request.

@AdmiringWorm
Copy link
Member

@lennartb- if there is no way to automate the update, then this would have to be moved to the manual directory and manually be updated when it becomes out of date.

@lennartb-
Copy link
Author

Maybe someone more savvy with JS can take a look at it then, I (hopefully) can manage the rest, but I'm not much of a web tech guy.

@AdmiringWorm
Copy link
Member

@lennartb- I can add a update script for this before it's merged (I believe I found a way to get the version and urls), if you could update the rest it would be great.

@AdmiringWorm
Copy link
Member

@lennartb- can you also rebase your changes please

@lennartb-
Copy link
Author

@AdmiringWorm Yep, done

@AdmiringWorm
Copy link
Member

I've added the AU update script, updated the install script and the metadata.
Please review this one again.

/cc @gep13 @pascalberger

<id>{{PackageName}}</id>
<version>{{PackageVersion}}</version>
<title>iTunes</title>
<id>iTunes</id>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ID should be in lowercase (which would also include directory name)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true, it should.
But until chocolatey/choco#1040 is fixed, it shouldn't be changed for existing packages.

Install-ChocolateyInstallPackage @packageArgs
}

Remove-Item $packageArgs.unzipLocation -Recurse
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignore errors here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do

lennartb- and others added 2 commits February 3, 2017 22:17
@AdmiringWorm AdmiringWorm merged commit f006f6c into chocolatey-community:master Feb 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants