'GETDOWN_INSTALL_DIR': getdown_install_dir,
'INFO_PLIST_FILE_ASSOCIATIONS_FILE': install4j_info_plist_file_associations,
'BUILD_DIR': install4jBuildDir,
+ 'UNIX_DESKTOP_ADDITIONS': install4j_unix_desktop_additions,
]
destination = "${jalviewDir}/${install4jBuildDir}"
--- /dev/null
+1.8.3-1.2.4_FJVL
--- /dev/null
+1.8.3-1.2.4_JVL
<parent>
<groupId>com.threerings.getdown</groupId>
<artifactId>getdown</artifactId>
- <version>1.8.3-1.2.3_FJVL</version>
+ <version>1.8.3-1.2.4_FJVL</version>
</parent>
<artifactId>getdown-ant</artifactId>
<parent>
<groupId>com.threerings.getdown</groupId>
<artifactId>getdown</artifactId>
- <version>1.8.3-1.2.3_FJVL</version>
+ <version>1.8.3-1.2.4_FJVL</version>
</parent>
<artifactId>getdown-core</artifactId>
<useFile>false</useFile>
</configuration>
</plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>3.1.0</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+
</plugins>
</build>
<parent>
<groupId>com.threerings.getdown</groupId>
<artifactId>getdown</artifactId>
- <version>1.8.3-1.2.3_FJVL</version>
+ <version>1.8.3-1.2.4_FJVL</version>
</parent>
<artifactId>getdown-launcher</artifactId>
<archive>
<manifest>
<mainClass>com.threerings.getdown.launcher.GetdownApp</mainClass>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Permissions>all-permissions</Permissions>
if [ x$JVLVERSION != x ]; then
export VERSION=$JVLVERSION
else
- export VERSION=1.8.3-1.2.3_JVL
+ export VERSION=1.8.3-1.2.4_JVL
fi
if [ x${VERSION%_JVL} = x$VERSION ]; then
cp core/target/getdown-core-$VERSION.jar ../../../getdown/lib/getdown-core.jar && echo "Copied getdown-core-$VERSION.jar to getdown/lib"
cp core/target/getdown-core-$VERSION.jar ../../../j8lib/getdown-core.jar && echo "Copied getdown-core-$VERSION.jar to j8lib"
cp core/target/getdown-core-$VERSION.jar ../../../j11lib/getdown-core.jar && echo "Copied getdown-core-$VERSION.jar to j11lib"
+ echo "$VERSION" > ../../../getdown/lib/JVL_VERSION
fi
VERSION=${VERSION/JVL/FJVL}
RET=$?
if [ x$RET = x0 ]; then
cp launcher/target/getdown-launcher-$VERSION.jar ../../../getdown/lib/getdown-launcher-local.jar && echo "Copied getdown-launcher-$VERSION.jar to getdown/lib/getdown-launcher-local.jar"
+ echo "$VERSION" > ../../../getdown/lib/FJVL_VERSION
fi
<groupId>com.threerings.getdown</groupId>
<artifactId>getdown</artifactId>
<packaging>pom</packaging>
- <version>1.8.3-1.2.3_FJVL</version>
+ <version>1.8.3-1.2.4_FJVL</version>
<name>getdown</name>
<description>An application installer and updater.</description>
install4j_installer_file_associations = file_associations_auto-install4j8.xml
#install4j_DMG_uninstaller_app_files = uninstall_old_jalview_files.xml
install4j_build_dir = build/install4j
-install4j_media_types = windows,macosArchive,linuxRPM,linuxDeb,unixArchive,unixInstaller
+install4j_media_types = windows,macosArchive,unixArchive,unixInstaller
install4j_faster = false
install4j_installer_name = Jalview Installer
+install4j_unix_desktop_additions = Categories=Science;Biology;Java;
OSX_KEYSTORE =
OSX_KEYPASS =
HEAP_SIZE=normal
VENDOR=adoptopenjdk
IMAGE_TYPE=jre
+TAR=tar
+ZIP=zip
+UNZIP=unzip
STRIP_MAC_APP_BUNDLING=false
CREATE_ARCHIVES="zip tgz"
unzip-strip() (
local zip=$1
local dest=${2:-.}
- local temp=$(mktemp -d) && unzip -qq -d "$temp" "$zip" && mkdir -p "$dest" &&
+ local temp=$(mktemp -d) && $UNZIP -qq -d "$temp" "$zip" && mkdir -p "$dest" &&
shopt -s dotglob && local f=("$temp"/*) &&
if (( ${#f[@]} == 1 )) && [[ -d "${f[0]}" ]] ; then
mv "$temp"/*/* "$dest"
else
echo "using tar"
if [ x$OS = xmac -a x$STRIP_MAC_APP_BUNDLING = xtrue ]; then
- tar --strip-components=3 -C "${JREDIR}" -zxf "${TARFILE}" "*/Contents/Home"
+ $TAR --strip-components=3 -C "${JREDIR}" -zxf "${TARFILE}" "*/Contents/Home"
RET=$?
else
- tar --strip-components=1 -C "${JREDIR}" -zxf "${TARFILE}"
+ $TAR --strip-components=1 -C "${JREDIR}" -zxf "${TARFILE}"
RET=$?
fi
fi
ZIPFILE="${ABSARCHIVEDIR}/${NAME}.${CREATEARCHIVE}"
[ -e "${ZIPFILE}" ] && $RM "${ZIPFILE}"
cd ${NAME}
- zip -X -r "${ZIPFILE}" "${IMAGE_TYPE}"
+ $ZIP -X -r "${ZIPFILE}" "${IMAGE_TYPE}"
cd -
;;
tgz)
EXT=tar.gz
echo "Creating ${NAME}.${EXT} for install4j bundling"
[ \! -d ${ARCHIVEDIR} ] && mkdir -p "${ARCHIVEDIR}"
- tar -C "${JREDIR}" -zcf "${ARCHIVEDIR}/${NAME}.${EXT}" .
+ $TAR -C "${JREDIR}" -zcf "${ARCHIVEDIR}/${NAME}.${EXT}" .
;;
*)
echo "Archiving as '${CREATEARCHIVE}' file not supported"
<variable name="GETDOWN_ALT_DIR" value="alt" />
<variable name="GETDOWN_INSTALL_DIR" value="install" />
<variable name="INFO_PLIST_FILE_ASSOCIATIONS_FILE" value="file_associations_auto-Info_plist.xml" />
+ <variable name="UNIX_DESKTOP_ADDITIONS" value="Categories=Science;Biology;Java;" />
</variables>
<codeSigning macEnabled="true" macPkcs12File="${compiler:OSX_KEYSTORE}" />
</application>
<id>2350</id>
<id>2450</id>
</macStaticAssociationActions>
- <infoPlist>${compiler:file("${compiler:INFO_PLIST_FILE_ASSOCIATIONS_FILE}")}</infoPlist>
- <iconImageFiles>
- <file path="${compiler:JALVIEW_DIR}/resources/images/JalviewLogo_Huge.png" />
- </iconImageFiles>
- </launcher>
- <launcher name="${compiler:JALVIEW_NAME} package" id="1876" menuName="${compiler:sys.shortName} ${compiler:JALVIEW_VERSION}" fileset="1873">
- <executable name="${compiler:sys.shortName}" iconSet="true" redirectStderr="false" failOnStderrOutput="false" executableMode="gui" changeWorkingDirectory="false" singleInstance="true" />
- <java mainClass="jalview.bin.Launcher" vmParameters="-Dinstaller_template_version=${compiler:INSTALLER_TEMPLATE_VERSION}">
- <classPath>
- <scanDirectory location="${compiler:GETDOWN_DIST_DIR}" failOnError="false" />
- </classPath>
- </java>
- <macStaticAssociationActions mode="selected">
- <id>2350</id>
- <id>2450</id>
- </macStaticAssociationActions>
+ <desktopFile>${compiler:UNIX_DESKTOP_ADDITIONS}</desktopFile>
<infoPlist>${compiler:file("${compiler:INFO_PLIST_FILE_ASSOCIATIONS_FILE}")}</infoPlist>
<iconImageFiles>
<file path="${compiler:JALVIEW_DIR}/resources/images/JalviewLogo_Huge.png" />
</styles>
</installerGui>
<mediaSets>
- <linuxDeb name="Jalview .deb Package" id="153" mediaFileName="jalview-${compiler:JALVIEW_VERSION}" dependencies="openjdk-8-jre" bzip="true" description="Jalview Desktop" maintainerEmail="help@jalview.org">
- <excludedComponents>
- <component id="1031" />
- <component id="1155" />
- <component id="1156" />
- <component id="1276" />
- <component id="2110" />
- </excludedComponents>
- <excludedLaunchers>
- <launcher id="737" />
- </excludedLaunchers>
- <exclude>
- <entry defaultFileset="true" />
- <entry filesetId="734" />
- <entry filesetId="880" />
- <entry filesetId="882" />
- </exclude>
- </linuxDeb>
- <linuxRPM name="Jalview RPM Package" id="570" mediaFileName="jalview-${compiler:JALVIEW_VERSION}" dependencies="java-1.8.0-openjdk" arch="noarch">
- <excludedComponents>
- <component id="1031" />
- <component id="1155" />
- <component id="1156" />
- <component id="1276" />
- <component id="2110" />
- </excludedComponents>
- <excludedLaunchers>
- <launcher id="737" />
- </excludedLaunchers>
- <exclude>
- <entry defaultFileset="true" />
- <entry filesetId="734" />
- <entry filesetId="880" />
- <entry filesetId="882" />
- </exclude>
- </linuxRPM>
<windows name="Windows x64 EXE Installer" id="743" mediaFileName="${compiler:sys.shortName}-${compiler:JALVIEW_VERSION}-${compiler:sys.platform}-java_${compiler:JAVA_INTEGER_VERSION}" runPostProcessor="true" postProcessor="${compiler:JSIGN_SH} $EXECUTABLE" customInstallBaseDir="~/AppData/Local">
<excludedComponents>
<component id="1155" />
<symlink name="Uninstall Old Jalview (optional).app" target="Jalview.app/Contents/Resources/app/Uninstall Old Jalview.app" />
</topLevelFiles>
</macosArchive>
- <unixInstaller name="Unix Shell Installer" id="1595" mediaFileName="${compiler:sys.shortName}-${compiler:JALVIEW_VERSION}-${compiler:sys.platform}-java_${compiler:JAVA_INTEGER_VERSION}" customInstallBaseDir="~/opt/">
+ <unixInstaller name="Linux x64 Shell Installer" id="1595" mediaFileName="${compiler:sys.shortName}-${compiler:JALVIEW_VERSION}-linux_x64-java_${compiler:JAVA_INTEGER_VERSION}" customInstallBaseDir="~/opt/">
<excludedComponents>
<component id="1155" />
<component id="1156" />
<entry filesetId="880" />
<entry filesetId="882" />
<entry filesetId="1873" />
+ <entry filesetId="2105" />
</exclude>
- <jreBundle jreBundleSource="preCreated" includedJre="${compiler:LINUX_JAVA_VM_TGZ}" manualJreEntry="true" />
+ <jreBundle includedJre="${compiler:LINUX_JAVA_VM_TGZ}" manualJreEntry="true" />
</unixArchive>
+ <unixInstaller name="Unix Shell Installer" id="2639" mediaFileName="${compiler:sys.shortName}-${compiler:JALVIEW_VERSION}-${compiler:sys.platform}-java_${compiler:JAVA_INTEGER_VERSION}" customInstallBaseDir="~/opt/">
+ <excludedComponents>
+ <component id="1155" />
+ <component id="1156" />
+ <component id="1276" />
+ <component id="1881" />
+ <component id="2110" />
+ </excludedComponents>
+ <exclude>
+ <entry defaultFileset="true" />
+ <entry filesetId="880" />
+ <entry filesetId="882" />
+ <entry filesetId="1873" />
+ <entry filesetId="2105" />
+ </exclude>
+ <jreBundle includedJre="${compiler:LINUX_JAVA_VM_TGZ}" manualJreEntry="true" />
+ </unixInstaller>
</mediaSets>
<buildIds>
<mediaSet refId="153" />
<mediaSet refId="878" />
<mediaSet refId="1595" />
<mediaSet refId="1596" />
+ <mediaSet refId="2639" />
</buildIds>
</install4j>