Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamgilbert committed May 28, 2024
1 parent 293c90d commit cad198e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Crypt/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>278</string>
<string>279</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2024 The Crypt Project. All rights reserved.</string>
<key>NSPrincipalClass</key>
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ build_binary:
@sudo chmod 755 build/checkin


sign_binary:
sign_binary: build_binary
@sudo codesign --timestamp --force --deep -s "${DEV_APP_CERT}" build/checkin

pack-checkin: l_Library l_Library_LaunchDaemons build_binary sign_binary
Expand Down
Empty file modified Package/postinstall
100644 → 100755
Empty file.
5 changes: 5 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ var version = "development" // nolint:gochecknoglobals

func main() {

if os.Geteuid() != 0 {
fmt.Println("Crypt must be run as root!")
os.Exit(1)
}

install := flag.Bool("install", false, "Install the AuthDB mechanisms")
uninstall := flag.Bool("uninstall", false, "Uninstall the AuthDB mechanisms")
checkMechs := flag.Bool("check-auth-mechs", false, "Check the AuthDB mechanisms. Returns 0 if all are present, 1 if not.")
Expand Down

0 comments on commit cad198e

Please sign in to comment.