-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathBUILD.txt
53 lines (35 loc) · 1.75 KB
/
BUILD.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Build instructions
=======================================================================
Simply follow these instructions after cloning a personal copy of the GUIslice_Image2C.
In order to build from source you will need a Java JDK installed.
The offical build currently uses release jdk-18.0.2.1+1
You can find OpenJDK releases for jdk and jre here:
https://adoptium.net/temurin/releases
On Windows its best to choose to download a version ending with '.msi'
so needed system variables are set correctly like, JAVA_HOME.
Much of the needed toolchain will be auto-detected and downloaded dynamically
but you do need to start with a version of gradle.
Create runnable program:
set JAVA_HOME=C:\jdk-18.0.2.1+1
gradlew.bat clean jlink
or
export JAVA_HOME=C:/jdk-18.0.2.1+1
./gradlew clean jlink
Your output will be inside build/tmp and will contain the various
runtime images for windows, linux and macos platforms.
Start scripts will be inside the GUIslice_Image2C folder, image2c.bat
and image2c.sh (a shell script). You may need to set execute permission
on image2c.sh shell script on linux systems.
WINDOWS INSTALLER
=======================================================================
If you want to create a windows installer (which isn't stricly needed)
you will need to first be running windows. This is because the build
uses inno setup and that product is windows only.
Download and install inno setup innosetup-qsp-5.6.1.exe
http://www.jrsoftware.org/isdl.php#qsp
After that you can create the distribution packages
using
gradlew.bat packageAll
The distributions will be inside build/disp folder.
Do not use build/distributions tar and zip files because they're incomplete
and only contain the java code and are lacking fonts and templates.