-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create chocolatey package for dev version
Fixes #5031.
- Loading branch information
1 parent
fe79e51
commit 2fe3430
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"> | ||
<metadata> | ||
<!-- == PACKAGE SPECIFIC SECTION == --> | ||
<id>jabref-dev</id> | ||
<!-- version should MATCH as closely as possible with the underlying software --> | ||
<!-- Is the version a prerelease of a version? https://docs.nuget.org/create/versioning#creating-prerelease-packages --> | ||
<!-- Note that unstable versions like 0.0.1 can be considered a released version, but it's possible that one can release a 0.0.1-beta before you release a 0.0.1 version. If the version number is final, that is considered a released version and not a prerelease. --> | ||
<version>5.0.0</version> | ||
<!-- <packageSourceUrl>Where is this Chocolatey package located (think GitHub)? packageSourceUrl is highly recommended for the community feed</packageSourceUrl>--> | ||
<owners>JabRef</owners> | ||
|
||
<!-- == SOFTWARE SPECIFIC SECTION == --> | ||
<title>JabRef (development version)</title> | ||
<authors>https://github.com/JabRef/jabref/blob/master/AUTHORS</authors> | ||
<projectUrl>https://www.jabref.org/</projectUrl> | ||
<iconUrl>https://cdn.jsdelivr.net/gh/JabRef/jabref/src/main/resources/images/external/JabRef-icon-128.png</iconUrl> | ||
<copyright>JabRef</copyright> | ||
<licenseUrl>https://github.com/JabRef/jabref/blob/master/LICENSE</licenseUrl> | ||
<requireLicenseAcceptance>true</requireLicenseAcceptance> | ||
<projectSourceUrl>https://github.com/JabRef/jabref/</projectSourceUrl> | ||
<docsUrl>https://help.jabref.org/</docsUrl> | ||
<mailingListUrl>http://discourse.jabref.org/</mailingListUrl> | ||
<bugTrackerUrl>https://github.com/JabRef/jabref/issues</bugTrackerUrl> | ||
<tags>jabref bibtex latex bibliography reference database admin</tags> | ||
<summary>JabRef is an open source bibliography reference manager. The native file format used by JabRef is BibTeX, the standard LaTeX bibliography format.</summary> | ||
<description><![CDATA[ | ||
** Please Note: This development version is a special build that allows you to test the latest features and bug fixes before they become available in the next [stable release of JabRef](https://chocolatey.org/packages/jabref)** | ||
JabRef is a graphical Java application for editing BibTeX and Biblatex databases. JabRef lets you organize your entries into overlapping logical groups, and with a single click limit your view to a single group or an intersection or union of several groups. You can customize the entry information shown in the main window, and sort by any of the standard BibTeX fields. JabRef can autogenerate BibTeX keys for your entries. JabRef also lets you easily link to PDF or web sources for your reference entries. | ||
JabRef can import from and export to several formats, and you can customize export filters. JabRef can be run as a command line application to convert from any import format to any export format. | ||
]]></description> | ||
<releaseNotes>https://github.com/JabRef/jabref/blob/master/CHANGELOG.md</releaseNotes> | ||
</metadata> | ||
<files> | ||
<file src="tools\**" target="tools" /> | ||
</files> | ||
</package> |
29 changes: 29 additions & 0 deletions
29
buildres/chocolatey/jabref-dev/tools/chocolateyinstall.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
$ErrorActionPreference = 'Stop'; # stop on all errors | ||
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | ||
|
||
$url = 'https://builds.jabref.org/master/JabRef-5.0.0.msi' | ||
|
||
$packageArgs = @{ | ||
packageName = $env:ChocolateyPackageName | ||
unzipLocation = $toolsDir | ||
fileType = 'MSI' | ||
url = $url | ||
url64bit = $url | ||
|
||
softwareName = 'JabRef*' #part or all of the Display Name as you see it in Programs and Features. It should be enough to be unique | ||
|
||
# Checksums are now required as of 0.10.0. | ||
# To determine checksums, you can get that from the original site if provided. | ||
# You can also use checksum.exe (choco install checksum) and use it | ||
# e.g. checksum -t sha256 -f path\to\file | ||
checksum = '' | ||
checksumType = 'sha256' #default is md5, can also be sha1, sha256 or sha512 | ||
checksum64 = '' | ||
checksumType64= 'sha256' #default is checksumType | ||
|
||
# MSI | ||
silentArgs = "/qn /norestart /l*v `"$($env:TEMP)\$($packageName).$($env:chocolateyPackageVersion).MsiInstall.log`"" # ALLUSERS=1 DISABLEDESKTOPSHORTCUT=1 ADDDESKTOPICON=0 ADDSTARTMENU=0 | ||
validExitCodes= @(0, 3010, 1641) | ||
} | ||
|
||
Install-ChocolateyPackage @packageArgs |