我要哭了,我不知道该怎么做,我生命中的最后 8 个小时都在做这个,我没有能力独自做这个。
我将代码逐个部分地编写 这是我的 pom:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.br.eletra</groupId>
<artifactId>Integration_Project</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>com.zenjava</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>8.6.0</version>
<configuration>
<mainClass>main.Main</mainClass>
<verbose>true</verbose>
<vendor>Einstein</vendor>
<bundleArguments>
<identifier>UPDATE-DETECTION</identifier>
<installdirChooser>true</installdirChooser>
</bundleArguments>
<additionalAppResources>${project.basedir}/src/main/resources</additionalAppResources>
</configuration>
<executions>
<execution>
<id>create-jar</id>
<phase>package</phase>
<goals>
<goal>build-jar</goal>
</goals>
</execution>
<execution>
<id>create-native</id>
<phase>package</phase>
<goals>
<goal>build-native</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.br.eletra</groupId>
<artifactId>Integration_Project_Backend</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20230227</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.9.0</version>
</dependency>
</dependencies>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
我无法解决这个问题,为什么这不起作用?我不知道请有人帮助我
这是我的 .iss 文件:
[Setup]
AppId={{UPDATE-DETECTION}}
AppName=Integration_Project-1.0-SNAPSHOT
AppVersion=1.0
AppVerName=IntegrationProject-1.0-SNAPSHOT 1.0
AppPublisher=Einstein
AppComments=IntegrationProject-1.0
AppCopyright=Copyright (C) 2023
;AppPublisherURL=http://java.com/
;AppSupportURL=http://java.com/
;AppUpdatesURL=http://java.com/
DefaultDirName={localappdata}\Integration_Project-1.0-SNAPSHOT
DisableStartupPrompt=Yes
DisableDirPage=Yes
DisableProgramGroupPage=Yes
DisableReadyPage=Yes
DisableFinishedPage=Yes
DisableWelcomePage=Yes
DefaultGroupName=Einstein
;Optional License
LicenseFile=
;WinXP or above
MinVersion=6
OutputBaseFilename=IntegrationProject
Compression=lzma
SolidCompression=yes
PrivilegesRequired=lowest
SetupIconFile=Integration_Project-1.0-SNAPSHOT\Integration_Project-1.0-SNAPSHOT.ico
UninstallDisplayIcon={app}\IntegrationProject-1.0.ico
UninstallDisplayName=Integration_Project-1.0-SNAPSHOT
WizardImageStretch=No
WizardSmallImageFile=Integration_Project-1.0-SNAPSHOT-setup-icon.bmp
ArchitecturesInstallIn64BitMode=
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "brazilianportuguese"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"
[Files]
Source: "Integration_Project-1.0-SNAPSHOT\Integration_Project-1.0-SNAPSHOT.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "Integration_Project-1.0-SNAPSHOT\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
[Icons]
Name: "{group}\Integration_Project-1.0-SNAPSHOT";Filename: "{app}\Integration_Project-1.0-SNAPSHOT.exe"; WorkingDir: "{app}"; IconFilename: "Integration_Project-1.0-SNAPSHOT-setup-icon.bmp"
Name: "{commondesktop}\Integration_Project-1.0-SNAPSHOT";Filename: "{app}\Integration_Project-1.0-SNAPSHOT.exe"; WorkingDir: "{app}"; IconFilename:"Integration_Project-1.0-SNAPSHOT-setup-icon.bmp"
[Run]
Filename: "{app}\Integration_Project-1.0-SNAPSHOT.exe"; Description:"{cm:LaunchProgram,Integration_Project-1.0-SNAPSHOT}"; Flags: nowait postinstall skipifsilent;
Filename: "{app}\Integration_Project-1.0-SNAPSHOT.exe"; Parameters:"-install -svcName ""Integration_Project-1.0-SNAPSHOT"" -svcDesc ""Integration_Project-1.0-SNAPSHOT"" -mainExe ""Integration_Project-1.0-SNAPSHOT.exe"" ";
[UninstallRun]
Filename: "{app}\Integration_Project-1.0-SNAPSHOT.exe "; Parameters: "-uninstall -svcName IntegrationProject-1.0 -stopOnUninstall";
有人可以告诉我为什么我的 .exe 带有随机图标吗?