mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 17:00:52 +01:00
Add extra build property for store version
This commit is contained in:
parent
89b10eb8ec
commit
4266a40cbe
@ -32,6 +32,7 @@ public class GEarth extends Application {
|
|||||||
|
|
||||||
public static GEarth main;
|
public static GEarth main;
|
||||||
public static String version;
|
public static String version;
|
||||||
|
public static String storeVersion;
|
||||||
public static String repository;
|
public static String repository;
|
||||||
public static ObservableObject<Theme> observableTheme;
|
public static ObservableObject<Theme> observableTheme;
|
||||||
|
|
||||||
@ -51,6 +52,7 @@ public class GEarth extends Application {
|
|||||||
buildProperties.load(GEarth.class.getResourceAsStream("/build.properties"));
|
buildProperties.load(GEarth.class.getResourceAsStream("/build.properties"));
|
||||||
|
|
||||||
version = buildProperties.getProperty("build.version");
|
version = buildProperties.getProperty("build.version");
|
||||||
|
storeVersion = buildProperties.getProperty("build.storeVersion");
|
||||||
repository = buildProperties.getProperty("build.github");
|
repository = buildProperties.getProperty("build.github");
|
||||||
|
|
||||||
logger.info("Starting G-Earth {} from repository {}", version, repository);
|
logger.info("Starting G-Earth {} from repository {}", version, repository);
|
||||||
|
@ -19,7 +19,7 @@ public class StoreFetch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void fetch(StoreFetchListener storeFetchListener) {
|
public static void fetch(StoreFetchListener storeFetchListener) {
|
||||||
fetch(GEarth.version, storeFetchListener, "sirjonasxx/G-ExtensionStore");
|
fetch(GEarth.storeVersion, storeFetchListener, "sirjonasxx/G-ExtensionStore");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void fetch(String version, StoreFetchListener storeFetchListener) {
|
public static void fetch(String version, StoreFetchListener storeFetchListener) {
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
build.version=${project.version}
|
build.version=${project.version}
|
||||||
|
build.storeVersion=${storeVersion}
|
||||||
build.github=${repository}
|
build.github=${repository}
|
4
pom.xml
4
pom.xml
@ -10,7 +10,11 @@
|
|||||||
<version>${revision}</version>
|
<version>${revision}</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
<!-- Version of the application. -->
|
||||||
<revision>1.5.4-beta-1</revision>
|
<revision>1.5.4-beta-1</revision>
|
||||||
|
<!-- Version for https://github.com/sirjonasxx/G-ExtensionStore to keep compatibility with beta versions. -->
|
||||||
|
<storeVersion>1.5.3</storeVersion>
|
||||||
|
<!-- Default repository for version checking. -->
|
||||||
<repository>sirjonasxx/G-Earth</repository>
|
<repository>sirjonasxx/G-Earth</repository>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user