yshalsager's Channel
2.68K subscribers
74 photos
12 videos
6 files
833 links
A channel where you can find @yshalsager's projects and its updates.
https://yshalsager.com/en/
Download Telegram
Managing macOS apps with mise

Mise downloads GitHub release assets, but it does not install DMG applications into /Applications. Add this custom global task to ~/.config/mise/config.toml:


[tasks."macos:install-dmg-app"]
hide = true
run = '''
set -euo pipefail

install_path="${MISE_TOOL_INSTALL_PATH:?MISE_TOOL_INSTALL_PATH is required}"
dmg_pattern="${MACOS_DMG_PATTERN:-*.dmg}"
app_pattern="${MACOS_APP_PATTERN:-*.app}"

dmg="$(find "$install_path" -maxdepth 1 -name "$dmg_pattern" -type f -print -quit)"
app_root="$install_path"

if [ -n "$dmg" ]; then
mount="$(hdiutil attach "$dmg" -nobrowse -readonly |
awk '/\/Volumes\// {print substr($0, index($0, "/Volumes/")); exit}')"

cleanup() {
hdiutil detach "$mount" -quiet 2>/dev/null || true
}
trap cleanup EXIT
app_root="$mount"
fi

app="$(find "$app_root" -maxdepth 1 -name "$app_pattern" -type d -print -quit)"
[ -n "$app" ] || { echo "No .app found in $app_root"; exit 1; }

app_name="${MACOS_APP_NAME:-$(basename "$app")}"
case "$app_name" in
*.app) ;;
*) app_name="$app_name.app" ;;
esac

ditto "$app" "/Applications/$app_name"
'''


Then declare apps using mise’s GitHub backend:


[tools."github:user/repo"]
version = "latest"
asset_pattern = "App-darwin-arm64-{{ version }}.dmg"
postinstall = "mise run --skip-tools --raw macos:install-dmg-app"


For ZIP releases containing an .app:


asset_pattern = "App-*.zip"
strip_components = 0
postinstall = "mise run --skip-tools --raw macos:install-dmg-app"


Install or upgrade:


mise install
mise upgrade
Open-source Islamic platform for adhkar, Quran reading, search, and daily progress.

https://kunuz.net/en/apps/muttasiq
❤3
Forwarded from Hacker News
PostgreSQL for Everything (🔥 Score: 153+ in 3 hours)

Link: https://readhacker.news/s/736dr
Comments: https://readhacker.news/c/736dr
Forwarded from Hacker News
Thinking in Python (Score: 150+ in 13 hours)

Link: https://readhacker.news/s/73jgc
Comments: https://readhacker.news/c/73jgc
Forwarded from XM Firmware Updater
Xiaomi Flashable Firmware Creator v2.3.3

Highlights
• Fixes #388: payload/A/B firmware packages now use an architecture-neutral recovery shell updater instead of the bundled 32-bit ARM executable, allowing installation on ARM64-only recoveries.
• Validates A/B OTA metadata, target device, active slot, image integrity, partition mappings, capacity, and writable state before the first partition write.
• Flashes the inactive slot first, then the active slot, using durable writes and exact-length SHA-256 readback verification.
• Restores read-only partition state on success or failure and aborts if block-device identity changes.
• Preserves legacy non-payload ROM updater binaries unchanged.
• Detects payload ROMs only when the archive contains an exact payload.bin entry.

https://github.com/XiaomiFirmwareUpdater/xiaomi-flashable-firmware-creator/releases/tag/v2.3.3
❤4
Forwarded from XM Firmware Updater
Xiaomi Flashable Firmware Creator GUI v2.3.19

Highlights
• Uses Xiaomi Flashable Firmware Creator 2.3.3 and routes package generation through the payload-aware flashing-script path.
• Fixes issue #388 for GUI-generated payload/A/B firmware: packages now contain the architecture-neutral recovery shell updater and work on ARM64-only recoveries.
• Preserves legacy non-payload package behavior.

https://github.com/XiaomiFirmwareUpdater/xiaomi-flashable-firmware-creator-gui/releases/tag/v2.3.19
yshalsager's Channel
https://github.com/ludwig-pro/lu-cleaner
mise use -g 'github:ludwig-pro/lu-cleaner[asset_pattern=lu-cleaner_macOS_universal.tar.gz]@latest'
Choose shortcut icons from installed icon packs or your own images.

Existing Notifications and Quick Settings shortcuts, including those dragged from the launcher menu, must be re-pinned from the app once to use custom icons. Remove the old shortcut afterwards. Launcher menu icons remain unchanged.

https://github.com/yshalsager/ShizukuShortcuts/releases/tag/v0.6.0
👍1