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
This commit is contained in:
Jonas8272andClaude Sonnet 5.5 committed 2026-11-23 07:04:47 +00:00
1 parent 0e14f5c42e
commit dd36ec804f
5 files changed
+170 -20

No files matched your search

@@ -0,0 +1,30 @@
name: autoupdate-mica-for-everyone
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-mica-for-everyone.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 "mica-for-everyone: update to $(jq -r .version bucket/mica-for-everyone.json)"
git push
fi
+5 -1
View File
@@ -198,7 +198,11 @@ Or set up everything and install it with one script:
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-mica-for-everyone.ps1 | iex
```
> **Note:** This one is installed from the Microsoft Store through winget (the project's official Store listing). The Store updates it, not `scoop update`. It needs Windows 11.
> **Note:** This one does not need winget or the Microsoft Store. It downloads the project's signed MSIX package from its [GitHub releases](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`. A normal (non-admin) PowerShell is enough.
> **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 survive updates.
> **Note:** This one updates automatically. A workflow checks the latest stable GitHub release every 6 hours and updates the version, URLs and hashes in `bucket/mica-for-everyone.json`. Then `scoop update mica-for-everyone` installs it.
## Installing vmware-workstation-pro
+68 -6
View File
@@ -1,14 +1,76 @@
{
"version": "1.0",
"description": "Mica For Everyone: applies Mica and other backdrop effects to the title bars and backgrounds of Win32 apps on Windows 11 (installed from the Microsoft Store via winget)",
"version": "2.0.6.0",
"description": "Mica For Everyone: 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": "Needs Windows 11. The Microsoft Store updates this app, not 'scoop update'.",
"url": "https://jonas8272.codeberg.page/blank/#/blank.html",
"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": "winget install --id 9P8V68P4Z78P --source msstore --accept-package-agreements --accept-source-agreements"
"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": "winget uninstall --id 9P8V68P4Z78P --source msstore"
"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"
]
}
}
}
}
+4 -13
View File
@@ -4,10 +4,10 @@
the bucket first if they are missing.
.DESCRIPTION
Mica For Everyone is installed from the Microsoft Store through winget, so
winget must be available (it ships with current Windows 10 and 11 as App
Installer). The app itself needs Windows 11. The Store updates it, not
"scoop update".
Mica For Everyone 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-mica-for-everyone.ps1 | iex
@@ -34,15 +34,6 @@ function Test-Admin {
$scoopRoot = if ($env:SCOOP) { $env:SCOOP } else { Join-Path $env:USERPROFILE 'scoop' }
# 0. winget (the app comes from the Microsoft Store) --------------------------
if (-not (Test-Command 'winget')) {
throw 'winget was not found. Install "App Installer" from the Microsoft Store, then run this script again.'
}
if ([Environment]::OSVersion.Version.Build -lt 22000) {
Write-Warning 'Mica For Everyone is made for Windows 11. It may not install or do anything on Windows 10.'
}
# 1. Scoop -------------------------------------------------------------------
if (-not (Test-Command 'scoop')) {
Write-Host 'Scoop not found. Installing Scoop...' -ForegroundColor Cyan
+63
View File
@@ -0,0 +1,63 @@
#!/usr/bin/env bash
set -euo pipefail
M=bucket/mica-for-everyone.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"