openboard-team / openboard

GNU General Public License v3.0
2.57k stars 253 forks source link

[Question] How to build the project from source? #855

Open Palaress opened 8 months ago

Palaress commented 8 months ago

Hello,

I have not seen any instructions on how to build the project. I wanted to build it on my own, so I can tweak my layout like I want.

Problem: I cant build it.

What I did:

  1. create new empty directory
  2. clone project git clone https://github.com/openboard-team/openboard.git
  3. cd into project
  4. ./gradlew assembleRelease

Step 4 throws without clear error description (atleast not to me). Changing git's HEAD to a version tag also results in error.

How do you build it? And/or how should I do it?

Thanks

emerajid commented 6 months ago

Install Android Studio. Click create new project from version control. Paste link to this repository. This instruction is in README.md.

Next, wait forever till it sets up everything. It's going to waste a few GB of internet traffic and around 12 GB of disk space, not counting the Android Studio installation size.

Build -> Select Build Variant. You'll get a panel opened on the left. Change debug to release and x86 to arm64-v8a.

Build -> Build Bundle(s)/APK(s) -> Build APK(s). Build -> Generate Signed Bundle / APK Before you can sign APKs you'll have to follow the instruction to create a key. If you don't sign you don't install. I really just didn't care on this point, you can type any info in your key and it's going to just work. You'll have a popup notification in bottom right corner telling you it generated signed APK, click on it and then click "locate" and here's you APK to use. I might be wrong but perhaps you have to first just build an unsigned APK and only then proceed to create a signed one. I do not care to check that.

I really just figured this out by clicking random buttons, so perhaps you should do the same and figure out the rest yourself.

No, I have never developed anything ever, including for Android.