Skip to content

Instantly share code, notes, and snippets.

View einsteinx2's full-sized avatar

Ben Baron einsteinx2

View GitHub Profile
@einsteinx2
einsteinx2 / sign-fluid-app
Last active June 17, 2022 20:31
Script to properly code sign Fluid web apps to prevent various issues due to macOS security checks (requires Apple developer account)
#!/bin/bash
# View xattrs: `xattr -lr SomeApp.app`
# Confirm signature: `spctl -a -v SomeApp.app`
# Print signature information (Fluid apps have a signature but it's invalid): `codesign -dv --verbose=4 SomeApp.app`
# NOTE: I seem to get this error, but it doesn't affect usage in any way:
# "SomeApp.app: invalid resource directory (directory or signature have been modified)"
# Information used to create this script:
# https://stackoverflow.com/questions/18441268/codesign-app-file-in-command-line
@einsteinx2
einsteinx2 / fix_old_xcode.sh
Created December 23, 2022 18:54
Fix old Xcode to run on new macOS
#!/bin/sh
# https://stackoverflow.com/a/74500488/299262
set -euo pipefail
# Set the paths to your Old/New Xcodes
OLD_XCODE="/Applications/Xcode-13.4.1.app"
NEW_XCODE="/Applications/Xcode.app" # To get build number
# Get New Xcode build number