1
1
/*
2
- * Copyright (c) 2019, 2022 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2019, 2023 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -832,6 +832,8 @@ private void assertAppImageFile() {
832
832
final Path lookupPath = AppImageFile .getPathInAppImage (appImageDir );
833
833
if (isRuntime () || (!isImagePackageType () && !TKit .isOSX ())) {
834
834
assertFileInAppImage (lookupPath , null );
835
+ } else if (!TKit .isOSX ()) {
836
+ assertFileInAppImage (lookupPath , lookupPath );
835
837
} else {
836
838
assertFileInAppImage (lookupPath , lookupPath );
837
839
@@ -842,15 +844,17 @@ private void assertAppImageFile() {
842
844
final Path rootDir = isImagePackageType () ? outputBundle () :
843
845
pathToUnpackedPackageFile (appInstallationDirectory ());
844
846
847
+ AppImageFile aif = AppImageFile .load (rootDir );
848
+
845
849
boolean expectedValue = hasArgument ("--mac-sign" );
846
- boolean actualValue = AppImageFile . load ( rootDir ) .isSigned ();
847
- TKit .assertTrue ( expectedValue == actualValue ,
848
- "Unexptected value in app image file for <signed>" );
850
+ boolean actualValue = aif .isSigned ();
851
+ TKit .assertEquals ( Boolean . toString ( expectedValue ), Boolean . toString ( actualValue ) ,
852
+ "Check for unexptected value in app image file for <signed>" );
849
853
850
854
expectedValue = hasArgument ("--mac-app-store" );
851
- actualValue = AppImageFile . load ( rootDir ) .isAppStore ();
852
- TKit .assertTrue ( expectedValue == actualValue ,
853
- "Unexptected value in app image file for <app-store>" );
855
+ actualValue = aif .isAppStore ();
856
+ TKit .assertEquals ( Boolean . toString ( expectedValue ), Boolean . toString ( actualValue ) ,
857
+ "Check for unexptected value in app image file for <app-store>" );
854
858
}
855
859
}
856
860
}
0 commit comments