only build headless when specifically requested

This commit is contained in:
Craig Raw 2022-10-25 11:27:37 +02:00
parent 7d796369d6
commit f501f08e17
3 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ jobs:
if: ${{ runner.os == 'Linux' }}
run: ./gradlew packageTarDistribution
- name: Upload Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Sparrow Build - ${{ runner.os }}
path: |

View file

@ -19,7 +19,7 @@ if(System.getProperty("os.arch") == "aarch64") {
osArch = "aarch64"
targetName = "-" + osArch
}
def headless = "true".equals(System.getProperty("java.awt.headless")) || GraphicsEnvironment.isHeadless()
def headless = "true".equals(System.getProperty("java.awt.headless"))
group "com.sparrowwallet"
version "${sparrowVersion}"

View file

@ -66,7 +66,7 @@ public enum JavaFXPlatform {
String osClassifier = project.getExtensions().getByType(OsDetector.class).getClassifier();
if("true".equals(System.getProperty("java.awt.headless")) || GraphicsEnvironment.isHeadless()) {
if("true".equals(System.getProperty("java.awt.headless"))) {
osClassifier += "-monocle";
}