Skip to content

Commit

Permalink
(gh-181) Update sendtokindle to repository standards
Browse files Browse the repository at this point in the history
Update sendtokindle to repository standards:
* Add README.md
* Enhance package definition with additional information and current URLs
* Updates install script with current syntax
* Removed unnecessary uninstall scripts
  • Loading branch information
dgalbraith committed Jul 10, 2022
1 parent a306a1d commit 152df00
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 99 deletions.
29 changes: 29 additions & 0 deletions automatic/sendtokindle/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# [<img src="https://cdn.jsdelivr.net/gh/dgalbraith/chocolatey-packages@a306a1daa4f210fa0a5421f2a3c996804629256a/icons/sendtokindle.png" width="48" height="48" />Send to Kindle](https://chocolatey.org/packages/sendtokindle)

[![License](https://img.shields.io/badge/License-Proprietary-grey.svg)](https://www.amazon.com/gp/help/customer/display.html/?nodeId=GLSBYFE9MGKKQXXM)
[![Maintenance status](https://img.shields.io/badge/maintained%3F-yes-green.svg)](https://github.com/dgalbraith/chocolatey-packages/graphs/commit-activity)
[![AppVeyor build](https://img.shields.io/appveyor/ci/dgalbraith/chocolatey-packages)](https://ci.appveyor.com/project/dgalbraith/chocolatey-packages)
[![Software version](https://img.shields.io/badge/version-v1.1.1.253-blue)](http://www.amazon.com/gp/sendtokindle/pc)
[![Chocolatey package version](https://img.shields.io/chocolatey/v/sendtokindle?label=Chocolatey)](https://chocolatey.org/packages/sendtokindle)

Reading your personal documents on a Kindle has never been easier.

When you install Send to Kindle for PC, Kindle will appear when you right click on a file in Windows Explorer and select "Send to". To send multiple documents to Kindle
without opening them, simply select documents and choose Kindle from the right-click sub-menu in Windows Explorer.

You can read personal documents from any Kindle device or using the free reading app on your iOS or Android device. Whispersync of notes, highlights, bookmarks and last
page read is available on your personal documents that have been converted into Kindle format.

## Features

* **Send personal documents to your Kindle** from your PC
* **From Windows Explorer**, simply right click on one or more documents, choose "Send to", and then select "Kindle"
* **Drag and drop** one or more documents onto the Send to Kindle application

![screenshot](https://cdn.jsdelivr.net/gh/dgalbraith/chocolatey-packages@a306a1daa4f210fa0a5421f2a3c996804629256a/automatic/sendtokindle/screenshot.png)

## Notes

* This package requires the Print Spooler service to be enabled and will set the service startup type to Automatic
* This package is automatically updated using the [Chocolatey Automatic Package Update Model (AU)](https://github.com/majkinetor/au/blob/master/README.md).
If you find it is out of date by more than a day or two, please contact the maintainer(s) and let them know the package is no longer updating correctly.
1 change: 1 addition & 0 deletions automatic/sendtokindle/info
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"8080bb319c2b25f3a64f8f45b7115419-2"|1.1.1.253
86 changes: 49 additions & 37 deletions automatic/sendtokindle/sendtokindle.nuspec
Original file line number Diff line number Diff line change
@@ -1,37 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata>
<id>sendtokindle</id>
<title>Send to Kindle</title>
<version>1.1.1.253</version>
<authors>Amazon</authors>
<owners>Anthony Mastrean</owners>
<summary>Reading your personal documents on a Kindle has never been easier</summary>
<description>
Reading your personal documents on a Kindle has never been easier

* Send personal documents to your Kindle from your PC.
* From Windows Explorer, simply right click on one or more documents and choose Send to Kindle.
* From any Windows application that can print, select Print and choose Send to Kindle.
* Drag and drop one or more documents onto the Send to Kindle application.
* Choose to save content to Amazon Cloud Drive where you can access, delete, organize, and share it from any web browser or using the Cloud Drive app for PC and Mac.

When you download and install, Send to Kindle will appear when you right click on a file in Windows Explorer or in the print dialog of any Windows application. To send multiple documents to Kindle without opening them, simply select documents and choose Send to Kindle from the right-click menu in Windows Explorer.

Content you save to Cloud Drive can be accessed from any Kindle device or using the free reading app on your iOS or Android device. Whispersync of notes, highlights, bookmarks and last page read is available on your Cloud Drive content. Learn more about the Kindle Personal Documents service here.

----

This package requires the Print Spooler service to be enabled, this requires setting the service startup type to Automatic (or Manual, but we think Automatic is a better choice for desktop systems).
</description>
<projectUrl>http://www.amazon.com/gp/sendtokindle/pc/</projectUrl>
<licenseUrl>http://www.amazon.com/kindlelicense?ref=stk_pc_terms</licenseUrl>
<packageSourceUrl>https://github.com/AnthonyMastrean/chocolateypackages/</packageSourceUrl>
<docsUrl>http://www.amazon.com/gp/help/customer/display.html/?nodeId=200768410&amp;ref_=stk_pc_fmp</docsUrl>
<mailingListUrl>https://www.amazon.com/gp/help/customer/forums/kindleqna/ref=hp_ss_qs_v3_dv_kh</mailingListUrl>
<bugTrackerUrl>https://www.amazon.com/gp/help/customer/contact-us?ie=UTF8&amp;ref_=hp_ss_qs_v3_dv_cu_t2</bugTrackerUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>amazon kindle</tags>
<iconUrl>https://cdn.rawgit.com/AnthonyMastrean/chocolateypackages/3763177365cfab0f7debcd100595a171182fadb3/public/icons/sendtokindle.png</iconUrl>
</metadata>
</package>
<?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/2015/06/nuspec.xsd">
<metadata>
<id>sendtokindle</id>
<version>1.1.1.253</version>
<packageSourceUrl>https://github.com/dgalbraith/chocolatey-packages/tree/master/automatic/sendtokindle</packageSourceUrl>
<owners>dgalbraith</owners>
<title>Send to Kindle</title>
<authors>Amazon</authors>
<projectUrl>http://www.amazon.com/gp/sendtokindle/pc</projectUrl>
<iconUrl>https://cdn.jsdelivr.net/gh/dgalbraith/chocolatey-packages@a306a1daa4f210fa0a5421f2a3c996804629256a/icons/sendtokindle.png</iconUrl>
<copyright>Amazon.com, Inc.</copyright>
<licenseUrl>https://www.amazon.com/gp/help/customer/display.html/?nodeId=GLSBYFE9MGKKQXXM</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<docsUrl>https://www.amazon.com/gp/help/customer/display.html?nodeId=G5WYD9SAF7PGXRNA</docsUrl>
<mailingListUrl>https://www.amazonforum.com/s/topic/0TO4P000000t99LWAQ/send-to-kindle</mailingListUrl>
<bugTrackerUrl>https://www.amazon.com/gp/help/customer/contact-us</bugTrackerUrl>
<tags>amazon kindle</tags>
<summary>Send your personal and business documents to read them anytime, everywhere on Kindle devices and reading apps</summary>
<description><![CDATA[
Reading your personal documents on a Kindle has never been easier.
When you install Send to Kindle for PC, Kindle will appear when you right click on a file in Windows Explorer and select "Send to". To send multiple documents to Kindle
without opening them, simply select documents and choose Kindle from the right-click sub-menu in Windows Explorer.
You can read personal documents from any Kindle device or using the free reading app on your iOS or Android device. Whispersync of notes, highlights, bookmarks and last
page read is available on your personal documents that have been converted into Kindle format.
## Features
* **Send personal documents to your Kindle** from your PC
* **From Windows Explorer**, simply right click on one or more documents, choose "Send to", and then select "Kindle"
* **Drag and drop** one or more documents onto the Send to Kindle application
![screenshot](https://cdn.jsdelivr.net/gh/dgalbraith/chocolatey-packages@a306a1daa4f210fa0a5421f2a3c996804629256a/automatic/sendtokindle/screenshot.png)
## Notes
* This package requires the Print Spooler service to be enabled and will set the service startup type to Automatic
* This package is automatically updated using the [Chocolatey Automatic Package Update Model (AU)](https://github.com/majkinetor/au/blob/master/README.md).
If you find it is out of date by more than a day or two, please contact the maintainer(s) and let them know the package is no longer updating correctly.
]]></description>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
30 changes: 18 additions & 12 deletions automatic/sendtokindle/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
Set-Service `
-Name 'Spooler' `
-StartupType 'Automatic'

Install-ChocolateyPackage `
-PackageName 'sendtokindle' `
-FileType 'EXE' `
-Silent '/S' `
-Url 'http://s3.amazonaws.com/sendtokindle/SendToKindleForPC-installer.exe' `
-Checksum '38A173669B3056F1C81E24145153BE2B781C2C9E44E0EAFD01E5C93D6DEEB1F0' `
-ChecksumType 'SHA256' `
-ValidExitCodes @(0, 1223)
$ErrorActionPreference = 'Stop'

Set-Service -Name 'Spooler' -StartupType 'Automatic'

$url = 'http://s3.amazonaws.com/sendtokindle/SendToKindleForPC-installer.exe'
$checksum = '38A173669B3056F1C81E24145153BE2B781C2C9E44E0EAFD01E5C93D6DEEB1F0'

$packageArgs = @{
packageName = $env:ChocolateyPackageName
fileType = 'exe'
url64bit = $url
checksum = $checksum
checksumType = 'sha256'
silentArgs = '/S'
validExitCodes= @(0, 1223)
}

Install-ChocolateyPackage @packageArgs
9 changes: 0 additions & 9 deletions automatic/sendtokindle/tools/chocolateyUninstall.ps1

This file was deleted.

41 changes: 0 additions & 41 deletions automatic/sendtokindle/tools/uninstall.ps1

This file was deleted.

0 comments on commit 152df00

Please sign in to comment.