kiteco-public/osx
2021-12-31 23:54:19 -08:00
..
HelperTemplate.tmpl/Contents Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
Kite Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
Kite.xcodeproj Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
KiteHelper Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
KiteTests Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
Rollbar.framework Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
Sparkle.framework Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
tensorflow Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
tensorflow_build Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
.gitignore Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
BinaryDelta Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
build_electron.sh Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
build_kitelsp.sh Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
build_libkited.sh Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
com.kite.KiteHelper.plist Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
dmg_bg.png Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
go.mod Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
go.sum Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
README.md Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
sign_resources.sh Contents — happy new year everyone 2021-12-31 23:54:19 -08:00

Xcode

You will need Xcode on your machine to build the Kite front-end.

You should be able to open the Xcode project at:

~/go/src/github.com/kiteco/kiteco/osx/Kite.xcodeproj

Open the project, and make sure that the Team under Signing (Debug) is the same for each of Kite.xcodeproj, KiteHelper.xcodeproj, and KiteSidebar.xcodeproj (you're fine just signing with your personal team). Then hit the Run button. You should now see the Kite icon on your menubar. (This will build the Go component of the client automatically.)

The build might fail if you have not built the electron sidebar. The development flow for working with the sidebar requires invoking a separate command to build the electron application before running the Xcode project. You might see this build error in Xcode:

Checking for electon/Kite.app...
Please run 'osx/build_electron.sh force' to build the sidebar application
Command /bin/sh failed with exit code 1

Follow the instructions (e.g run osx/build_electron.sh force), and build the Xcode project again. Note that if you are expecting updates to the electron application (e.g after a git pull), you must manually rebuild the application by running this command again. Otherwise, the application that is build by Xcode will use whatever electron bundle was previously built.

If you are working directly with the Electron sidebar, please see the developer instructions at https://github.com/kiteco/kiteco/tree/master/sidebar.

Code signing libraries

The build expects committed libraries (Sparkle, Rollbar) to be already signed, and ready to be bundled directly into Kite.app. In order to do this, reference https://github.com/sparkle-project/Sparkle/issues/1389#issuecomment-507950890.

codesign --verbose --force --deep -o runtime --sign "Developer ID Application" "$LOCATION/Sparkle.framework/Versions/A/Resources/AutoUpdate.app"
codesign --verbose --force -o runtime --sign "Developer ID Application" "$LOCATION/Sparkle.framework"