Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
aaf51296
Commit
aaf51296
authored
4 years ago
by
Brian Carrier
Browse files
Options
Downloads
Patches
Plain Diff
Updated for nuget-based release
parent
b46aa8b3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
release/release-win.pl
+8
-17
8 additions, 17 deletions
release/release-win.pl
with
8 additions
and
17 deletions
release/release-win.pl
+
8
−
17
View file @
aaf51296
...
...
@@ -7,12 +7,12 @@
# This only builds the 32-bit, release target
#
# Assumes:
#- libewf, libvmdk, and libvhdi are configured and built
#- The correct msbuild is in the PATH
#-- VS2015 and VS2008 put this in different places. If VS2008 is found first, you'll get errors
# about not finding the 140_xp platform.
#-- The easiest way to do this is to launch Cygwin using the appropriate batch file, which sets
# the correct environment variables.
#- Nuget exe commandline is installed and on path
#
# This requires Cygwin with:
# - git
...
...
@@ -21,8 +21,7 @@
use
strict
;
my
$TESTING
=
0
;
print
"
TESTING MODE (no commits)
\n
"
if
(
$TESTING
);
# Use 'no-tag' as the tag name to do basic testing
unless
(
@ARGV
==
1
)
{
print
stderr
"
Missing arguments: version
\n
";
...
...
@@ -47,18 +46,6 @@
#die "Missing redist dir $REDIST_LOC" unless (-d "$REDIST_LOC");
# Verify LIBX libraries exist / built
die
"
LIBEWF missing
"
unless
(
-
d
"
$ENV
{'LIBEWF_HOME'}
");
die
"
libewf dll missing
"
unless
(
-
e
"
$ENV
{'LIBEWF_HOME'}/msvscpp/Release/libewf.dll
"
);
die
"
libvhdi dll missing
"
unless
(
-
e
"
$ENV
{'LIBVHDI_HOME'}/msvscpp/Release/libvhdi.dll
"
);
die
"
libvhdi dll missing
"
unless
(
-
e
"
$ENV
{'LIBVMDK_HOME'}/msvscpp/Release/libvmdk.dll
"
);
#######################
# Function to execute a command and send output to pipe
...
...
@@ -165,10 +152,14 @@ sub build_core {
die
"
Release folder not deleted
"
if
(
-
x
"
Release/fls.exe
");
# Get Dependencies
`
nuget restore tsk-win.sln
`;
# 2008 version
# `vcbuild /errfile:BuildErrors.txt tsk-win.sln "Release|Win32"`;
# 2010/2015 version
`
msbuild.exe tsk-win.sln /m /p:Configuration=Release /clp:ErrorsOnly /nologo > BuildErrors.txt
`;
`
msbuild.exe tsk-win.sln /m /p:Configuration=Release
/p:platform=Win32
/clp:ErrorsOnly /nologo > BuildErrors.txt
`;
die
"
Build errors -- check win32/BuildErrors.txt
"
if
(
-
s "BuildErrors.txt");
# Do a basic check on some of the executables
...
...
@@ -240,4 +231,4 @@ sub package_core {
update_code();
build_core();
package_core();
\ No newline at end of file
package_core();
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment