-
Notifications
You must be signed in to change notification settings - Fork 372
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
Moved CutePDF to AU. #380
Moved CutePDF to AU. #380
Conversation
@@ -17,8 +17,4 @@ PDFCreator – PDFCreator easily creates PDFs from any Windows program. Use it l | |||
<tags>pdf admin</tags> | |||
<packageSourceUrl>https://github.com/chocolatey/chocolatey-coreteampackages</packageSourceUrl> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its also good chance (although not mandatory) to update other metadata:
- Give some features
- Add some more tags such as
editor
,office
,fos
etc. - Add docs, bugtrackerurl, mailinglist etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, its open source so, projectsSourceUrl
: https://github.com/pdfforge/PDFCreator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going more for a 1-1 conversion from ketarin to AU, but I'll add these.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This migration to AU is perfect time to tidy up metadata. You need to revisit everything anyway, and those information are really handy to have in choco info <package>
or on site directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
$temp_file = $env:TEMP + '\PDFCreator.exe' | ||
Invoke-WebRequest $url -OutFile $temp_file | ||
|
||
$version = (Get-Command $temp_file).Version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting way to obtain the version. I like it.
However, its not appropriate here. The file size is ~27MB and the version is available on download page.
So you should find out something that produces faster update:
- Download page has info about the version.
- Blog seems to serve as release new information: http://www.pdfforge.org/blog, so you can take in their RSS feed (http://www.pdfforge.org/blog/rss) and filter items with PDFCreator in title and get the version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The download page gives me 2.4. The blog gives me 2.4.0. Getting the version from the installer gives me 2.4.0.213. I wasn't sure what level of detail was most appropriate, so I went with most detailed. What is your opinion on which version is appropriate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its a good find. I had a same problem with LibreOffice - on site it was one version and install adds revision number. It was important to recognize what you had in order not to download if not needed. However, your solution downloads too, so it doesn't make a difference. But its great solution when its very hard to parse the version or if its impossible.
Just go with the site 2.4 or blog 2.4.0 (site is probably what is expected by users tbh). Its better not to add revision as it can be used for choco fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would go with 2.4.0, I.e. What comes from the blog post.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I can look at the RSS feed for the first title that contains "released" and extract the version. It might not be perfect, but it's probably good enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@majkinetor ok, I have to ask, why is 2.5 not the same as 2.5.0? In one, the patch version is explicitly being stated as 0, and the other, it just isn't being shown.
The suggestion wasn't to simply add a .0, but rather, if the version number is a 2 part version number, add the .0 onto it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The suggestion wasn't to simply add a .0, but rather, if the version number is a 2 part version number, add the .0 onto it.
I think this is irrelevant. Why should we do this ?
ok, I have to ask, why is 2.5 not the same as 2.5.0?
Because [version]2.5 -ne [version]2.5.0
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@majkinetor ah, I see the problem here... We are not talking about the same thing. I was talking about Semantic Versioning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the PDF creator uses minimum tree part version, probably best to follow the existing convention.
https://chocolatey.org/packages/PDFCreator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense.
In advance, please use separate PR for each package, please. |
Sorry, didn't realize two packages snuck into this pull request. |
@mikecole I referenced few issues reported for those packages. Would u please take a look? |
Sure will. Thanks! On Tue, Nov 8, 2016 at 12:15 PM, Miodrag Milić notifications@github.com
|
@majkinetor I believe I fixed both linked issues. |
function global:au_SearchReplace { | ||
@{ | ||
'tools\ChocolateyInstall.ps1' = @{ | ||
"(^[$]checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't have an URL here. It will never update it.
function global:au_GetLatest { | ||
Write-Host $url | ||
|
||
$temp_file = $env:TEMP + '\CuteWriter.exe' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as before here, without downloading the files if other things are possible.
@majkinetor fixed and fixed. |
@@ -14,11 +14,9 @@ | |||
PDFCreator – PDFCreator easily creates PDFs from any Windows program. Use it like a printer in Word, StarCalc or any other Windows application. | |||
</description> | |||
<summary>PDFCreator - PDFCreator easily creates PDFs from any Windows program.</summary> | |||
<tags>pdf admin</tags> | |||
<packageSourceUrl>https://github.com/chocolatey/chocolatey-coreteampackages</packageSourceUrl> | |||
<tags>pdf editor printer admin</tags> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be tagged with fos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that would actually be foss
, fos
means something completely different
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, my bad.. foss
return @{ URL = $url; Version = $version } | ||
} | ||
|
||
update -NoCheckUrl -ChecksumFor 32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AU complains about URLs ? hence NoCheckUrl
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, that was copied and pasted from another package. I'll fix it.
@@ -14,11 +14,9 @@ | |||
PDFCreator – PDFCreator easily creates PDFs from any Windows program. Use it like a printer in Word, StarCalc or any other Windows application. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add ##Features
(link)
<title>CutePDF</title> | ||
<version>{{PackageVersion}}</version> | ||
<version>3.0</version> | ||
<authors>Acro Software Inc.</authors> | ||
<owners>Redsandro</owners> | ||
<summary>Free PDF printer driver with no watermarks.</summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add '##Features'
@@ -1,10 +1,9 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. --> | |||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add freeware
among tags.
Also, add releaseNotes. I see that CutePDF has them at http://www.cutepdf.com/support/updates.asp and the other package certainly has it. Those are all metadata problems. When you fix it I will merge it. |
@mikecole are you in a position to update this PR with the suggestions, or are you happy for us to make the modifications and merge? |
@gep13 yes I can fix these in the next few days, unless you'd like them sooner. |
No description provided.