Compare commits

...
21 Commits
Author SHA1 Message Date
autoupdate 4f0ce39268 socialstreamninja-beta: update to 0.4.55 2026-11-30 18:44:10 +00:00
autoupdate df2da3491c socialstreamninja-beta: update to 0.4.54 2026-11-30 06:44:36 +00:00
autoupdate 9a7a5daa36 socialstreamninja-beta: update to 0.4.53 2026-11-30 00:44:33 +00:00
Jonas8272 64dee48786 added icon for licence 2026-11-26 07:55:58 +00:00
autoupdate e6c1561e73 mornye: update to 5.4.5 2026-11-24 18:00:55 +00:00
autoupdate bebe36ee03 socialstreamninja-beta: update to 0.4.52 2026-11-24 06:44:45 +00:00
Jonas8272 a8aa25fc1c names 2.0 2026-11-23 16:12:04 +00:00
Jonas8272 3b9e941cfb names 2026-11-23 16:04:37 +00:00
Jonas8272 c8d430b854 names 2026-11-23 16:01:46 +00:00
Jonas8272 04a166ffa6 fix actions break due to name change 2026-11-23 15:56:39 +00:00
Jonas8272 3fa73ae78e names 2026-11-23 15:54:51 +00:00
Jonas8272 627fdbafd0 names 2026-11-23 15:53:13 +00:00
Jonas8272 3e86e085f1 make name better 2026-11-23 15:51:26 +00:00
Jonas8272 bbca21a978 Update README.md 2026-11-23 07:22:39 +00:00
Jonas8272 ec3ba92137 remove useless 2026-11-23 07:14:09 +00:00
Jonas8272andClaude Sonnet 5.5 dd36ec804f mica-for-everyone: install the signed MSIX from GitHub releases (no winget), add autoupdate
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XFn3QekarqiDEYnrbupCyz
2026-11-23 07:04:47 +00:00
Jonas8272andClaude Sonnet 5.5 0e14f5c42e add mica-for-everyone (Microsoft Store app via winget), install script and README section
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XFn3QekarqiDEYnrbupCyz
2026-11-23 06:59:24 +00:00
autoupdate 44ba2e5c73 jdownloader: update to 2026.11.23.0629 2026-11-23 06:29:21 +00:00
Jonas8272 53b4e13857 add jdownloader (official bootstrap JAR via Scoop Java): manifest, daily hash updater, install script, README 2026-11-23 06:24:49 +00:00
Jonas8272 a1dbe5e10a Remove broken formatting 2026-11-23 04:04:22 +00:00
Jonas8272 24e1ee48dd Added gamdli bucket 2026-11-23 04:03:28 +00:00
12 changed files with 484 additions and 9 deletions

No files matched your search

@@ -0,0 +1,30 @@
name: autoupdate-MicaForEveryone
on:
schedule:
- cron: '53 */6 * * *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
container:
image: data.forgejo.org/oci/node:20-bookworm
steps:
- name: Install tools
run: apt-get update -qq && apt-get install -y -qq jq
- uses: actions/checkout@v4
- name: Update manifest
env:
GH_API_TOKEN: ${{ secrets.GH_API_TOKEN }}
run: tr -d '\r' < scripts/update-MicaForEveryone.sh | bash
- name: Commit and push
run: |
git config user.name "autoupdate"
git config user.email "[email protected]"
if ! git diff --quiet; then
git commit -am "MicaForEveryone: update to $(jq -r .version bucket/MicaForEveryone.json)"
git push
fi
@@ -0,0 +1,28 @@
name: autoupdate-jdownloader
on:
schedule:
- cron: '53 5 * * *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
container:
image: data.forgejo.org/oci/node:20-bookworm
steps:
- name: Install tools
run: apt-get update -qq && apt-get install -y -qq jq
- uses: actions/checkout@v4
- name: Update manifest
run: tr -d '\r' < scripts/update-jdownloader.sh | bash
- name: Commit and push
run: |
git config user.name "autoupdate"
git config user.email "[email protected]"
if ! git diff --quiet; then
git commit -am "jdownloader: update to $(jq -r .version bucket/jdownloader.json)"
git push
fi
+41 -1
View File
@@ -184,6 +184,24 @@ irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/
> **Note:** This one is installed through winget. Edge is already built into Windows, so this usually just reports that it is installed. Edge updates itself, not `scoop update`.
## Installing MicaForEveryone
[MicaForEveryone](https://github.com/MicaForEveryone/MicaForEveryone): applies Mica and other backdrop effects to the title bars and backgrounds of Win32 apps on Windows 11.
```powershell
scoop install Jonas8272/MicaForEveryone
```
Or set up everything and install it with one script:
```powershell
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-MicaForEveryone.ps1 | iex
```
> **Note:** This one does not need winget or the Microsoft Store. It downloads the project's signed MSIX package from its [GitHub](https://github.com/MicaForEveryone/MicaForEveryone/releases) (checked against a pinned SHA-256 hash) together with the Windows App Runtime package it depends on, and installs both with Windows' built-in `Add-AppxPackage`.
> **Note:** It is made for Windows 11. If you installed it from the Microsoft Store before, remove that copy first. The uninstall step keeps the app's settings, so they should survive updates.
## Installing vmware-workstation-pro
VMware Workstation Pro: run virtual machines on Windows.
@@ -202,6 +220,26 @@ irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/
> **Note:** The installer (about 267 MB) is downloaded from the [`vmwareworkstationarchive`](https://archive.org/details/vmwareworkstationarchive) item on archive.org, a third-party upload of Broadcom's installer. The download is checked against a pinned SHA-256 hash, and the file's digital signature is verified as Broadcom Inc. VMware is proprietary software, so Broadcom's licence terms apply.
> **Note:** For other versions check out [gandli's](https://github.com/gandli/scoop-vmware) bucket
## Installing jdownloader
JDownloader 2: a download manager that grabs files and links from many sites.
```powershell
scoop install Jonas8272/jdownloader
```
Or set up everything and install it with one script:
```powershell
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-jdownloader.ps1 | iex
```
> **Note:** This uses JDownloader's official JAR file, so it needs Java. Scoop installs `java/temurin-jre` for you from the official `java` bucket (the scripts add that bucket if it is missing). The first time you start JDownloader, it downloads the rest of the app from its own servers.
> **Note:** JDownloader updates itself. The bucket re-checks the official JAR every day and updates the manifest when the file changes, so `scoop update` only fetches the small bootstrap file again.
## Updating
Update Scoop and its bucket manifests:
@@ -239,4 +277,6 @@ scoop bucket rm Jonas8272
## License
See the repository for licensing information.
UNLICENCE
[![Public domain](https://raw.githubusercontent.com/unlicense/unlicense.org/5b05e26d711e32508f46d7a1381f988079e42b4e/public/pd-icon.png)](https://unlicense.org/)
+76
View File
@@ -0,0 +1,76 @@
{
"version": "2.0.6.0",
"description": "MicaForEveryone: applies Mica and other backdrop effects to the title bars and backgrounds of Win32 apps on Windows 11 (signed MSIX package from the project's GitHub releases)",
"homepage": "https://github.com/MicaForEveryone/MicaForEveryone",
"license": "MIT",
"notes": [
"Made for Windows 11.",
"Installed as a normal Windows app package with Windows' built-in Add-AppxPackage, together with the Windows App Runtime it needs. No winget or Microsoft Store is used.",
"If you installed Mica For Everyone from the Microsoft Store before, remove that copy first."
],
"architecture": {
"64bit": {
"url": [
"https://github.com/MicaForEveryone/MicaForEveryone/releases/download/2.0.6.0/bundle.msixbundle",
"https://github.com/MicaForEveryone/MicaForEveryone/releases/download/2.0.6.0/Microsoft.WindowsAppRuntime.2.x64.msix"
],
"hash": [
"d8b7985bf64eaaf1c095b6da95228f2015285b5a6a5bf79bd43ab9707e13f4e8",
"137fcd11faeddc8ec8585b92efb5b193d7d14496965ba0f152d3ffc04dc15c8e"
]
},
"32bit": {
"url": [
"https://github.com/MicaForEveryone/MicaForEveryone/releases/download/2.0.6.0/bundle.msixbundle",
"https://github.com/MicaForEveryone/MicaForEveryone/releases/download/2.0.6.0/Microsoft.WindowsAppRuntime.2.x86.msix"
],
"hash": [
"d8b7985bf64eaaf1c095b6da95228f2015285b5a6a5bf79bd43ab9707e13f4e8",
"d271b8c607cdff7de2a04ac3894304a8553dcfc66686b0247b1f3b110c4e0d6f"
]
},
"arm64": {
"url": [
"https://github.com/MicaForEveryone/MicaForEveryone/releases/download/2.0.6.0/bundle.msixbundle",
"https://github.com/MicaForEveryone/MicaForEveryone/releases/download/2.0.6.0/Microsoft.WindowsAppRuntime.2.arm64.msix"
],
"hash": [
"d8b7985bf64eaaf1c095b6da95228f2015285b5a6a5bf79bd43ab9707e13f4e8",
"97b6b2e0f596963c9156799f3af451e47d70131548ab6d522eb1bbe7cff5af1c"
]
}
},
"installer": {
"script": [
"$micaBundle = Get-ChildItem -Path $dir -File | Where-Object { $_.Extension -eq '.msixbundle' } | Select-Object -First 1",
"$micaDeps = @(Get-ChildItem -Path $dir -File | Where-Object { $_.Extension -eq '.msix' } | ForEach-Object { $_.FullName })",
"Add-AppxPackage -Path $micaBundle.FullName -DependencyPath $micaDeps -ErrorAction Stop"
]
},
"uninstaller": {
"script": "Get-AppxPackage -Name 'MicaForEveryone.MicaForEveryone2' | Remove-AppxPackage -PreserveApplicationData"
},
"checkver": "github",
"autoupdate": {
"architecture": {
"64bit": {
"url": [
"https://github.com/MicaForEveryone/MicaForEveryone/releases/download/$version/bundle.msixbundle",
"https://github.com/MicaForEveryone/MicaForEveryone/releases/download/$version/Microsoft.WindowsAppRuntime.2.x64.msix"
]
},
"32bit": {
"url": [
"https://github.com/MicaForEveryone/MicaForEveryone/releases/download/$version/bundle.msixbundle",
"https://github.com/MicaForEveryone/MicaForEveryone/releases/download/$version/Microsoft.WindowsAppRuntime.2.x86.msix"
]
},
"arm64": {
"url": [
"https://github.com/MicaForEveryone/MicaForEveryone/releases/download/$version/bundle.msixbundle",
"https://github.com/MicaForEveryone/MicaForEveryone/releases/download/$version/Microsoft.WindowsAppRuntime.2.arm64.msix"
]
}
}
}
}
+18
View File
@@ -0,0 +1,18 @@
{
"version": "2026.11.23.0629",
"description": "JDownloader 2 download manager (official bootstrap JAR; it downloads the app on first run)",
"homepage": "https://jdownloader.org/",
"license": "Freeware",
"depends": "java/temurin-jre",
"url": "https://installer.jdownloader.org/JDownloader.jar",
"hash": "388a1d028e65cbc63933a778ddbc9267c14e7e7858389ce31a10be7308adeb40",
"pre_install": "Set-Content -Path \"$dir\\JDownloader.cmd\" -Value '@echo off', 'start \"\" javaw -jar \"%~dp0JDownloader.jar\"' -Encoding Ascii",
"bin": "JDownloader.cmd",
"shortcuts": [
[
"JDownloader.cmd",
"JDownloader 2"
]
],
"persist": "cfg"
}
+5 -5
View File
@@ -1,16 +1,16 @@
{
"version": "5.4.0",
"version": "5.4.5",
"description": "Open-source desktop music player for your personal library",
"homepage": "https://desktop.mornye.com/",
"license": "LGPL-3.0-only",
"architecture": {
"64bit": {
"url": "https://github.com/mornyeapp/Mornye-Desktop/releases/download/v5.4.0/Mornye-v5.4.0-windows-x64-portable.zip",
"hash": "ef43280811c7e2d65d5fb6c30be87cd0295f6572746c27cefc15e754a3be9dcd"
"url": "https://github.com/mornyeapp/Mornye-Desktop/releases/download/v5.4.5/Mornye-v5.4.5-windows-x64-portable.zip",
"hash": "75ae2f66a3eab303e452e3a91a999421027b88eab7d4bd3bdc742f48481511e0"
},
"arm64": {
"url": "https://github.com/mornyeapp/Mornye-Desktop/releases/download/v5.4.0/Mornye-v5.4.0-windows-arm64-portable.zip",
"hash": "494c573a1fef7a512950d1f431c26fea7ad6d79f985227ac7d9160282763e704"
"url": "https://github.com/mornyeapp/Mornye-Desktop/releases/download/v5.4.5/Mornye-v5.4.5-windows-arm64-portable.zip",
"hash": "cd52239d5058908c2755af8d61f66b5e29e5b4f990e53dffe4d8dbff11d5273a"
}
},
"bin": "mornye.exe",
+3 -3
View File
@@ -1,10 +1,10 @@
{
"version": "0.4.51",
"version": "0.4.55",
"description": "Pre-release (beta) channel of Social Stream Ninja: combines live chat from YouTube, Twitch, TikTok and many other platforms into one stream for OBS overlays (desktop app)",
"homepage": "https://socialstream.ninja/",
"license": "GPL-3.0-only",
"url": "https://github.com/steveseguin/social_stream/releases/download/v0.4.51/socialstreamninja-portable.exe",
"hash": "477a2568235d2c4b32e39fa95883f312494b00dee0a1f363224c4b58388b7fca",
"url": "https://github.com/steveseguin/social_stream/releases/download/v0.4.55/socialstreamninja-portable.exe",
"hash": "1c379b1c4913e4724bfb9c185058007424449d15ac2037a8fa432483d6405afb",
"bin": [
[
"socialstreamninja-portable.exe",
+89
View File
@@ -0,0 +1,89 @@
<#
.SYNOPSIS
Installs MicaForEveryone from the Jonas8272 bucket. Sets up Scoop, git and
the bucket first if they are missing.
.DESCRIPTION
MicaForEveryone is installed from the project's signed MSIX package on
GitHub with Windows' built-in Add-AppxPackage (together with the Windows App
Runtime package it needs). No winget or Microsoft Store is used. The app is
made for Windows 11.
.EXAMPLE
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-MicaForEveryone.ps1 | iex
.NOTES
Run in a normal (non-admin) PowerShell window if Scoop is not installed yet.
#>
$ErrorActionPreference = 'Stop'
$App = 'MicaForEveryone'
$BucketName = 'Jonas8272'
$BucketUrl = 'https://codefloe.com/Jonas8272/scoop-bucket'
function Test-Command($name) {
return [bool](Get-Command $name -ErrorAction SilentlyContinue)
}
function Test-Admin {
$id = [Security.Principal.WindowsIdentity]::GetCurrent()
$principal = New-Object Security.Principal.WindowsPrincipal($id)
return $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
}
$scoopRoot = if ($env:SCOOP) { $env:SCOOP } else { Join-Path $env:USERPROFILE 'scoop' }
# 1. Scoop -------------------------------------------------------------------
if (-not (Test-Command 'scoop')) {
Write-Host 'Scoop not found. Installing Scoop...' -ForegroundColor Cyan
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
if (Test-Admin) {
Invoke-Expression "& {$(Invoke-RestMethod -Uri 'https://get.scoop.sh')} -RunAsAdmin"
} else {
Invoke-RestMethod -Uri 'https://get.scoop.sh' | Invoke-Expression
}
# Make scoop available in this session without reopening PowerShell
$env:PATH = "$scoopRoot\shims;$env:PATH"
if (-not (Test-Command 'scoop')) {
throw 'Scoop was installed but is not on PATH. Open a new PowerShell window and run this script again.'
}
} else {
Write-Host 'Scoop is already installed.' -ForegroundColor Green
}
# 2. git (needed to add buckets) ----------------------------------------------
if (-not (Test-Command 'git')) {
Write-Host 'git not found. Installing git through Scoop...' -ForegroundColor Cyan
scoop install git
if ($LASTEXITCODE -ne 0) { throw 'Failed to install git through Scoop.' }
$env:PATH = "$scoopRoot\shims;$env:PATH"
} else {
Write-Host 'git is already installed.' -ForegroundColor Green
}
# 3. Bucket ------------------------------------------------------------------
$existing = scoop bucket list | Where-Object {
$_.Name -eq $BucketName -or $_.Source -like '*Jonas8272/scoop-bucket*'
} | Select-Object -First 1
if ($existing) {
$BucketName = $existing.Name
Write-Host "Bucket '$BucketName' is already added. Updating it..." -ForegroundColor Green
scoop update
} else {
Write-Host "Adding bucket '$BucketName'..." -ForegroundColor Cyan
scoop bucket add $BucketName $BucketUrl
if ($LASTEXITCODE -ne 0) { throw "Failed to add bucket '$BucketName'." }
}
# 4. The app -----------------------------------------------------------------
Write-Host ''
Write-Host "Installing $App..." -ForegroundColor Cyan
scoop install "$BucketName/$App"
if ($LASTEXITCODE -ne 0) { throw "Failed to install $App." }
Write-Host ''
Write-Host "Done. $App is installed." -ForegroundColor Green
+8
View File
@@ -115,6 +115,14 @@ if (-not $manifests) {
throw "No app manifests found in $bucketDir."
}
# Some apps (for example jdownloader) depend on packages from the official 'java' bucket
$needsJava = $manifests | Where-Object { (Get-Content -Path $_.FullName -Raw) -match '"depends"\s*:\s*"java/' }
if ($needsJava -and -not (scoop bucket list | Where-Object { $_.Name -eq 'java' })) {
Write-Host "Adding the 'java' bucket..." -ForegroundColor Cyan
scoop bucket add java
if ($LASTEXITCODE -ne 0) { throw "Failed to add the 'java' bucket." }
}
# 5. Install them ------------------------------------------------------------
$isAdmin = Test-Admin
$results = @()
+97
View File
@@ -0,0 +1,97 @@
<#
.SYNOPSIS
Installs JDownloader from the Jonas8272 bucket. Sets up Scoop, git and the
bucket first if they are missing.
.DESCRIPTION
JDownloader is installed from its official JAR file, so it needs Java. Scoop
installs java/temurin-jre for you from the official 'java' bucket, which this
script adds if it is missing. The first time you start JDownloader it
downloads the rest of the app from its own servers.
.EXAMPLE
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-jdownloader.ps1 | iex
.NOTES
Run in a normal (non-admin) PowerShell window if Scoop is not installed yet.
#>
$ErrorActionPreference = 'Stop'
$App = 'jdownloader'
$BucketName = 'Jonas8272'
$BucketUrl = 'https://codefloe.com/Jonas8272/scoop-bucket'
function Test-Command($name) {
return [bool](Get-Command $name -ErrorAction SilentlyContinue)
}
function Test-Admin {
$id = [Security.Principal.WindowsIdentity]::GetCurrent()
$principal = New-Object Security.Principal.WindowsPrincipal($id)
return $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
}
$scoopRoot = if ($env:SCOOP) { $env:SCOOP } else { Join-Path $env:USERPROFILE 'scoop' }
# 1. Scoop -------------------------------------------------------------------
if (-not (Test-Command 'scoop')) {
Write-Host 'Scoop not found. Installing Scoop...' -ForegroundColor Cyan
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
if (Test-Admin) {
Invoke-Expression "& {$(Invoke-RestMethod -Uri 'https://get.scoop.sh')} -RunAsAdmin"
} else {
Invoke-RestMethod -Uri 'https://get.scoop.sh' | Invoke-Expression
}
# Make scoop available in this session without reopening PowerShell
$env:PATH = "$scoopRoot\shims;$env:PATH"
if (-not (Test-Command 'scoop')) {
throw 'Scoop was installed but is not on PATH. Open a new PowerShell window and run this script again.'
}
} else {
Write-Host 'Scoop is already installed.' -ForegroundColor Green
}
# 2. git (needed to add buckets) ----------------------------------------------
if (-not (Test-Command 'git')) {
Write-Host 'git not found. Installing git through Scoop...' -ForegroundColor Cyan
scoop install git
if ($LASTEXITCODE -ne 0) { throw 'Failed to install git through Scoop.' }
$env:PATH = "$scoopRoot\shims;$env:PATH"
} else {
Write-Host 'git is already installed.' -ForegroundColor Green
}
# 3. Bucket ------------------------------------------------------------------
$existing = scoop bucket list | Where-Object {
$_.Name -eq $BucketName -or $_.Source -like '*Jonas8272/scoop-bucket*'
} | Select-Object -First 1
if ($existing) {
$BucketName = $existing.Name
Write-Host "Bucket '$BucketName' is already added. Updating it..." -ForegroundColor Green
scoop update
} else {
Write-Host "Adding bucket '$BucketName'..." -ForegroundColor Cyan
scoop bucket add $BucketName $BucketUrl
if ($LASTEXITCODE -ne 0) { throw "Failed to add bucket '$BucketName'." }
}
# 4. The official 'java' bucket (jdownloader depends on java/temurin-jre) ------
$javaBucket = scoop bucket list | Where-Object { $_.Name -eq 'java' } | Select-Object -First 1
if (-not $javaBucket) {
Write-Host "Adding the 'java' bucket..." -ForegroundColor Cyan
scoop bucket add java
if ($LASTEXITCODE -ne 0) { throw "Failed to add the 'java' bucket." }
}
# 5. The app -----------------------------------------------------------------
Write-Host ''
Write-Host "Installing $App..." -ForegroundColor Cyan
scoop install "$BucketName/$App"
if ($LASTEXITCODE -ne 0) { throw "Failed to install $App." }
Write-Host ''
Write-Host "Done. $App is installed." -ForegroundColor Green
+63
View File
@@ -0,0 +1,63 @@
#!/usr/bin/env bash
set -euo pipefail
M=bucket/MicaForEveryone.json
REPO=MicaForEveryone/MicaForEveryone
auth=()
if [ -n "${GH_API_TOKEN:-}" ]; then
auth=(-H "Authorization: Bearer $GH_API_TOKEN")
fi
# "latest" is the newest stable release (pre-releases and drafts are skipped).
rel=$(curl -fsSL ${auth[@]+"${auth[@]}"} "https://api.github.com/repos/$REPO/releases/latest")
tag=$(jq -r .tag_name <<<"$rel")
ver=${tag#v}
cur=$(jq -r .version "$M")
# Up to date, or the manifest is already ahead: leave it alone.
if [ "$(printf '%s\n%s\n' "$cur" "$ver" | sort -V | tail -n1)" = "$cur" ]; then
echo "up to date ($cur)"
exit 0
fi
# Print "<url> <sha256>" for the ONE asset whose name matches the regex. Uses
# GitHub's recorded digest; otherwise downloads the file and hashes it.
asset_info() {
local re=$1 line url hash tmp
line=$(jq -r --arg re "$re" '
[ .assets[] | select(.name | test($re; "i")) ]
| if length == 1 then .[0] | "\(.browser_download_url) \(.digest // "none")" else empty end' <<<"$rel")
[ -n "$line" ] || { echo "expected exactly one asset matching /$re/ in $tag" >&2; exit 1; }
url=${line%% *}
hash=${line##* }
hash=${hash#sha256:}
if ! [[ $hash =~ ^[0-9a-f]{64}$ ]]; then
echo "no API digest for $url, downloading to hash it" >&2
tmp=$(mktemp)
curl -fsSL -o "$tmp" "$url"
[ "$(head -c2 "$tmp")" = "PK" ] || { echo "$url is not an msix/zip package" >&2; rm -f "$tmp"; exit 1; }
hash=$(sha256sum "$tmp" | cut -d' ' -f1)
rm -f "$tmp"
fi
echo "$url $hash"
}
# The app bundle plus the Windows App Runtime framework package for each CPU.
bundle=$(asset_info '^bundle\.msixbundle$')
x64=$(asset_info '^(microsoft\.windowsappruntime|wasdk)[^/]*x64\.msix$')
x86=$(asset_info '^(microsoft\.windowsappruntime|wasdk)[^/]*x86\.msix$')
arm=$(asset_info '^(microsoft\.windowsappruntime|wasdk)[^/]*arm64\.msix$')
jq --indent 4 --arg v "$ver" \
--arg bu "${bundle%% *}" --arg bh "${bundle##* }" \
--arg xu "${x64%% *}" --arg xh "${x64##* }" \
--arg iu "${x86%% *}" --arg ih "${x86##* }" \
--arg au "${arm%% *}" --arg ah "${arm##* }" \
'.version=$v
| .architecture["64bit"].url=[$bu,$xu] | .architecture["64bit"].hash=[$bh,$xh]
| .architecture["32bit"].url=[$bu,$iu] | .architecture["32bit"].hash=[$bh,$ih]
| .architecture.arm64.url=[$bu,$au] | .architecture.arm64.hash=[$bh,$ah]' \
"$M" > "$M.tmp" && mv "$M.tmp" "$M"
echo "updated $cur -> $ver"
+26
View File
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
set -euo pipefail
M=bucket/jdownloader.json
URL=https://installer.jdownloader.org/JDownloader.jar
# Download the official bootstrap JAR and hash it.
curl -fsSL -o /tmp/JDownloader.jar "$URL"
[ "$(head -c2 /tmp/JDownloader.jar)" = "PK" ] || { echo "download is not a jar" >&2; exit 1; }
hash=$(sha256sum /tmp/JDownloader.jar | cut -d' ' -f1)
cur_hash=$(jq -r .hash "$M")
if [ "$hash" = "$cur_hash" ]; then
echo "up to date ($hash)"
exit 0
fi
# Version = date and time the file was last modified (falls back to now).
lm=$(curl -fsSI "$URL" | tr -d '\r' | grep -i '^last-modified:' | head -1 | cut -d' ' -f2- || true)
ver=$(date -u -d "${lm:-now}" +%Y.%m.%d.%H%M 2>/dev/null || date -u +%Y.%m.%d.%H%M)
cur=$(jq -r .version "$M")
jq --indent 4 --arg v "$ver" --arg h "$hash" '.version=$v | .hash=$h' \
"$M" > "$M.tmp" && mv "$M.tmp" "$M"
echo "updated $cur -> $ver"