Skip to content

Commit e287234

Browse files
committed
* Added AppDir spec
* Improved opal icon * Refactoring
1 parent c3c8519 commit e287234

File tree

8 files changed

+27
-4
lines changed

8 files changed

+27
-4
lines changed

.AppDir/.DirIcon

5.71 KB
Binary file not shown.

.AppDir/AppRun

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
HERE="$(dirname "$(readlink -f "${0}")")"
3+
EXEC="${HERE}/usr/bin/Opal"
4+
exec "${EXEC}"

.AppDir/opal.desktop

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[Desktop Entry]
2+
Name=Opal
3+
Exec=Opal
4+
Icon=opal
5+
Type=Application
6+
Categories=Utility;

.AppDir/opal.png

5.71 KB
Loading

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
![GitHub](https://img.shields.io/badge/language-Java-green)
77
![GitHub](https://img.shields.io/github/license/CodeDead/opal)
88

9-
Opal is a free and open-source JavaFX application that plays relaxing music in the background.
9+
Opal is a free and open-source JavaFX application that can play relaxing music in the background.
1010

1111
## Dependencies
1212

build.gradle

+16-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ plugins {
99
}
1010

1111
group 'com.codedead'
12-
version '1.0-SNAPSHOT'
12+
version '1.0.0'
13+
14+
def currentOS = DefaultNativePlatform.currentOperatingSystem
1315

1416
java {
1517
targetCompatibility = JavaVersion.VERSION_16
@@ -27,6 +29,19 @@ jlink {
2729
launcher {
2830
name = 'Opal'
2931
}
32+
33+
if (currentOS.isWindows()) {
34+
jpackage {
35+
installerType = 'msi'
36+
installerOptions = [
37+
'--win-menu',
38+
'--win-shortcut',
39+
'--copyright', 'Copyright (c) 2021 CodeDead',
40+
'--description', 'Opal is a free and open-source JavaFX application that can play relaxing music in the background',
41+
'--vendor', 'CodeDead'
42+
]
43+
}
44+
}
3045
}
3146

3247
clean.doFirst {
@@ -39,7 +54,6 @@ repositories {
3954
mavenCentral()
4055
}
4156

42-
def currentOS = DefaultNativePlatform.currentOperatingSystem
4357
def platform
4458
if (currentOS.isWindows()) {
4559
platform = 'win'

settings.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
rootProject.name = 'Opal'
2-

src/main/resources/images/opal.png

-3.9 KB
Loading

0 commit comments

Comments
 (0)