File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
java/io/github/fvarrui/javapackager/packagers Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change 22
33import java .io .File ;
44
5- import org .apache .commons .lang3 .StringUtils ;
6-
75import io .github .fvarrui .javapackager .model .Platform ;
8- import io .github .fvarrui .javapackager .model .Registry ;
96import io .github .fvarrui .javapackager .utils .CommandUtils ;
107import io .github .fvarrui .javapackager .utils .FileUtils ;
118import io .github .fvarrui .javapackager .utils .Logger ;
@@ -44,12 +41,6 @@ protected File doApply(WindowsPackager packager) throws Exception {
4441 String name = packager .getName ();
4542 File outputDirectory = packager .getOutputDirectory ();
4643 String version = packager .getVersion ();
47- Registry registry = packager .getWinConfig ().getRegistry ();
48-
49- // checks if registry entries' names are not empy
50- if (registry .getEntries ().stream ().anyMatch (e -> StringUtils .isBlank (e .getKey ()) || StringUtils .isBlank (e .getValueName ()))) {
51- throw new Exception ("One or more registry entries have no key and/or value name" );
52- }
5344
5445 // copies ico file to assets folder
5546 FileUtils .copyFileToFolder (iconFile , assetsFolder );
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{
6868[Registry]
6969#if ($info.winConfig.registry )
7070#foreach ($entry in $info.winConfig.registry.entries )
71- Root: ${entry . root }; Subkey: "${entry . subkey }"; ValueType: ${entry . valueTypeAsInnoSetupString }; ValueName: "${entry . valueName }"; ValueData: "${entry . valueData }"; Flags: uninsdeletevalue
71+ Root: ${entry . root }; Subkey: "${entry . subkey }"; ValueType: ${entry . valueTypeAsInnoSetupString }; ValueName: "$! {entry . valueName }"; ValueData: "$! {entry . valueData }"; Flags: uninsdeletevalue
7272#end
7373#end
7474#foreach ($fileAssociation in $info.fileAssociations )
You can’t perform that action at this time.
0 commit comments