mirror of
https://codefloe.com/Jonas8272/scoop-bucket.git
synced 2026-12-01 00:19:36 +00:00
Compare commits
17
Commits
6089c0b66d
...
d6a1cf3a12
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6a1cf3a12 | ||
|
|
a59b3eff46 | ||
|
|
85b00df9e8 | ||
|
|
40072e4817 | ||
|
|
40c3ca1737 | ||
|
|
2ea8349ce6 | ||
|
|
0a24cf9e2a | ||
|
|
36efd656c9 | ||
|
|
245dff9fa7 | ||
|
|
c3eb410f48 | ||
|
|
528cebe226 | ||
|
|
460c1aef74 | ||
|
|
1bff9d28d5 | ||
|
|
a924ab8d73 | ||
|
|
b36ae2b806 | ||
|
|
46c20f94f1 | ||
|
|
91dd40fda3 |
No files matched your search
@@ -0,0 +1,30 @@
|
||||
name: autoupdate-socialstreamninja-beta
|
||||
on:
|
||||
schedule:
|
||||
- cron: '44 */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-socialstreamninja-beta.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 "socialstreamninja-beta: update to $(jq -r .version bucket/socialstreamninja-beta.json)"
|
||||
git push
|
||||
fi
|
||||
@@ -0,0 +1,28 @@
|
||||
name: autoupdate-vmware-workstation-pro
|
||||
on:
|
||||
schedule:
|
||||
- cron: '17 */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 curl ca-certificates osslsigncode
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Update manifest
|
||||
run: tr -d '\r' < scripts/update-vmware-workstation-pro.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 "vmware-workstation-pro: update to $(jq -r .version bucket/vmware-workstation-pro.json)"
|
||||
git push
|
||||
fi
|
||||
@@ -43,17 +43,17 @@ This does the same setup and then installs all the apps listed below:
|
||||
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-all.ps1 | iex
|
||||
```
|
||||
|
||||
Apps that need administrator rights (FxSound) are skipped unless you run it from an elevated PowerShell. To choose which apps to install, download the script and pass `-Only` or `-Exclude`:
|
||||
Apps that need administrator rights (FxSound and VMware Workstation Pro) are skipped unless you run it from an elevated PowerShell. To choose which apps to install, download the script and pass `-Only` or `-Exclude`:
|
||||
|
||||
```powershell
|
||||
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-all.ps1 -OutFile install-all.ps1
|
||||
.\install-all.ps1 -Exclude fxsound
|
||||
.\install-all.ps1 -Exclude fxsound,vmware-workstation-pro
|
||||
.\install-all.ps1 -Only mornye,socialstreamninja
|
||||
```
|
||||
|
||||
### Install a single app with a script
|
||||
|
||||
Every app also has its own script (`install-<app>.ps1`) in the [`installations`](installations) folder. It does the same setup as above (Scoop, git and the bucket, only if missing) and then installs just that app. The one-liner for each app is in its section below. Run it in a normal (non-admin) PowerShell window, except for FxSound, which needs an elevated one.
|
||||
Every app also has its own script (`install-<app>.ps1`) in the [`installations`](installations) folder. It does the same setup as above (Scoop, git and the bucket, only if missing) and then installs just that app. The one-liner for each app is in its section below. Run it in a normal (non-admin) PowerShell window, except for FxSound and VMware Workstation Pro, which need an elevated one.
|
||||
|
||||
> **Tip:** Read a script before you run it. All scripts are in the `installations` folder of this repository.
|
||||
|
||||
@@ -165,6 +165,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 vmware-workstation-pro
|
||||
|
||||
VMware Workstation Pro: run virtual machines on Windows.
|
||||
|
||||
```powershell
|
||||
scoop install Jonas8272/vmware-workstation-pro
|
||||
```
|
||||
|
||||
Or set up everything and install it with one script (from an elevated PowerShell):
|
||||
|
||||
```powershell
|
||||
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-vmware-workstation-pro.ps1 | iex
|
||||
```
|
||||
|
||||
> **Note:** VMware installs drivers and virtual network adapters, so run PowerShell as administrator for this one. The script stops with a message if it is not elevated, and you may need to restart Windows afterwards.
|
||||
|
||||
> **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.
|
||||
|
||||
## Updating
|
||||
|
||||
Update Scoop and its bucket manifests:
|
||||
@@ -198,7 +216,7 @@ scoop bucket rm Jonas8272
|
||||
- [Jonas8272 Scoop Bucket mirror repository (gitea)](https://git.jonas8272.com/Jonas8272/scoop-bucket)
|
||||
- [Status](https://status.jonas8272.com)
|
||||
|
||||
> **Note:** You may want to save the links to the mirrors as they have generally better uptime than codefloe
|
||||
> **Note:** You may want to save the links to the mirrors as they have generally better uptime than codefloe (codefloes uptime is absolute trash)
|
||||
|
||||
## License
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"version": "0.4.51",
|
||||
"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",
|
||||
"bin": [
|
||||
[
|
||||
"socialstreamninja-portable.exe",
|
||||
"socialstreamninja-beta"
|
||||
]
|
||||
],
|
||||
"shortcuts": [
|
||||
[
|
||||
"socialstreamninja-portable.exe",
|
||||
"Social Stream Ninja (Beta)"
|
||||
]
|
||||
],
|
||||
"persist": "SocialStreamNinja-beta-data",
|
||||
"notes": [
|
||||
"This is the PRE-RELEASE (test build) channel of Social Stream Ninja and may contain issues.",
|
||||
"Export your settings from the app before installing or updating.",
|
||||
"Use the stable 'socialstreamninja' manifest if you want tested releases only."
|
||||
],
|
||||
"checkver": {
|
||||
"url": "https://api.github.com/repos/steveseguin/social_stream/releases",
|
||||
"jsonpath": "$[0].tag_name",
|
||||
"regex": "v([\\d.]+)"
|
||||
},
|
||||
"autoupdate": {
|
||||
"url": "https://github.com/steveseguin/social_stream/releases/download/v$version/socialstreamninja-portable.exe"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Installs VMware Workstation Pro from the Jonas8272 bucket. Sets up Scoop,
|
||||
git and the bucket first if they are missing.
|
||||
|
||||
.DESCRIPTION
|
||||
VMware Workstation installs drivers and virtual network adapters, so this
|
||||
script must be run from an elevated PowerShell (right-click PowerShell,
|
||||
then "Run as administrator"). A reboot is probably needed afterwards.
|
||||
If Scoop is not installed yet, it is installed in admin mode.
|
||||
|
||||
The installer (about 267 MB) is downloaded from the vmwareworkstationarchive
|
||||
item on archive.org and checked against a pinned SHA-256 hash.
|
||||
|
||||
.EXAMPLE
|
||||
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-vmware-workstation-pro.ps1 | iex
|
||||
#>
|
||||
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$App = 'vmware-workstation-pro'
|
||||
$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' }
|
||||
|
||||
# 0. Administrator rights (VMware installs drivers) ---------------------------
|
||||
if (-not (Test-Admin)) {
|
||||
Write-Warning 'VMware Workstation installs drivers and network adapters, so this needs an elevated PowerShell. Right-click PowerShell, choose "Run as administrator", then run this script again.'
|
||||
return
|
||||
}
|
||||
|
||||
# 1. Scoop -------------------------------------------------------------------
|
||||
if (-not (Test-Command 'scoop')) {
|
||||
Write-Host 'Scoop not found. Installing Scoop...' -ForegroundColor Cyan
|
||||
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
|
||||
Invoke-Expression "& {$(Invoke-RestMethod -Uri 'https://get.scoop.sh')} -RunAsAdmin"
|
||||
|
||||
# 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 (about 267 MB download)..." -ForegroundColor Cyan
|
||||
scoop install "$BucketName/$App"
|
||||
if ($LASTEXITCODE -ne 0) { throw "Failed to install $App." }
|
||||
|
||||
Write-Host ''
|
||||
Write-Host "Done. $App is installed. Restart Windows if VMware asks for it." -ForegroundColor Green
|
||||
@@ -0,0 +1,52 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
M=bucket/socialstreamninja-beta.json
|
||||
REPO=steveseguin/social_stream
|
||||
ASSET='^socialstreamninja-portable\.exe$'
|
||||
|
||||
auth=()
|
||||
if [ -n "${GH_API_TOKEN:-}" ]; then
|
||||
auth=(-H "Authorization: Bearer $GH_API_TOKEN")
|
||||
fi
|
||||
|
||||
# /releases/latest never returns pre-releases, so list releases and take the
|
||||
# newest one that is flagged as a pre-release (the API returns newest first).
|
||||
rel=$(curl -fsSL ${auth[@]+"${auth[@]}"} "https://api.github.com/repos/$REPO/releases?per_page=30" \
|
||||
| jq 'map(select(.prerelease == true and .draft == false)) | first')
|
||||
|
||||
if [ "$rel" = "null" ] || [ -z "$rel" ]; then
|
||||
echo "no pre-release found for $REPO" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
tag=$(jq -r .tag_name <<<"$rel")
|
||||
ver=${tag#v}
|
||||
cur=$(jq -r .version "$M")
|
||||
|
||||
if [ "$ver" = "$cur" ]; then
|
||||
echo "up to date ($cur)"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
name=$(jq -r '.assets[].name' <<<"$rel" | grep -E "$ASSET" || true)
|
||||
if [ "$(printf '%s\n' "$name" | grep -c .)" -ne 1 ]; then
|
||||
echo "expected exactly one asset matching /$ASSET/ in $tag, got:" >&2
|
||||
echo "$name" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
url="https://github.com/$REPO/releases/download/$tag/$name"
|
||||
|
||||
# Prefer GitHub's recorded digest; otherwise download and hash the file.
|
||||
hash=$(jq -r --arg n "$name" '.assets[] | select(.name==$n) | .digest // empty' <<<"$rel" | sed 's/^sha256://')
|
||||
if ! [[ $hash =~ ^[0-9a-f]{64}$ ]]; then
|
||||
echo "no API digest for $name, downloading to hash it" >&2
|
||||
curl -fsSL -o /tmp/asset "$url"
|
||||
hash=$(sha256sum /tmp/asset | cut -d' ' -f1)
|
||||
fi
|
||||
|
||||
jq --indent 4 --arg v "$ver" --arg u "$url" --arg h "$hash" \
|
||||
'.version=$v | .url=$u | .hash=$h' "$M" > "$M.tmp" && mv "$M.tmp" "$M"
|
||||
|
||||
echo "updated $cur -> $ver"
|
||||
@@ -0,0 +1,73 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
M=bucket/vmware-workstation-pro.json
|
||||
ITEM=vmwareworkstationarchive
|
||||
META="https://archive.org/metadata/$ITEM/files"
|
||||
|
||||
files=$(curl -fsSL --retry 3 --connect-timeout 30 "$META")
|
||||
|
||||
# Newest Windows installer = highest build number among files like
|
||||
# 26H1/VMware-Workstation-Full-26H1u1-25688693.exe (the old 17.x and older
|
||||
# builds use a different name and are ignored).
|
||||
latest=$(jq -c '
|
||||
[ (if type == "array" then . else (.result // .files) end)[]
|
||||
| select(.name | test("^[0-9]{2}H[0-9]/VMware-Workstation-Full-[0-9]{2}H[0-9](u[0-9]+)?-[0-9]+\\.exe$"))
|
||||
| . + { build: (.name | capture("-(?<b>[0-9]+)\\.exe$").b | tonumber),
|
||||
ver: (.name | capture("Full-(?<v>[0-9]{2}H[0-9](u[0-9]+)?)-").v) } ]
|
||||
| sort_by(.build) | last // empty' <<<"$files")
|
||||
|
||||
[ -n "$latest" ] || { echo "no VMware Workstation installer found in $ITEM" >&2; exit 1; }
|
||||
|
||||
name=$(jq -r .name <<<"$latest")
|
||||
ver=$(jq -r .ver <<<"$latest")
|
||||
build=$(jq -r .build <<<"$latest")
|
||||
size=$(jq -r .size <<<"$latest")
|
||||
md5=$(jq -r .md5 <<<"$latest")
|
||||
|
||||
url="https://archive.org/download/$ITEM/$name#/setup.exe"
|
||||
cur_url=$(jq -r .url "$M")
|
||||
|
||||
if [ "$url" = "$cur_url" ]; then
|
||||
echo "up to date ($(jq -r .version "$M"))"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cur_build=$(sed -E 's/.*-([0-9]+)\.exe.*/\1/' <<<"$cur_url")
|
||||
if [[ $cur_build =~ ^[0-9]+$ ]] && [ "$build" -le "$cur_build" ]; then
|
||||
echo "archive newest build ($build) is not newer than the manifest ($cur_build), leaving it alone"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "new build $build ($ver), downloading to verify it"
|
||||
tmp=$(mktemp -d)
|
||||
trap 'rm -rf "$tmp"' EXIT
|
||||
exe="$tmp/setup.exe"
|
||||
curl -fSL --retry 3 --retry-delay 15 --connect-timeout 30 -o "$exe" "https://archive.org/download/$ITEM/$name"
|
||||
|
||||
# 1. It is a Windows executable of the size and md5 archive.org lists (transfer check).
|
||||
[ "$(head -c2 "$exe")" = "MZ" ] || { echo "download is not an exe" >&2; exit 1; }
|
||||
[ "$(stat -c%s "$exe")" = "$size" ] || { echo "size mismatch" >&2; exit 1; }
|
||||
[ "$(md5sum "$exe" | cut -d' ' -f1)" = "$md5" ] || { echo "md5 mismatch" >&2; exit 1; }
|
||||
|
||||
# 2. It carries a valid digital signature from Broadcom (authenticity check).
|
||||
# archive.org is a third-party upload, so this is what protects the bucket.
|
||||
if ! osslsigncode verify -in "$exe" \
|
||||
-CAfile /etc/ssl/certs/ca-certificates.crt \
|
||||
-TSA-CAfile /etc/ssl/certs/ca-certificates.crt >"$tmp/sig.txt" 2>&1; then
|
||||
cat "$tmp/sig.txt" >&2
|
||||
echo "signature verification failed, not updating" >&2
|
||||
exit 1
|
||||
fi
|
||||
grep -q 'Broadcom Inc' "$tmp/sig.txt" || { cat "$tmp/sig.txt" >&2; echo "installer is not signed by Broadcom Inc, not updating" >&2; exit 1; }
|
||||
|
||||
hash=$(sha256sum "$exe" | cut -d' ' -f1)
|
||||
|
||||
cur=$(jq -r .version "$M")
|
||||
jq --indent 4 --arg v "$ver" --arg u "$url" --arg h "$hash" --arg b "$build" \
|
||||
'.version=$v
|
||||
| .description = "VMware Workstation Pro, build \($b) (downloaded from the vmwareworkstationarchive item on archive.org)"
|
||||
| .url=$u | .hash=$h' \
|
||||
"$M" > "$M.tmp" && mv "$M.tmp" "$M"
|
||||
|
||||
echo "updated $cur -> $ver (build $build)"
|
||||
Reference in new issue
Block a user