mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
added tsk_version.xml file to change sleuthkit version
This commit is contained in:
parent
c767aa975c
commit
8215e5f7fa
@ -6,7 +6,8 @@
|
||||
<description>Builds, tests, and runs the project org.sleuthkit.autopsy.core</description>
|
||||
<import file="nbproject/build-impl.xml"/>
|
||||
<import file="../BootstrapIvy.xml"/>
|
||||
|
||||
<import file="../TSK_VERSION.xml"/>
|
||||
|
||||
|
||||
<property name="thirdparty.dir" value="${basedir}/../thirdparty" />
|
||||
<property name="modules.dir" value="${basedir}/release/modules/" />
|
||||
@ -18,8 +19,7 @@
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<property name="VERSION" value="4.6.0"/>
|
||||
<replaceregexp file="${basedir}/../preinstall.sh" match="VERSION=(.*)" replace="VERSION=${VERSION}" byline="true"/>
|
||||
<replaceregexp file="${basedir}/../unix_setup.sh" match="TSK_VERSION=(.*)" replace="TSK_VERSION=${TSK_VERSION}" byline="true"/>
|
||||
<target name="get-thirdparty-dependencies" description="get third-party dependencies">
|
||||
<!--Copy openCV dependencies to release-->
|
||||
<copy todir="${modules.dir}" >
|
||||
@ -54,8 +54,8 @@
|
||||
|
||||
<target name="getTSKJars" depends="findTSK">
|
||||
<property environment="env"/>
|
||||
<copy file="${env.TSK_HOME}/bindings/java/dist/sleuthkit-postgresql-${VERSION}.jar"
|
||||
tofile="${ext.dir}/sleuthkit-postgresql-${VERSION}.jar"/>
|
||||
<copy file="${env.TSK_HOME}/bindings/java/dist/sleuthkit-postgresql-${TSK_VERSION}.jar"
|
||||
tofile="${ext.dir}/sleuthkit-postgresql-${TSK_VERSION}.jar"/>
|
||||
<copy file="${env.TSK_HOME}/bindings/java/lib/sqlite-jdbc-3.8.11.jar"
|
||||
tofile="${ext.dir}/sqlite-jdbc-3.8.11.jar"/>
|
||||
<copy file="${env.TSK_HOME}/bindings/java/lib/postgresql-9.4.1211.jre7.jar"
|
||||
|
3
TSK_VERSION.xml
Normal file
3
TSK_VERSION.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<project name="TSK_VERSION">
|
||||
<property name="TSK_VERSION" value="4.6.0"/>
|
||||
</project>
|
@ -6,7 +6,7 @@
|
||||
<description>Builds the module suite Autopsy 4.</description>
|
||||
|
||||
<import file="nbproject/build-impl.xml"/>
|
||||
|
||||
<import file="${basedir}/TSK_VERSION.xml"/>
|
||||
<!-- IMPORTANT: nbproject/platform.properties has a netbeans-plat-version property that MUST be kept in sync (manually) -->
|
||||
<property name="netbeans-plat-version" value="8.2" />
|
||||
<property name="nbplatform.active.dir" value="${basedir}/netbeans-plat/${netbeans-plat-version}" />
|
||||
@ -90,7 +90,7 @@
|
||||
<if>
|
||||
<equals arg1="${os.family}" arg2="unix"/>
|
||||
<then>
|
||||
<copy file="${basedir}/preinstall.sh" tofile="${zip-tmp}/${app.name}/preinstall.sh"/>
|
||||
<copy file="${basedir}/unix_setup.sh" tofile="${zip-tmp}/${app.name}/unix_setup.sh"/>
|
||||
</then>
|
||||
</if>
|
||||
<if>
|
||||
|
@ -8,10 +8,10 @@ else
|
||||
echo "run the command: sudo apt-get install testdisk"
|
||||
exit 1
|
||||
fi
|
||||
VERSION=4.6.0
|
||||
sleuthkit_jar_filepath=/usr/share/java/sleuthkit-$VERSION.jar;
|
||||
ext_jar_filepath=$PWD/autopsy/modules/ext/sleuthkit-postgresql-$VERSION.jar;
|
||||
if [[ -f "$sleuthkit_jar_filepath" ]] && [[ -f "$ext_jar_filepath" ]]; then
|
||||
TSK_VERSION=4.6.0
|
||||
sleuthkit_jar_filepath=/usr/share/java/sleuthkit-$TSK_VERSION.jar;
|
||||
ext_jar_filepath=$PWD/autopsy/modules/ext/sleuthkit-postgresql-$TSK_VERSION.jar;
|
||||
if [[ -f "$sleuthkit_jar_filepath" ]]; then
|
||||
echo "$sleuthkit_jar_filepath found"
|
||||
echo "copying $sleuthkit_jar_filepath to the autopsy directory"
|
||||
echo "deleting $ext_jar_filepath"
|
||||
@ -31,7 +31,6 @@ if [[ -f "$sleuthkit_jar_filepath" ]] && [[ -f "$ext_jar_filepath" ]]; then
|
||||
fi
|
||||
else
|
||||
echo "$sleuthkit_jar_filepath not found, please install the sleuthkit-java.deb file"
|
||||
echo "run the command: sudo apt install ./sleuthkit-java_4.6.0-1_amd64.deb inside the debian file directory"
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user