diff --git a/Scripts/create_app_bundle.sh b/Scripts/create_app_bundle.sh index 405c56d..1ebba9c 100755 --- a/Scripts/create_app_bundle.sh +++ b/Scripts/create_app_bundle.sh @@ -175,11 +175,6 @@ if command -v codesign &> /dev/null; then sign_mach_o_file() { local path="$1" - case "$path" in - */Python.framework/Python|*/Python.framework/Versions/Current/*) - return - ;; - esac if file "$path" | grep -q 'Mach-O'; then if ! sign_path "$path"; then @@ -202,6 +197,10 @@ if command -v codesign &> /dev/null; then sign_mach_o_file "$executable_path" done < <(find "$RESOURCES_DIR" -type f -print0) + while IFS= read -r -d '' bundle_path; do + sign_path "$bundle_path" + done < <(find "$RESOURCES_DIR" \( -name "*.xpc" -o -name "*.framework" \) -type d -depth -print0) + sign_path "$MACOS_DIR/$APP_NAME" sign_path "$APP_DIR" codesign --verify --deep --verbose=2 "$APP_DIR" || true diff --git a/Sources/Firelink/ReleaseUpdateChecker.swift b/Sources/Firelink/ReleaseUpdateChecker.swift index 342f9e8..c530b4d 100644 --- a/Sources/Firelink/ReleaseUpdateChecker.swift +++ b/Sources/Firelink/ReleaseUpdateChecker.swift @@ -299,6 +299,21 @@ struct AppVersion: Comparable, CustomStringConvertible { return false } + + static func == (lhs: AppVersion, rhs: AppVersion) -> Bool { + let count = max(lhs.components.count, rhs.components.count) + + for index in 0..