Skip to content

Commit

Permalink
From chocolatey-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
tunisiano187 committed Jul 8, 2024
1 parent 587ee07 commit 8aa30f9
Show file tree
Hide file tree
Showing 10 changed files with 210 additions and 0 deletions.
9 changes: 9 additions & 0 deletions automatic/geany-plugins/ReadMe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[![](https://img.shields.io/chocolatey/v/geany-plugins?color=green&label=geany-plugins)](https://chocolatey.org/packages/geany-plugins) [![](https://img.shields.io/chocolatey/dt/geany-plugins)](https://chocolatey.org/packages/geany-plugins)

## Geany plugins
Plugins for [Geany](https://chocolatey.org/packages/geany) a Fast and lightweight IDE

### Package-specific issue
If this package isn't up-to-date for some days, [Create an issue](https://github.com/tunisiano187/Choco-packages/issues/new/choose)

Support the package maintainer and [![Patreon](https://cdn.jsdelivr.net/gh/tunisiano187/choco-packages@f986b7f5de3afc021180256752805698d4efbc38/icons/patreon.png)](https://www.patreon.com/tunisiano)
43 changes: 43 additions & 0 deletions automatic/geany-plugins/geany-plugins.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?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>geany-plugins</id>
<version>2.0</version>
<packageSourceUrl>https://github.com/tunisiano187/Choco-packages/tree/master/automatic/geany-plugins</packageSourceUrl>
<owners>tunisiano</owners>
<title>geany-plugins (Install)</title>
<authors>Geany Team</authors>
<projectUrl>https://plugins.geany.org/</projectUrl>
<iconUrl>https://cdn.jsdelivr.net/gh/tunisiano187/Choco-packages@0c4813ac1787fa88d3e85b01209fbc751301b81e/icons/geany-plugins.png</iconUrl>
<copyright>Geany Teams</copyright>
<licenseUrl>https://plugins.geany.org/licensing.html</licenseUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<projectSourceUrl>https://github.com/geany/geany-plugins</projectSourceUrl>
<docsUrl>https://plugins.geany.org/about.html</docsUrl>
<bugTrackerUrl>https://github.com/geany/geany-plugins/issues</bugTrackerUrl>
<tags>foss plugin geany-plugins</tags>
<summary>Plugins for Geany</summary>
<description><![CDATA[## Geany plugins
Plugins for [Geany](https://chocolatey.org/packages/geany) a Fast and lightweight IDE
### Package-specific issue
If this package isn't up-to-date for some days, [Create an issue](https://github.com/tunisiano187/Choco-packages/issues/new/choose)
Support the package maintainer and [![Patreon](https://cdn.jsdelivr.net/gh/tunisiano187/Choco-packages@d15c4e19c709e7148588d4523ffc6dd3cd3c7e5e/icons/patreon.png)](https://www.patreon.com/tunisiano)
]]></description>
<releaseNotes>#### Program
https://github.com/geany/geany-plugins/releases

#### Package
* Automatically built and uploaded by [tunisiano](https://chocolatey.org/profiles/tunisiano)
* Package not up-to-date after a few days ? [Create an issue](https://github.com/tunisiano187/Choco-packages/issues/new/choose)</releaseNotes>
<dependencies>
<dependency id="KB2919355" version="1.0.20160915" />
<dependency id="geany" version="1.36" />
</dependencies>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
19 changes: 19 additions & 0 deletions automatic/geany-plugins/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
$ErrorActionPreference = 'Stop';
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = 'https://plugins.geany.org/geany-plugins/geany-plugins-2.0_setup.exe'
$checksum = '14f6e264fccb05126143ebac7fafd89ae360faf5d8df82250c7804e52c9c2637'
$checksumType = 'sha256'

$packageArgs = @{
packageName = $env:ChocolateyPackageName
unzipLocation = $toolsDir
fileType = 'EXE'
url = $url
softwareName = 'geany-plugins*'
checksum = $checksum
checksumType = $checksumType
silentArgs = '/S'
validExitCodes= @(0)
}

Install-ChocolateyPackage @packageArgs
25 changes: 25 additions & 0 deletions automatic/geany-plugins/update.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
$ErrorActionPreference = 'Stop'
import-module au

$releases = 'https://plugins.geany.org/geany-plugins/'

function global:au_SearchReplace {
@{
'tools/chocolateyInstall.ps1' = @{
"(^[$]url\s*=\s*)('.*')" = "`$1'$($Latest.URL32)'"
"(^[$]checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'"
"(^[$]checksumType\s*=\s*)('.*')" = "`$1'$($Latest.ChecksumType32)'"
}
}
}

function global:au_GetLatest {
$url32 = ((Invoke-WebRequest -Uri $releases -UseBasicParsing).Links | Where-Object {$_ -match 'setup.exe'} | Where-Object {$_ -notmatch 'exe.sig'}).href[-1]
$version = $url32.split('_')[0].split('-')[-1]
$url32 = "https://plugins.geany.org/geany-plugins/$($url32)"

$Latest = @{ URL32 = $url32; Version = $version }
return $Latest
}

update -ChecksumFor 32
16 changes: 16 additions & 0 deletions automatic/geany/ReadMe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[![](https://img.shields.io/chocolatey/v/geany?color=green&label=geany)](https://chocolatey.org/packages/geany) [![](https://img.shields.io/chocolatey/dt/geany)](https://chocolatey.org/packages/geany)

## geany
Features:Geany is a small and lightweight integrated development environment (IDE). It was developed
to provide a small and fast IDE, which has only a few dependencies from other packages. Another goal
was to be as independent as possible from a special Desktop Environment like KDE or GNOME. So it is
using only the GTK2 toolkit and therefore you need only the GTK2 runtime libraries to run Geany.

[Screenshots](http://www.geany.org/Documentation/Screenshots)
[Plugins](http://www.geany.org/Support/Plugins)
[Wiki](http://wiki.geany.org/)

### Package-specific issue
If this package isn't up-to-date for some days, [Create an issue](https://github.com/tunisiano187/Choco-packages/issues/new/choose)

Support the package maintainer and [![Patreon](https://cdn.jsdelivr.net/gh/tunisiano187/choco-packages@f986b7f5de3afc021180256752805698d4efbc38/icons/patreon.png)](https://www.patreon.com/tunisiano)
45 changes: 45 additions & 0 deletions automatic/geany/geany.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>geany</id>
<version>2.0.0.20231106</version>
<title>Geany</title>
<authors>Enrico Tröger, Frank Lanitz, Nick Treleaven and Dominic Hopf</authors>
<owners>tunisiano</owners>
<licenseUrl>https://github.com/geany/geany/blob/master/COPYING</licenseUrl>
<projectUrl>https://www.geany.org/</projectUrl>
<iconUrl>https://cdn.jsdelivr.net/gh/tunisiano187/Choco-packages@f542b09337004be93c892839b228af6f892be0f6/icons/geany.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description><![CDATA[## geany
Features:Geany is a small and lightweight integrated development environment (IDE). It was developed
to provide a small and fast IDE, which has only a few dependencies from other packages. Another goal
was to be as independent as possible from a special Desktop Environment like KDE or GNOME. So it is
using only the GTK2 toolkit and therefore you need only the GTK2 runtime libraries to run Geany.
[Screenshots](http://www.geany.org/Documentation/Screenshots)
[Plugins](http://www.geany.org/Support/Plugins)
[Wiki](http://wiki.geany.org/)
### Package-specific issue
If this package isn't up-to-date for some days, [Create an issue](https://github.com/tunisiano187/Choco-packages/issues/new/choose)
Support the package maintainer and [![Patreon](https://cdn.jsdelivr.net/gh/tunisiano187/Choco-packages@d15c4e19c709e7148588d4523ffc6dd3cd3c7e5e/icons/patreon.png)](https://www.patreon.com/tunisiano)
]]></description>
<summary>Fast and lightweight IDE</summary>
<releaseNotes>#### Program
* [Release Notes](https://www.geany.org/Documentation/ReleaseNotes)
* [Changelog](https://github.com/geany/geany/releases)

#### Package
* Automatically built and uploaded by [tunisiano](https://chocolatey.org/profiles/tunisiano)
* Package not up-to-date after a few days ? [Create an issue](https://github.com/tunisiano187/Choco-packages/issues/new/choose)</releaseNotes>
<copyright>© 2006 Enrico Tröger, Matthew Brush, Colomban Wendling, Frank Lanitz, Nick Treleaven and Dominic Hopf</copyright>
<tags>text editor ide scintilla admin</tags>
<projectSourceUrl>https://github.com/geany/geany</projectSourceUrl>
<packageSourceUrl>https://github.com/tunisiano187/Choco-packages/tree/master/automatic/geany</packageSourceUrl>
<docsUrl>https://www.geany.org/Documentation/Manual</docsUrl>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
15 changes: 15 additions & 0 deletions automatic/geany/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$packageName = 'geany'
$installerType = 'exe'
$silentArgs = '/S'
$url32 = 'https://github.com/geany/geany/releases/download/2.0.0/geany-2.0_setup.exe'
$checksum32 = 'fdc3e8d183533ae0c87ff3c2b035166e6a4d31379a2014320abd552d5558d8e9'
$checksumType = 'sha256'
$validExitCodes = @(0)

Install-ChocolateyPackage -PackageName "$packageName" `
-FileType "$installerType" `
-SilentArgs "$silentArgs" `
-Url "$url32" `
-ValidExitCodes $validExitCodes `
-Checksum "$checksum32" `
-ChecksumType "$checksumType"
38 changes: 38 additions & 0 deletions automatic/geany/update.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
$ErrorActionPreference = 'Stop'
import-module au

$releases = 'https://api.github.com/repos/geany/geany/releases/latest'
$Owner = $releases.Split('/') | Select-Object -Last 1 -Skip 3
$repo = $releases.Split('/') | Select-Object -Last 1 -Skip 2

function global:au_SearchReplace {
@{
'tools\chocolateyInstall.ps1' = @{
"(^[$]url32\s*=\s*)('.*')" = "`$1'$($Latest.URL32)'"
"(^[$]checksum32\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'"
"(^[$]checksumType\s*=\s*)('.*')" = "`$1'$($Latest.ChecksumType32)'"
}
}
}

function global:au_AfterUpdate($Package) {
Invoke-VirusTotalScan $Package
}

function global:au_GetLatest {
$tags = Get-GitHubRelease -OwnerName $Owner -RepositoryName $repo -Latest
$url32 = $tags.assets.browser_download_url | Where-Object {$_ -match ".exe$"}
$version = $tags.tag_name
Update-Metadata -key "releaseNotes" -value $tags.html_url
if($tags.prerelease -match "true") {
$date = $tags.published_at.ToString("yyyyMMdd")
$version = "$version-pre$($date)"
}
if($version -eq '2.0.0') {
$version = "2.0.0.20231106"
}

return @{ URL32 = $url32; Version = $version }
}

update-package -ChecksumFor 32
Binary file added icons/geany-plugins.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/geany.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8aa30f9

Please sign in to comment.