v1.1.1
This commit is contained in:
parent
ecfa565d6d
commit
d12d770327
7
pom.xml
7
pom.xml
@ -63,12 +63,13 @@
|
||||
<id>default-cli</id>
|
||||
<configuration>
|
||||
<mainClass>org.jcnc.jnotepad/org.jcnc.jnotepad.JNotepad</mainClass>
|
||||
<launcher>app</launcher>
|
||||
<jlinkZipName>app</jlinkZipName>
|
||||
<jlinkImageName>app</jlinkImageName>
|
||||
<launcher>JNotepad</launcher>
|
||||
<jlinkZipName>JNotepad</jlinkZipName>
|
||||
<jlinkImageName>JNotepad</jlinkImageName>
|
||||
<noManPages>true</noManPages>
|
||||
<stripDebug>true</stripDebug>
|
||||
<noHeaderFiles>true</noHeaderFiles>
|
||||
<compress>2</compress>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
module org.jcnc.jnotepad {
|
||||
requires javafx.controls;
|
||||
requires javafx.fxml;
|
||||
|
||||
exports org.jcnc.jnotepad;
|
||||
}
|
||||
@ -76,7 +76,7 @@ public class JNotepad extends Application {
|
||||
Scene scene = new Scene(root, 800, 600);
|
||||
primaryStage.setScene(scene);
|
||||
|
||||
primaryStage.getIcons().add(new Image(Objects.requireNonNull(JNotepad.class.getResource("/img/icon.png")).toExternalForm()));
|
||||
primaryStage.getIcons().add(new Image((Objects.requireNonNull(getClass().getResource("/img/icon.png"))).toString()));
|
||||
|
||||
primaryStage.show();
|
||||
}
|
||||
|
||||
5
src/main/resources/META-INF/MANIFEST.MF
Normal file
5
src/main/resources/META-INF/MANIFEST.MF
Normal file
@ -0,0 +1,5 @@
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: org.jcnc.jnotepad.JNotepad
|
||||
Implementation-Vendor: JCNC
|
||||
Created-By: IntelliJ IDEA
|
||||
|
||||
15
打包.txt
15
打包.txt
@ -1,7 +1,8 @@
|
||||
jpackage
|
||||
--name JNotepad
|
||||
--type app-image
|
||||
-m org.jcnc.jnotepad/org.jcnc.jnotepad.JNotepad
|
||||
--runtime-image .\target\app\
|
||||
--icon src/main/resources/img/icon.ico
|
||||
|
||||
jpackage `
|
||||
--name JNotepad `
|
||||
--type app-image `
|
||||
-m org.jcnc.jnotepad/org.jcnc.jnotepad.JNotepad `
|
||||
--runtime-image .\target\JNotepad\ `
|
||||
--icon src/main/resources/img/icon.ico `
|
||||
--app-version 1.1.1 `
|
||||
--vendor "JCNC" `
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user