mirror of
https://codefloe.com/Jonas8272/scoop-bucket.git
synced 2026-12-01 00:19:36 +00:00
Compare commits
23
Commits
d6a1cf3a12
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f0ce39268 | ||
|
|
df2da3491c | ||
|
|
9a7a5daa36 | ||
|
|
64dee48786 | ||
|
|
e6c1561e73 | ||
|
|
bebe36ee03 | ||
|
|
a8aa25fc1c | ||
|
|
3b9e941cfb | ||
|
|
c8d430b854 | ||
|
|
04a166ffa6 | ||
|
|
3fa73ae78e | ||
|
|
627fdbafd0 | ||
|
|
3e86e085f1 | ||
|
|
bbca21a978 | ||
|
|
ec3ba92137 | ||
|
|
dd36ec804f | ||
|
|
0e14f5c42e | ||
|
|
44ba2e5c73 | ||
|
|
53b4e13857 | ||
|
|
a1dbe5e10a | ||
|
|
24e1ee48dd | ||
|
|
3691258149 | ||
|
|
7e207a6e05 |
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
|
||||||
@@ -43,17 +43,18 @@ 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
|
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-all.ps1 | iex
|
||||||
```
|
```
|
||||||
|
|
||||||
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`:
|
Apps that need administrator rights (FxSound and VMware Workstation Pro) are skipped unless you run it from an elevated PowerShell. Pre-release (`-beta`) apps are skipped unless you name them with `-Only`. To choose which apps to install, download the script and pass `-Only` or `-Exclude`:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-all.ps1 -OutFile install-all.ps1
|
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-all.ps1 -OutFile install-all.ps1
|
||||||
.\install-all.ps1 -Exclude fxsound,vmware-workstation-pro
|
.\install-all.ps1 -Exclude fxsound,vmware-workstation-pro
|
||||||
.\install-all.ps1 -Only mornye,socialstreamninja
|
.\install-all.ps1 -Only mornye,socialstreamninja
|
||||||
|
.\install-all.ps1 -Only socialstreamninja-beta
|
||||||
```
|
```
|
||||||
|
|
||||||
### Install a single app with a script
|
### 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 and VMware Workstation Pro, which need an elevated one.
|
Every app also has its own script (`install-<app>.ps1`) in the [`installations`](https://git.jonas8272.com/Jonas8272/scoop-bucket/src/branch/master/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.
|
> **Tip:** Read a script before you run it. All scripts are in the `installations` folder of this repository.
|
||||||
|
|
||||||
@@ -85,6 +86,24 @@ Or set up everything and install it with one script:
|
|||||||
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-socialstreamninja.ps1 | iex
|
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-socialstreamninja.ps1 | iex
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Installing socialstreamninja-beta
|
||||||
|
|
||||||
|
The pre-release (test build) channel of socialstreamninja. It follows the newest pre-release published on [GitHub](https://github.com/steveseguin/social_stream/releases) instead of the latest stable release.
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
scoop install Jonas8272/socialstreamninja-beta
|
||||||
|
```
|
||||||
|
|
||||||
|
Or set up everything and install it with one script:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-socialstreamninja-beta.ps1 | iex
|
||||||
|
```
|
||||||
|
|
||||||
|
> **Note:** Pre-releases have not completed broad real-world testing and may contain issues. Export your settings from the app before installing or updating.
|
||||||
|
|
||||||
|
> **Note:** The beta uses its own command (`socialstreamninja-beta`), Start menu shortcut (Social Stream Ninja (Beta)) and data folder, so it can be installed next to the stable `socialstreamninja` without clashing, but the two do not share settings.
|
||||||
|
|
||||||
## Installing bewidgets
|
## Installing bewidgets
|
||||||
|
|
||||||
Desktop widgets for Windows: clock, weather, photos and app shortcuts.
|
Desktop widgets for Windows: clock, weather, photos and app shortcuts.
|
||||||
@@ -165,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`.
|
> **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
|
## Installing vmware-workstation-pro
|
||||||
|
|
||||||
VMware Workstation Pro: run virtual machines on Windows.
|
VMware Workstation Pro: run virtual machines on Windows.
|
||||||
@@ -183,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:** 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
|
## Updating
|
||||||
|
|
||||||
Update Scoop and its bucket manifests:
|
Update Scoop and its bucket manifests:
|
||||||
@@ -220,4 +277,6 @@ scoop bucket rm Jonas8272
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
See the repository for licensing information.
|
UNLICENCE
|
||||||
|
|
||||||
|
[](https://unlicense.org/)
|
||||||
@@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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
@@ -1,16 +1,16 @@
|
|||||||
{
|
{
|
||||||
"version": "5.4.0",
|
"version": "5.4.5",
|
||||||
"description": "Open-source desktop music player for your personal library",
|
"description": "Open-source desktop music player for your personal library",
|
||||||
"homepage": "https://desktop.mornye.com/",
|
"homepage": "https://desktop.mornye.com/",
|
||||||
"license": "LGPL-3.0-only",
|
"license": "LGPL-3.0-only",
|
||||||
"architecture": {
|
"architecture": {
|
||||||
"64bit": {
|
"64bit": {
|
||||||
"url": "https://github.com/mornyeapp/Mornye-Desktop/releases/download/v5.4.0/Mornye-v5.4.0-windows-x64-portable.zip",
|
"url": "https://github.com/mornyeapp/Mornye-Desktop/releases/download/v5.4.5/Mornye-v5.4.5-windows-x64-portable.zip",
|
||||||
"hash": "ef43280811c7e2d65d5fb6c30be87cd0295f6572746c27cefc15e754a3be9dcd"
|
"hash": "75ae2f66a3eab303e452e3a91a999421027b88eab7d4bd3bdc742f48481511e0"
|
||||||
},
|
},
|
||||||
"arm64": {
|
"arm64": {
|
||||||
"url": "https://github.com/mornyeapp/Mornye-Desktop/releases/download/v5.4.0/Mornye-v5.4.0-windows-arm64-portable.zip",
|
"url": "https://github.com/mornyeapp/Mornye-Desktop/releases/download/v5.4.5/Mornye-v5.4.5-windows-arm64-portable.zip",
|
||||||
"hash": "494c573a1fef7a512950d1f431c26fea7ad6d79f985227ac7d9160282763e704"
|
"hash": "cd52239d5058908c2755af8d61f66b5e29e5b4f990e53dffe4d8dbff11d5273a"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bin": "mornye.exe",
|
"bin": "mornye.exe",
|
||||||
|
|||||||
@@ -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)",
|
"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/",
|
"homepage": "https://socialstream.ninja/",
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
"url": "https://github.com/steveseguin/social_stream/releases/download/v0.4.51/socialstreamninja-portable.exe",
|
"url": "https://github.com/steveseguin/social_stream/releases/download/v0.4.55/socialstreamninja-portable.exe",
|
||||||
"hash": "477a2568235d2c4b32e39fa95883f312494b00dee0a1f363224c4b58388b7fca",
|
"hash": "1c379b1c4913e4724bfb9c185058007424449d15ac2037a8fa432483d6405afb",
|
||||||
"bin": [
|
"bin": [
|
||||||
[
|
[
|
||||||
"socialstreamninja-portable.exe",
|
"socialstreamninja-portable.exe",
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -115,6 +115,14 @@ if (-not $manifests) {
|
|||||||
throw "No app manifests found in $bucketDir."
|
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 ------------------------------------------------------------
|
# 5. Install them ------------------------------------------------------------
|
||||||
$isAdmin = Test-Admin
|
$isAdmin = Test-Admin
|
||||||
$results = @()
|
$results = @()
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -0,0 +1,86 @@
|
|||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Installs socialstreamninja-beta (pre-release builds) from the Jonas8272 bucket.
|
||||||
|
Sets up Scoop, git and the bucket first if they are missing.
|
||||||
|
|
||||||
|
.EXAMPLE
|
||||||
|
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-socialstreamninja-beta.ps1 | iex
|
||||||
|
|
||||||
|
.NOTES
|
||||||
|
Run in a normal (non-admin) PowerShell window if Scoop is not installed yet.
|
||||||
|
This installs the pre-release channel, which may contain issues. Export your
|
||||||
|
settings from the app before installing or updating.
|
||||||
|
#>
|
||||||
|
|
||||||
|
$ErrorActionPreference = 'Stop'
|
||||||
|
|
||||||
|
$App = 'socialstreamninja-beta'
|
||||||
|
$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 (pre-release)..." -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
|
||||||
|
Write-Host 'This is a pre-release build and may contain issues. Export your settings before updating.' -ForegroundColor Yellow
|
||||||
@@ -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"
|
||||||
@@ -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"
|
||||||
Reference in new issue
Block a user