mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 20:36:44 +00:00
only build headless when specifically requested
This commit is contained in:
parent
7d796369d6
commit
f501f08e17
3 changed files with 3 additions and 3 deletions
2
.github/workflows/package.yaml
vendored
2
.github/workflows/package.yaml
vendored
|
@ -28,7 +28,7 @@ jobs:
|
||||||
if: ${{ runner.os == 'Linux' }}
|
if: ${{ runner.os == 'Linux' }}
|
||||||
run: ./gradlew packageTarDistribution
|
run: ./gradlew packageTarDistribution
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Sparrow Build - ${{ runner.os }}
|
name: Sparrow Build - ${{ runner.os }}
|
||||||
path: |
|
path: |
|
||||||
|
|
|
@ -19,7 +19,7 @@ if(System.getProperty("os.arch") == "aarch64") {
|
||||||
osArch = "aarch64"
|
osArch = "aarch64"
|
||||||
targetName = "-" + osArch
|
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"
|
group "com.sparrowwallet"
|
||||||
version "${sparrowVersion}"
|
version "${sparrowVersion}"
|
||||||
|
|
|
@ -66,7 +66,7 @@ public enum JavaFXPlatform {
|
||||||
|
|
||||||
String osClassifier = project.getExtensions().getByType(OsDetector.class).getClassifier();
|
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";
|
osClassifier += "-monocle";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue