Commit 5c6f6170 authored by Mike Prechtl's avatar Mike Prechtl
Browse files

Provide an Inno Setup Script to create .exe installers

parent 05154c1a
......@@ -16,6 +16,10 @@
<properties>
<maven.compiler.release>11</maven.compiler.release>
<app.name>Open eCard</app.name>
<app.vendor>ecsec GmbH</app.vendor>
<app.url>https://openecard.org</app.url>
</properties>
......@@ -66,14 +70,57 @@
</activation>
<build>
<plugins>
<!-- Resource plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>filtering-resources</id>
<goals>
<goal>resources</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>src/main/resources/windows/filtering</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!-- Create .msi installer -->
<plugin>
<groupId>net.agilhard.maven.plugins</groupId>
<artifactId>jlink-jpackager-maven-plugin</artifactId>
<configuration>
<icon>${project.basedir}/src/main/resources/windows/Open-eCard-App.ico</icon>
<type>exe</type>
<type>msi</type>
</configuration>
</plugin>
<!-- Create .exe installer -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>create-exe</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>ISCC.exe</executable>
<workingDirectory>${project.basedir}/target</workingDirectory>
<arguments>
<argument>classes/Open-eCard-App.iss</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
......@@ -205,7 +252,7 @@
<argument>-Djavax.xml.stream.supportDTD=false</argument>
</arguments>
<!-- Application package metadata -->
<vendor>ecsec GmbH</vendor>
<vendor>${app.vendor}</vendor>
<description>Client side implementation of the eCard-API-Framework (BSI TR-03112)</description>
<licenseFile>${project.basedir}/src/main/resources/licenses/LICENSE.GPL</licenseFile>
<copyright>2019 ecsec GmbH</copyright>
......@@ -217,7 +264,7 @@
<packageDeps>pcscd</packageDeps>
</linuxOptions>
<macOptions>
<bundleName>Open eCard</bundleName>
<bundleName>${openecard.app.name}</bundleName>
<bundleIdentifier>org.openecard.richclient</bundleIdentifier>
</macOptions>
<windowsOptions>
......
#define appName "${app.name}"
#define appVersion "${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"
#define publisher "${app.vendor}"
#define appURL "${app.url}"
#define appExeName "open-ecard.exe"
[Setup]
AppId={{CB11CB66-71B5-42C1-8076-15F1FEDCC22A}}
AppName={#appName}
AppVersion={#appVersion}
AppPublisher={#publisher}
AppPublisherURL={#appURL}
AppSupportURL={#appURL}
AppUpdatesURL={#appURL}
DefaultDirName={autopf}\{#appName}
DisableProgramGroupPage=yes
LicenseFile=${project.basedir}\src\main\resources\windows\license.txt
PrivilegesRequiredOverridesAllowed=dialog
OutputDir=${project.basedir}\target\jpackager-out
OutputBaseFilename=open-ecard-app
SetupIconFile=${project.basedir}\src\main\resources\windows\Open-eCard-App.ico
Compression=lzma
SolidCompression=yes
WizardStyle=modern
WizardSmallImageFile=${project.basedir}\src\main\resources\windows\Open-eCard-App-setup-icon.bmp
UninstallDisplayIcon=${project.basedir}\src\main\resources\windows\Open-eCard-App.ico
UninstallDisplayName={#appName}
WizardImageStretch=No
ArchitecturesAllowed=x64
ArchitecturesInstallIn64BitMode=x64
LanguageDetectionMethod=uilanguage
ShowLanguageDialog=no
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "${project.basedir}\target\jpackager-build\images\win-msi.image\open-ecard\open-ecard.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "${project.basedir}\target\jpackager-build\images\win-msi.image\open-ecard\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{autoprograms}\{#appName}"; Filename: "{app}\{#appExeName}"
Name: "{autodesktop}\{#appName}"; Filename: "{app}\{#appExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#appExeName}"; Description: "{cm:LaunchProgram,{#StringChange(appName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment