diff options
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -6,6 +6,7 @@ chmod +x bin/release/better-report # Create macOS .app bundle APP_NAME="Better Report" +RELEASE_DIR="bin/release" APP_DIR="bin/release/${APP_NAME}.app" rm -rf "$APP_DIR" mkdir -p "$APP_DIR/Contents/MacOS" @@ -46,3 +47,34 @@ cat > "$APP_DIR/Contents/Info.plist" << EOF </dict> </plist> EOF + +cat > "$APP_DIR/../HELP_IT_DOESNT_OPEN.txt" << EOF + +Getting some popup about it not being trusted? Or is MacOS telling you it's broken? It's not broken. +I just refuse to pay Apple for a loiscence to provide good software for their platform. So they block it. +Fuck you Apple. + +So, here's how to fix it. + + +To fix it permanently so you don't have this problem ever again: + +1. Open Terminal +2. Paste this text in there and press Enter/Return +sudo spctl --master-disable +3. You may need to write your password, just be aware that you won't see what you're typing +4. Go to System Settings > Privacy & Security and scroll down to set Allow apps from: Everywhere + + +To fix it for just this program: + +1. Open Terminal, and paste this in there: +xattr -rd com.apple.quarantine +2. Make sure there's a space at the end of what you just pasted +3. Drag and drop the program into the Terminal and hit Enter + +EOF + +cd "$RELEASE_DIR/" +rm "Better Report.zip" +zip "Better Report.zip" "${APP_NAME}.app" "HELP_IT_DOESNT_OPEN.txt" |