-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip * basic web chat * delete unused packages and update readme * remove stale comment * update options
- Loading branch information
Showing
60 changed files
with
195 additions
and
4,190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,11 @@ | ||
# nimbus | ||
# Nimbus, ChatGPT-like Flutter App | ||
|
||
Nimbus gives Google's Gemini LLM access to your desktop so it can easily read files and run code for you. | ||
ChatGPT-like interface built on Flutter to target multiple platforms. | ||
|
||
# architecture | ||
## Architecture | ||
|
||
- Flutter desktop app that targets MacOS and Linux with a single codebase. | ||
- Flutter app | ||
- Google Gemini LLM | ||
- Firebase Firestore is used to preserve chats and messages with security rules to ensure that only authenticated users can read or write their data. | ||
- Firebase Authentication is used to let users log in using email or Google. | ||
- There is no backend. The Flutter client uses a pass-through server proxy to directly call the Google AI Gemini API. | ||
- Firebase Hosting for the landing page | ||
|
||
# next | ||
|
||
- [ ] Firebase App Check to increase security | ||
- [ ] Use Firebase Storage when files exceed the size limit for direct upload to Google AI Gemini API | ||
|
||
# macos app release | ||
|
||
1. Build, sign and notarize app in Xcode. Select `Product > Archive` => `Distribute App` => `Direct Distribution` and verify it | ||
|
||
```bash | ||
spctl -a -vvv -t install Nimbus.app | ||
``` | ||
|
||
2. Zip it and upload it to GCP | ||
|
||
https://console.cloud.google.com/storage/browser/nimbus-d5268.appspot.com | ||
|
||
## macos dmg release | ||
|
||
We needed a Developer ID Installer certificate added to our identity via Xcode > Preferences > Accounts | ||
|
||
1. Create DMG from App | ||
|
||
/~https://github.com/sindresorhus/create-dmg | ||
|
||
```bash | ||
create-dmg path/to/Nimbus.app | ||
``` | ||
|
||
Verify it | ||
|
||
```bash | ||
spctl -a -vvv -t install Nimbus\ 1.0.1.dmg | ||
``` | ||
|
||
2. Notarize and staple DMG with Apple's `notarytool` | ||
|
||
https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/customizing_the_notarization_workflow#3087734 | ||
|
||
https://wiki.lazarus.freepascal.org/Notarization_for_macOS_10.14.5%2B | ||
|
||
```bash | ||
xcrun notarytool submit Nimbus\ 1.0.1.dmg --keychain-profile "notarytool-password" --wait | ||
xcrun notarytool history --keychain-profile "notarytool-password" | ||
xcrun stapler staple Nimbus\ 1.0.1.dmg | ||
``` | ||
|
||
Verify it | ||
|
||
```bash | ||
spctl -a -vvv -t install Nimbus.app | ||
spctl -a -vvv -t install Nimbus\ 1.0.1.dmg | ||
``` | ||
|
||
3. Zip it and upload it to GCP | ||
|
||
https://console.cloud.google.com/storage/browser/nimbus-d5268.appspot.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This file configures the analyzer, which statically analyzes Dart code to | ||
# check for errors, warnings, and lints. | ||
# | ||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled | ||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be | ||
# invoked from the command line by running `flutter analyze`. | ||
|
||
# The following line activates a set of recommended lints for Flutter apps, | ||
# packages, and plugins designed to encourage good coding practices. | ||
include: package:flutter_lints/flutter.yaml | ||
|
||
linter: | ||
# The lint rules applied to this project can be customized in the | ||
# section below to disable rules from the `package:flutter_lints/flutter.yaml` | ||
# included above or to enable additional rules. A list of all available lints | ||
# and their documentation is published at https://dart.dev/lints. | ||
# | ||
# Instead of disabling a lint rule for the entire project in the | ||
# section below, it can also be suppressed for a single line of code | ||
# or a specific dart file by using the `// ignore: name_of_lint` and | ||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file | ||
# producing the lint. | ||
rules: | ||
# avoid_print: false # Uncomment to disable the `avoid_print` rule | ||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule | ||
|
||
# Additional information about this file can be found at | ||
# https://dart.dev/guides/language/analysis-options |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.