Updated Contributing (markdown)
parent
655dbf7b16
commit
8a57ec0336
|
@ -99,4 +99,30 @@ List value can be decoded by using a function called `jsonEncode` after decoding
|
|||
...
|
||||
```
|
||||
|
||||
Keep in mind that the shown method will only make it harder to discover values in the executable, there's no possibility of completely hiding anything in code that's facing the user.
|
||||
Keep in mind that the shown method will only make it harder to discover values in the executable, there's no possibility of completely hiding anything in code that's facing the user.
|
||||
|
||||
### GitHub Action
|
||||
|
||||
In case you have sniffed around in the repo a bit, you might have discovered that there's a GitHub action stored here. And yes, you can use GitHub actions to safely build Ollama App without downloading anything onto your local device.
|
||||
|
||||
Fork the Ollama App repository and continue with the following steps for the platforms you want to build to.
|
||||
|
||||
_**Android only:**_
|
||||
|
||||
A working instance of GnuPG (short GPG) is required for building. You can download this from the [official download site](https://gnupg.org/download/#binary). Also required is a java installation of any version, I can recommend you download the installer from [Adoptium](https://adoptium.net).
|
||||
|
||||
After doing that, find the location java is installed, go into the build folder, and open a terminal there. Follow the steps described in [these instructions](https://docs.flutter.dev/deployment/android#create-an-upload-keystore) to generate a keystore, but replace `keytool` with `./keytool` (or `.\keytool` on Windows) in the commands. Enter a passphrase and remember it!
|
||||
|
||||
After following the steps above, navigate to your user directory, open the terminal and execute the following command:
|
||||
|
||||
```bash
|
||||
gpg -c -a upload-keystore.jks
|
||||
```
|
||||
|
||||
A popup will appear, and you'll be asked to enter die passphrase you set above. This will create a new file in your user directory called `upload-keystore.jks.asc`. Open it, it's a simple text file, and copy the content. Keep it secret, though!
|
||||
|
||||
Go on GitHub and open your forks settings, under "Secrets and variables" you'll find a tab called "Actions". Click "New repository secret". Enter `ANDROID_KEYSTORE` as name and paste the text you just copied as content. Create another secret called `ANDROID_KEYSTORE_PASSPHRASE` and type in your passphrase.
|
||||
|
||||
_**All platforms:**_
|
||||
|
||||
Click on the tab "Actions" and open the pinned action "Build app". Tap on "Run workflow", select the platforms you'd like to build to, and click the second "Run workflow" button. This will be linting the code and then building the executables. After around five minutes, the build should be done. Reload the page, and you can find the files under the summary tab.
|
Loading…
Reference in New Issue