Skip to content

Commit

Permalink
πŸ› chore(gimp-data-extras): update source file download link
Browse files Browse the repository at this point in the history
🎨 style(format/lint): cleanup and format the code
  • Loading branch information
AndreAugustoDev committed Dec 25, 2024
1 parent 5968efe commit be1d0f3
Show file tree
Hide file tree
Showing 24 changed files with 928 additions and 677 deletions.
223 changes: 221 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,221 @@
# Auto detect text files and perform LF normalization
* text=auto
# Auto detect
## Handle line endings automatically for files detected as
## text and leave all files detected as binary untouched.
## This will handle all files NOT defined below.
* text=auto

# Source files
# ============
*.bash text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.coffee text
*.css text diff=css
*.htm text diff=html
*.html text diff=html
*.inc text
*.ini text
*.js text
*.mjs text
*.cjs text
*.json text
*.jsx text
*.less text
*.ls text
*.map text -diff
*.od text
*.onlydata text
*.php text diff=php
*.pl text
*.ps1 text eol=crlf
*.ps1x text eol=crlf
*.psm1 text eol=crlf
*.psd1 text eol=crlf
*.ps1xml text eol=crlf
*.pssc text eol=crlf
*.psrc text eol=crlf
*.cdxml text eol=crlf
*.py text diff=python
*.rb text diff=ruby
*.sass text
*.scm text
*.scss text diff=css
*.sh text eol=lf
.husky/* text eol=lf
*.sql text
*.styl text
*.tag text
*.ts text
*.tsx text
*.xml text
*.xhtml text diff=html

# Docker
Dockerfile text

# Documentation
*.ipynb text eol=lf
*.markdown text diff=markdown
*.md text diff=markdown
*.mdwn text diff=markdown
*.mdown text diff=markdown
*.mkd text diff=markdown
*.mkdn text diff=markdown
*.mdtxt text
*.mdtext text
*.txt text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
NEWS text
readme text
*README* text
TODO text

# Templates
*.dot text
*.ejs text
*.erb text
*.haml text
*.handlebars text
*.hbs text
*.hbt text
*.jade text
*.latte text
*.mustache text
*.njk text
*.phtml text
*.svelte text
*.tmpl text
*.tpl text
*.twig text
*.vue text

# Configs
*.cnf text
*.conf text
*.config text
.editorconfig text
.env text
.gitattributes text
.gitconfig text
.htaccess text
*.lock text -diff
package.json text eol=lf
package-lock.json text eol=lf -diff
pnpm-lock.yaml text eol=lf -diff
.prettierrc text
yarn.lock text -diff
*.toml text
*.yaml text
*.yml text
browserslist text
Makefile text
makefile text
# Fixes syntax highlighting on GitHub to allow comments
tsconfig.json linguist-language=JSON-with-Comments

# Heroku
Procfile text

# Graphics
*.ai binary
*.bmp binary
*.eps binary
*.gif binary
*.gifv binary
*.ico binary
*.jng binary
*.jp2 binary
*.jpg binary
*.jpeg binary
*.jpx binary
*.jxr binary
*.pdf binary
*.png binary
*.psb binary
*.psd binary
# SVG treated as an asset (binary) by default.
*.svg text
# If you want to treat it as binary,
# use the following line instead.
# *.svg binary
*.svgz binary
*.tif binary
*.tiff binary
*.wbmp binary
*.webp binary

# Audio
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.ogg binary
*.ra binary

# Video
*.3gpp binary
*.3gp binary
*.as binary
*.asf binary
*.asx binary
*.avi binary
*.fla binary
*.flv binary
*.m4v binary
*.mng binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.ogv binary
*.swc binary
*.swf binary
*.webm binary

# Archives
*.7z binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.zip binary

# Fonts
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary

# Executables
*.exe binary
*.pyc binary
# Prevents massive diffs caused by vendored, minified files
**/.yarn/releases/** binary
**/.yarn/plugins/** binary

# RC files (like .babelrc or .eslintrc)
*.*rc text

# Ignore files (like .npmignore or .gitignore)
*.*ignore text

# Prevents massive diffs from built files
dist/* binary

#
# Enable syntax highlighting for files with `.gitattributes` extensions.
#
*.gitattributes linguist-language=gitattributes
*.gitattributes linguist-detectable=true
*.gitattributes linguist-documentation=false
2 changes: 1 addition & 1 deletion ffmpeg-shared/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# <img src="ffmpeg.svg" width="48" height="48"/> [ffmpeg](https://www.ffmpeg.org/)
# ![ffmpeg](https://www.movieconverter-studio.com/_PUBLIC/ffmpeg/logo-new/ffmpeg-logo-src/ffmpeg-logo.svg) [ffmpeg](https://www.ffmpeg.org/)

FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation. It is also highly portable: FFmpeg compiles, runs, and passes our testing infrastructure FATE across Linux, Mac OS X, Microsoft Windows, the BSDs, Solaris, etc. under a wide variety of build environments, machine architectures, and configurations.

Expand Down
34 changes: 17 additions & 17 deletions ffmpeg-shared/Update.ps1
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
Import-Module chocolatey-au

$release = 'https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.7z.ver'
$release = 'https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.7z.ver'
$checksum = 'https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.7z.sha256'
$url = 'https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.7z'
# $url = "https://github.com/GyanD/codexffmpeg/releases/download/${version}/ffmpeg-${version}-full_build-shared.7z"
$url = 'https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.7z'

function global:au_GetLatest {
function global:au_GetLatest {
$get_version = Invoke-WebRequest -Uri "$release" -UseBasicParsing -Header @{ Referer = $release }
$get_sha256 = Invoke-WebRequest -Uri "$checksum" -UseBasicParsing -Header @{ Referer = $checksum }
$version = $get_version.ToString()
$sha256 = $get_sha256.ToString()
$get_sha256 = Invoke-WebRequest -Uri "$checksum" -UseBasicParsing -Header @{ Referer = $checksum }
$version = $get_version.ToString()
$sha256 = $get_sha256.ToString()
@{
URL = $url
Version = $version
Checksum = $sha256
ChecksumType = 'sha256'
URL = $url
Version = $version
Checksum = $sha256
ChecksumType = 'sha256'
}
}

function global:au_SearchReplace {
@{
".\tools\chocolateyInstall.ps1" = @{
"(^[$]url\s*=\s*)('.*')" = "`$1'$($Latest.URL)'"
"(?i)(^\s*checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum)'"
"(^[$]url\s*=\s*)('.*')" = "`$1'$($Latest.URL)'"
"(?i)(^\s*checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum)'"
}
}
}

try {
update -ChecksumFor none
} catch {
$ignore = 'Not Found'
if ($_ -match $ignore) { Write-Host $ignore; 'ignore' } else { throw $_ }
update -ChecksumFor none
}
catch {
$ignore = 'Not Found'
if ($_ -match $ignore) { Write-Host $ignore; 'ignore' } else { throw $_ }
}
8 changes: 5 additions & 3 deletions ffmpeg-shared/ffmpeg-shared.nuspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?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. -->
<!-- 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>ffmpeg-shared</id>
Expand All @@ -21,7 +22,8 @@ Security is a high priority and code review is always done with security in mind
* This package is for the stable shared ffmpeg version.
]]></description>
<summary>FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec - the leading audio/video codec library.</summary>
<summary>FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec - the
leading audio/video codec library.</summary>
<releaseNotes>https://ffmpeg.org/index.html#news</releaseNotes>
<copyright>FFmpeg is a trademark of Fabrice Bellard, originator of the FFmpeg project.</copyright>
<tags>ffmpeg libavcodec foss cli audio video convert cross-platform audio video media</tags>
Expand All @@ -32,4 +34,4 @@ Security is a high priority and code review is always done with security in mind
<files>
<file src="tools\**" target="tools" />
</files>
</package>
</package>
16 changes: 8 additions & 8 deletions ffmpeg-shared/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
$ErrorActionPreference = 'Stop';
$toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = 'https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.7z'
$ErrorActionPreference = 'Stop';
$toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = 'https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.7z'

$packageArgs = @{
packageName = $env:ChocolateyPackageName
unzipLocation = $toolsPath
url = $url
checksum = '19f7ddacc3795d1168f14843d3233161dc474df4b981cc6158da614d0e00e339'
checksumType = 'sha256'
packageName = $env:ChocolateyPackageName
unzipLocation = $toolsPath
url = $url
checksum = '19f7ddacc3795d1168f14843d3233161dc474df4b981cc6158da614d0e00e339'
checksumType = 'sha256'
}

Install-ChocolateyZipPackage @packageArgs
Expand Down
6 changes: 1 addition & 5 deletions ffmpeg-shared/tools/chocolateyUninstall.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
$ErrorActionPreference = 'Stop';
$toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$packageArgs = @{
packageName = $env:ChocolateyPackageName
}
$toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

Remove-Item -Recurse -Force -Path "$toolsPath"
2 changes: 1 addition & 1 deletion gimp-data-extras/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ This is a collection of additional data files for [GIMP 2.10](https://www.gimp.o
It adds a couple of brushes and patterns to the set of files
that are already shipped with the GIMP tarball.

It also contains scripts that have been removed during v2.10 development cycle.
It also contains scripts that have been removed during v2.10 development cycle.
10 changes: 5 additions & 5 deletions gimp-data-extras/gimp-data-extras.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
<tags>gimp-data-extras gimp design publishing editor images graphics photo art png jpg gif admin foss cross-platform</tags>
<summary>gimp-data-extras</summary>
<description>This is a collection of additional data files for [GIMP 2.10](https://www.gimp.org/).
It adds a couple of brushes and patterns to the set of files that are already shipped with the GIMP tarball.
It also contains scripts that have been removed during v2.10 development cycle.</description>
It adds a couple of brushes and patterns to the set of files that are already shipped with the GIMP tarball.
It also contains scripts that have been removed during v2.10 development cycle.</description>
<releaseNotes>https://www.gimp.org/release-notes/</releaseNotes>
<dependencies>
<dependency id="gimp" version="2.10.0"/>
<dependency id="gimp" version="2.10.0" />
</dependencies>
</metadata>
<files>
<file src="tools\**" target="tools"/>
<file src="tools\**" target="tools" />
</files>
</package>
</package>
8 changes: 4 additions & 4 deletions gimp-data-extras/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$ErrorActionPreference = 'Stop';
$url = 'https://ftp.gimp.org/pub/gimp/extras/gimp-data-extras-2.0.4.tar.bz2'
$GIMPdata = "$env:APPDATA\GIMP"
$url = 'https://download.gimp.org/gimp/extras/gimp-data-extras-2.0.4.tar.bz2'
$GIMPdata = "$env:APPDATA\GIMP"

$packageArgs = @{
packageName = $env:ChocolateyPackageName
Expand All @@ -17,8 +17,8 @@ Get-ChocolateyUnzip "$GIMPdata\gimp-data-extras-2.0.4.tar" "$GIMPdata" | Out-Nul
Get-ChildItem "$GIMPdata\gimp-data-extras-2.0.4\Makefile*" -Recurse | ForEach-Object { Remove-Item -Path $_.FullName }
Get-ChildItem "$GIMPdata\gimp-data-extras-2.0.4\*" -File | ForEach-Object { Remove-Item -Path $_.FullName }

If(!(Test-Path "$GIMPdata\2.10")){
New-Item -Path "$GIMPdata\2.10" -ItemType Directory | Out-Null
If (!(Test-Path "$GIMPdata\2.10")) {
New-Item -Path "$GIMPdata\2.10" -ItemType Directory | Out-Null
}

Copy-Item -Path "$GIMPdata\gimp-data-extras-2.0.4\*" -Destination "$GIMPdata\2.10" -Recurse -Force -PassThru | Out-Null
Expand Down
Loading

0 comments on commit be1d0f3

Please sign in to comment.