automatically activate os specific maven profiles

This commit is contained in:
Armin Schrenk
2026-06-24 14:55:38 +02:00
parent 95f5c7aecd
commit 47d2900f37
7 changed files with 8 additions and 20 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ jobs:
- name: Set version
run : ./mvnw versions:set -DnewVersion="${VERSION_NUM}${VERSION_SUFFIX}"
- name: Run maven
run: ./mvnw -B clean package -Plinux -DskipTests
run: ./mvnw -B clean package -DskipTests
- name: Patch target dir
run: |
cp LICENSE.txt target
+1 -1
View File
@@ -70,7 +70,7 @@ jobs:
check-latest: true
cache: 'maven'
- name: Run maven
run: ./mvnw -B clean package -Plinux -DskipTests
run: ./mvnw -B clean package -DskipTests
- name: Download OpenJFX jmods
id: download-jmods
run: |
+1 -1
View File
@@ -38,7 +38,7 @@ jobs:
java-version: ${{ env.JAVA_VERSION }}
cache: 'maven'
- name: Build and Test
run: xvfb-run ./mvnw -B verify -Plinux
run: xvfb-run ./mvnw -B verify
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
- name: Draft a release
+1 -1
View File
@@ -19,7 +19,7 @@ if [[ ! "${CPU_ARCH}" =~ x86_64|aarch64 ]]; then echo "Platform ${CPU_ARCH} not
../../../mvnw -f ../../../pom.xml versions:set -DnewVersion=${SEMVER_STR}
# compile
../../../mvnw -B -f ../../../pom.xml clean package -Plinux -DskipTests
../../../mvnw -B -f ../../../pom.xml clean package -DskipTests
cp ../../../LICENSE.txt ../../../target
cp ../../../target/cryptomator-*.jar ../../../target/mods
@@ -94,7 +94,7 @@ modules:
- mkdir maven
- tar xf maven.tar.gz --strip-components=1 --exclude=jansi-native --directory=maven
# Build project
- maven/bin/mvn clean package -DskipTests -P"linux-$(uname -m)"
- maven/bin/mvn clean package -DskipTests
- cp target/cryptomator-*.jar target/mods
- cd target
- $JAVA_HOME/bin/jlink
+1 -1
View File
@@ -47,7 +47,7 @@ build() {
cd "${srcdir}/${_src_app_dir}"
mvn -B clean package -DskipTests -Plinux
mvn -B clean package -DskipTests
cp LICENSE.txt target
cp target/cryptomator-*.jar target/mods
+2 -14
View File
@@ -502,9 +502,6 @@
<os>
<family>mac</family>
</os>
<property>
<name>idea.version</name>
</property>
</activation>
<dependencies>
<dependency>
@@ -520,12 +517,9 @@
<activation>
<os>
<family>unix</family>
<name>Linux</name>
<name>linux</name>
<arch>aarch64</arch>
</os>
<property>
<name>idea.version</name>
</property>
</activation>
<dependencies>
<dependency>
@@ -565,12 +559,9 @@
<activation>
<os>
<family>unix</family>
<name>Linux</name>
<name>linux</name>
<arch>amd64</arch>
</os>
<property>
<name>idea.version</name>
</property>
</activation>
<dependencies>
<dependency>
@@ -587,9 +578,6 @@
<os>
<family>windows</family>
</os>
<property>
<name>idea.version</name>
</property>
</activation>
<dependencies>
<dependency>