Skip to content

Commit

Permalink
chore: Changed version number to check executables' version
Browse files Browse the repository at this point in the history
  • Loading branch information
SaptarshiSarkar12 committed Aug 27, 2024
1 parent 1ed9d90 commit efc3d08
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 5 deletions.
7 changes: 4 additions & 3 deletions GUI/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<gui.main-class>main.Drifty_GUI</gui.main-class>
<project.shortVersionString>2.1.0</project.shortVersionString>
<system-linker-arg/>
<resource-config-file/>
<system-native-image-arg/>
Expand Down Expand Up @@ -71,12 +72,12 @@
<appIdentifier>Drifty GUI</appIdentifier>
<releaseConfiguration>
<vendor>Drifty</vendor>
<version>2.1.0</version>
<version>${project.shortVersionString}</version>
<description>Drifty is an open-source interactive file downloader system</description>
<packageType>${package.type}</packageType>
<!-- for macOS/iOS -->
<bundleShortVersion>2.1.0</bundleShortVersion>
<bundleVersion>2.1.0</bundleVersion>
<bundleShortVersion>${project.shortVersionString}</bundleShortVersion>
<bundleVersion>${project.shortVersionString}</bundleVersion>
<skipSigning>true</skipSigning>
</releaseConfiguration>
</configuration>
Expand Down
135 changes: 135 additions & 0 deletions GUI/pom.xml.versionsBackup
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.github.SaptarshiSarkar12</groupId>
<artifactId>Drifty</artifactId>
<version>2.1.0-beta.1</version>
</parent>
<artifactId>GUI</artifactId>
<name>Drifty GUI</name>
<description>GUI module of Drifty</description>

<properties>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<gui.main-class>main.Drifty_GUI</gui.main-class>
<project.shortVersionString>2.1.0</project.shortVersionString>
<system-linker-arg/>
<resource-config-file/>
<system-native-image-arg/>
<compatibility-arg/>
<capcache-arg1/>
<capcache-arg2/>
<capcache-arg3/>
<package.type/>
</properties>

<dependencies>
<dependency>
<groupId>io.github.SaptarshiSarkar12</groupId>
<artifactId>Core</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.8</version>
<configuration>
<mainClass>${gui.main-class}</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>com.gluonhq</groupId>
<artifactId>gluonfx-maven-plugin</artifactId>
<version>1.0.23</version>
<configuration>
<enableSWRendering>true</enableSWRendering>
<mainClass>${gui.main-class}</mainClass>
<linkerArgs>
<arg>${system-linker-arg}</arg>
</linkerArgs>
<nativeImageArgs>
<arg>--enable-url-protocols=https</arg>
<arg>--enable-url-protocols=http</arg>
<arg>--no-fallback</arg>
<arg>--verbose</arg>
<arg>-H:ResourceConfigurationFiles=${pom.parent.basedir}/config/${resource-config-file}</arg>
<arg>--add-exports=org.graalvm.nativeimage.builder/com.oracle.svm.core.jdk=ALL-UNNAMED</arg>
<arg>${system-native-image-arg}</arg>
<arg>${compatibility-arg}</arg>
<arg>${capcache-arg1}</arg>
<arg>${capcache-arg2}</arg>
<arg>${capcache-arg3}</arg>
</nativeImageArgs>
<appIdentifier>Drifty GUI</appIdentifier>
<releaseConfiguration>
<vendor>Drifty</vendor>
<version>2.1.0</version>
<description>Drifty is an open-source interactive file downloader system</description>
<packageType>${package.type}</packageType>
<!-- for macOS/iOS -->
<bundleShortVersion>2.1.0</bundleShortVersion>
<bundleVersion>2.1.0</bundleVersion>
<skipSigning>true</skipSigning>
</releaseConfiguration>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<!-- [macOS ARM64] GUI native image builder profile -->
<profile>
<id>build-drifty-gui-for-macos-14</id>
<properties>
<package.type>pkg</package.type>
<system-native-image-arg>-Dsvm.platform=org.graalvm.nativeimage.Platform$MACOS_AARCH64</system-native-image-arg>
<system-linker-arg>${pom.parent.basedir}/config/missing_symbols-macos-14.o</system-linker-arg>
<resource-config-file>resource-config-macos-aarch64.json</resource-config-file>
<compatibility-arg>-march=compatibility</compatibility-arg>
<capcache-arg1>-H:CAPCacheDir=/tmp/cap</capcache-arg1>
<capcache-arg3>-H:+NewCAPCache</capcache-arg3>
<mac.app.store>true</mac.app.store>
</properties>
</profile>
<!-- [macOS x86_64] GUI native image builder profile -->
<profile>
<id>build-drifty-gui-for-macos-13</id>
<properties>
<package.type>pkg</package.type>
<system-native-image-arg>-Dsvm.platform=org.graalvm.nativeimage.Platform$MACOS_AMD64</system-native-image-arg>
<system-linker-arg>${pom.parent.basedir}/config/missing_symbols-macos-13.o</system-linker-arg>
<resource-config-file>resource-config-macos-x64.json</resource-config-file>
<compatibility-arg>-march=compatibility</compatibility-arg>
<mac.app.store>true</mac.app.store>
</properties>
</profile>
<!-- [Linux] GUI native image builder profile -->
<profile>
<id>build-drifty-gui-for-ubuntu-latest</id>
<properties>
<system-linker-arg>${pom.parent.basedir}/config/missing_symbols-ubuntu-latest.o</system-linker-arg>
<resource-config-file>resource-config-linux.json</resource-config-file>
<compatibility-arg>-march=compatibility</compatibility-arg>
</properties>
</profile>
<!-- [Windows] GUI native image builder profile -->
<profile>
<id>build-drifty-gui-for-windows-latest</id>
<properties>
<package.type>msi</package.type>
<system-linker-arg>${pom.parent.basedir}/config/missing_symbols-windows-latest.o</system-linker-arg>
<resource-config-file>resource-config-windows.json</resource-config-file>
<compatibility-arg>-march=compatibility</compatibility-arg>
</properties>
</profile>
</profiles>
</project>
4 changes: 2 additions & 2 deletions GUI/src/darwin/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<key>CFBundleIdentifier</key>
<string>main.Drifty_GUI</string>
<key>CFBundleVersion</key>
<string>2.1.0-beta.1</string>
<string>2.1.0</string>
<key>CFBundleShortVersionString</key>
<string>2.1.0-beta.1</string>
<string>2.1.0</string>
<key>CFBundleExecutable</key>
<string>Drifty GUI</string>
<key>CFBundleIconFile</key>
Expand Down

0 comments on commit efc3d08

Please sign in to comment.