Skip to content

Commit 706cbc0

Browse files
author
ylexus
committed
#113 steps towards running UI on RPi
1 parent 331a4da commit 706cbc0

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

README.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
Jiotty Photos Uploader is a simple desktop Google Photos media uploader that creates albums according to your directory structure and can resume failed uploads.
2-
See [Wiki](https://github.com/ylexus/jiotty-photos-uploader/wiki) for more information.
2+
See [Wiki](https://github.com/ylexus/jiotty-photos-uploader/wiki) for more information, including how to download and install.
33

4-
To build from sources and run locally:
4+
For enthusiasts, to build or run from sources:
55

6-
1. Install JDK 14
7-
2. run `./gradlew -DCLIENT_SECRET_PATH=/path/to/google-API-client-secret.json run`
6+
1. Install JDK
7+
1. for a desktop, use any JDK version 14 or higher.
8+
2. for a Raspberry Pi, use Liberica OpenJDK (because it contains RPi-compatible javafx). Go to https://bell-sw.com/pages/downloads/, select latest version,
9+
32-bit, Linux, package: Full JDK, and install via `.deb`.
10+
2. Clone this repository.
11+
3. `cd jiotty-photos-uploader`
812

9-
If build the native binary for the current platform from sources:
13+
Then, to compile and run locally:
1014

11-
1. Install JDK 14
12-
2. Run the following, replacing `0.0.0` with the version you want:
15+
1. on a desktop: `./gradlew --no-daemon -DCLIENT_SECRET_PATH=/path/to/google-API-client-secret.json run`
16+
2. on Raspberry Pi: `./gradlew --no-daemon -DCLIENT_SECRET_PATH=/path/to/google-API-client-secret.json -PraspberryPi run`
17+
18+
Or to build the self-contained native binary and installer for the current platform:
19+
20+
1. Run the following, replacing `0.0.0` with the version you want:
1321
1. on a desktop: `./gradlew --no-daemon -DCLIENT_SECRET_PATH=/path/to/google-API-client-secret.json fullPackage -DVERSION=0.0.0`
14-
2. on Raspberry Pi:
15-
`./gradlew --no-daemon -PraspberryPi -DCLIENT_SECRET_PATH=/path/to/google-API-client-secret.json fullPackage -DVERSION=0.0.0`
22+
2. on Raspberry Pi: `./gradlew --no-daemon -PraspberryPi -DCLIENT_SECRET_PATH=/path/to/google-API-client-secret.json fullPackage -DVERSION=0.0.0`
1623
3. look for the executable bundle in `app/build/jpackage` and for the installer in `app/build/fullpackage`
24+
25+
Note: if doing repeated builds, to improve build speed, replace `--no-daemon` with `--build-cache`, but only if you understand what you're doing and are
26+
prepared to maintain gradle cache and daemons.

app/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,6 @@ application {
153153
javafx {
154154
version = "$javafxVersion"
155155
modules = ['javafx.controls', 'javafx.fxml', 'javafx.web']
156-
if (project.hasProperty("raspberryPi")) {
157-
// do not include native libraries on RPi
158-
configuration = 'compileOnly'
159-
}
160156
}
161157

162158
runtime {

0 commit comments

Comments
 (0)