Apple Store using altool with Java application

Hello,
I have an Java application, DbSchema.app. I want to upload this to Apple Store using altool but I fail:

Code Block
xcrun altool --validate-app --file DbSchema.zip -t macOS --username "myuser" --password "mypass"
*** Error: Unable to validate archive 'DbSchema.zip': (
"Error Domain=ITunesSoftwareServiceErrorDomain Code=-20008 \"The Info.plist indicates an iOS app, but submitting a pkg or mpkg.\" UserInfo={NSLocalizedDescription=The Info.plist indicates an iOS app, but submitting a pkg or mpkg., NSLocalizedFailureReason=Unable to validate your application.}"


The Info.plist:

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>CFBundleName</key>
<string>DbSchema</string>
<key>CFBundleExecutable</key>
<string>JavaApplicationStub</string>
<key>CFBundleIconFile</key>
<string>app.icns</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleIdentifier</key>
<string>com.dbschema.dbschema</string>
<key>CFBundleVersion</key>
<string>8.3.4</string>
<key>CFBundleShortVersionString</key>
<string>8.3.4</string>
<key>CFBundleGetInfoString</key>
<string>8.3.4</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>NSHighResolutionCapable</key>
<true/>
<key>LSHasLocalizedDisplayName</key>
<true/>
<key>CFBundleSupportedPlatforms</key>
<array>
    <string>osx</string>
</array>
<!-- I4J_INSERT_DOCTYPE -->
<!-- I4J_INSERT_URLTYPE -->
<key>i4j.baseDir</key>
<string>$APP_PACKAGE/Contents/Resources/app/</string>
<key>LSMinimumSystemVersion</key>
<string>10.11</string>
<key>i4j.appId</key>
<string>0607-8447-0273-3287</string>
<key>i4j.allowPassthrough</key>
<true/>
<key>i4j.minVersion</key>
<string>12</string>
<key>i4j.maxVersion</key>
<string>15</string>
<key>i4j.allowBeta</key>
<true/>
<key>i4j.vmIdPrefix</key>
<string></string>
<key>JavaVM</key>
<dict>
<key>MainClass</key>
<string>com.install4j.runtime.launcher.MacLauncher</string>
<key>VMOptionArray</key>
<array>
<string>-Dfile.encoding=UTF-8</string>
<string>-Dprism.maxvram=2G</string>
<string>-Xmx512M</string>
<string>-Xms64M</string>
<string>-Dinstall4j.launcherId=30</string>
<string>-Dinstall4j.swt=false</string>
<string>-Dexe4j.moduleName=$APP_PACKAGE</string>
</array>
<key>OptionsFile</key>
<string>$APP_PACKAGE/Contents/vmoptions.txt</string>
<key>ArgumentArray</key>
<array>
</array>
<key>SearchSequence</key>
<array>
<string>Y</string>
<string>EJAVA_HOME</string>
<string>EJDK_HOME</string>
</array>
<key>VersionInfo</key>
<string>0_2982400925</string>
<key>SplashFile</key>
<string>$APP_PACKAGE/Contents/Resources/app/.install4j/s_1vuio0g.png</string>
<key>ClassPath</key>
<string>$APP_PACKAGE/Contents/Resources/app/.install4j/i4jruntime.jar:$APP_PACKAGE/Contents/Resources/app/lib/*</string><!-- I4J_INSERT_CLASSPATH -->
<key>WorkingDirectory</key>
<string>$APP_PACKAGE/Contents/Resources/app/.</string>
</dict>
</dict>
</plist>

Replies

Can anybody help? Here more info: I created the application using Install4j, a Java installer. This has created few packages, including dmg and sh. You can see them on dbschema.com/beta.php .
With the dmg I had no success.
Then I tried:
tar -xvzf DbSchema_macos_8_4_0.tgz
zip -r DbSchema.zip DbSchema.app
xcrun altool --validate-app --file DbSchema.zip -t macOS --username "***" --password "***"

Then I got this error: The Info.plist indicates an iOS app, but submitting a pkg or mpkg.