Created
March 7, 2025 07:04
-
-
Save mokurin000/3b8883a0ae869c6ec34fcd3f3b28b606 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| URL="https://objects.githubusercontent.com/github-production-release-asset-2e65be/941824078/a1366113-ad92-493b-a1ca-e024ace96143?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250305%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250305T092505Z&X-Amz-Expires=300&X-Amz-Signature=756f0389dc3c27f2246c879ee43f2b0b46a6bfbd94fe74b24955f3aa2bac1f50&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3DIncuboot-0.9.3-macos-arm64.dmg&response-content-type=application%2Foctet-stream" | |
| DMG_FILE="Incuboot-0.9.3-macos-arm64.dmg" | |
| MOUNT_POINT="/Volumes/Incuboot" | |
| echo "Downloading Incuboot..." | |
| curl -O "$URL" | |
| echo "Mounting DMG..." | |
| hdiutil attach "$DMG_FILE" -mountpoint "$MOUNT_POINT" | |
| echo "Installing Incuboot..." | |
| cp -R "$MOUNT_POINT/Incuboot.app" /Applications/ | |
| echo "Unmounting DMG..." | |
| hdiutil detach "$MOUNT_POINT" | |
| echo "Cleaning up..." | |
| rm "$DMG_FILE" | |
| echo "Signing application..." | |
| sudo codesign --sign - --force --deep /Applications/Incuboot.app | |
| echo "Installation and signing completed!" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment