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

Moved CutePDF to AU. #380

Merged
merged 13 commits into from
Nov 19, 2016
Merged

Moved CutePDF to AU. #380

merged 13 commits into from
Nov 19, 2016

Conversation

mikecole
Copy link
Contributor

@mikecole mikecole commented Nov 8, 2016

No description provided.

@@ -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>
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

@majkinetor majkinetor Nov 8, 2016

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.

Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor Author

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
Copy link
Contributor

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:

Copy link
Contributor Author

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?

Copy link
Contributor

@majkinetor majkinetor Nov 8, 2016

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.

Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Contributor

@majkinetor majkinetor Nov 8, 2016

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 :)

Copy link
Member

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.

image

Copy link
Member

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

Copy link
Contributor

Choose a reason for hiding this comment

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

That makes sense.

@majkinetor
Copy link
Contributor

In advance, please use separate PR for each package, please.

@majkinetor majkinetor mentioned this pull request Nov 8, 2016
@mikecole
Copy link
Contributor Author

mikecole commented Nov 8, 2016

Sorry, didn't realize two packages snuck into this pull request.

@majkinetor
Copy link
Contributor

@mikecole I referenced few issues reported for those packages. Would u please take a look?

@mikecole
Copy link
Contributor Author

mikecole commented Nov 8, 2016

Sure will. Thanks!

On Tue, Nov 8, 2016 at 12:15 PM, Miodrag Milić notifications@github.com
wrote:

@mikecole https://github.com/mikecole I referenced few issues reported
for those packages. Would u please take a look?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#380 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABHL603513scnvST2XsxKFvYvgiZsT1Eks5q8Lw7gaJpZM4Kr6k1
.

@mikecole
Copy link
Contributor Author

@majkinetor I believe I fixed both linked issues.

function global:au_SearchReplace {
@{
'tools\ChocolateyInstall.ps1' = @{
"(^[$]checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'"
Copy link
Contributor

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'
Copy link
Contributor

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.

@mikecole
Copy link
Contributor Author

@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>
Copy link
Contributor

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.

Copy link
Member

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

Copy link
Contributor

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
Copy link
Contributor

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 ?

Copy link
Contributor Author

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.
Copy link
Contributor

@majkinetor majkinetor Nov 12, 2016

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>
Copy link
Contributor

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">
Copy link
Contributor

Choose a reason for hiding this comment

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

Add freeware among tags.

@majkinetor
Copy link
Contributor

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.

@gep13
Copy link
Member

gep13 commented Nov 13, 2016

@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?

@mikecole
Copy link
Contributor Author

@gep13 yes I can fix these in the next few days, unless you'd like them sooner.

@majkinetor majkinetor merged commit 60020b1 into chocolatey-community:master Nov 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants