Skip to content

Commit

Permalink
added notarization setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Benzi committed Mar 22, 2023
1 parent cc22b4b commit 40a8155
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion menu/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@ let package = Package(
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.executableTarget(
name: "menu",
dependencies: ["SwiftProtobuf"]),
dependencies: ["SwiftProtobuf"],
linkerSettings: [
.unsafeFlags([
"-Xlinker", "-sectcreate",
"-Xlinker", "__TEXT",
"-Xlinker", "__info_plist",
"-Xlinker", "Sources/Info.plist"
])
]),
.testTarget(
name: "menuTests",
dependencies: ["menu"]),
Expand Down
4 changes: 2 additions & 2 deletions menu/Sources/menu/AX.swift
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ func getMenuItems(
var modifiers = 0
var virtualKey = 0
if let m = getAttribute(element: child, name: kAXMenuItemCmdModifiersAttribute) {
CFNumberGetValue(m as! CFNumber, CFNumberType.longType, &modifiers)
CFNumberGetValue((m as! CFNumber), CFNumberType.longType, &modifiers)
}
if let v = getAttribute(element: child, name: kAXMenuItemCmdVirtualKeyAttribute) {
CFNumberGetValue(v as! CFNumber, CFNumberType.longType, &virtualKey)
CFNumberGetValue((v as! CFNumber), CFNumberType.longType, &virtualKey)
}

var menuItem = MenuItem()
Expand Down

0 comments on commit 40a8155

Please sign in to comment.