Compare commits
No commits in common. "MT" and "1.3.2" have entirely different histories.
4
Makefile
4
Makefile
@ -79,7 +79,7 @@ endif
|
||||
|
||||
ifneq (,$(firstword $(filter %mingw32 %-windows-gnu %-cygwin %-cygnus,$(MACHINE))))
|
||||
EXE_SUFFIX := .exe
|
||||
LIB_SUFFIX := .$(if $(subst 0,,$(SHARED)),dll,a)
|
||||
LIB_SUFFIX := .$(if $(subst 0,,$(SHARED)),dll,lib)
|
||||
else
|
||||
LIB_SUFFIX := .$(if $(subst 0,,$(SHARED)),$(if $(findstring -apple-darwin,$(MACHINE)),dylib,so),a)
|
||||
endif
|
||||
@ -107,7 +107,7 @@ ifneq (,$(firstword $(filter %-pc-haiku %-unknown-haiku,$(MACHINE))))
|
||||
endif
|
||||
|
||||
APP_CFLAGS = $(CFLAGS)
|
||||
APP_LDFLGS = -L$(SUBDIR_LIB)/lib -l$(VERSION_LIB) $(LDFLGS)
|
||||
APP_LDFLGS = $(LDFLGS) -L$(SUBDIR_LIB)/lib -l$(VERSION_LIB)
|
||||
LIB_CFLAGS = $(CFLAGS)
|
||||
LIB_LDFLGS = $(LDFLGS)
|
||||
|
||||
|
@ -15,11 +15,7 @@ fi
|
||||
|
||||
rm -rf "out" && mkdir -p "out"
|
||||
|
||||
if [ "$(arch)" == "x86_64" ]; then
|
||||
mk_slunk "x86_64" "x86_64-gnu" "MARCH=x86-64 MTUNE=nocona"
|
||||
else
|
||||
mk_slunk "i686" "i686-gnu" "MARCH=pentiumpro MTUNE=pentium3"
|
||||
fi
|
||||
mk_slunk "i686" "i686-gnu" "MARCH=pentiumpro MTUNE=pentium3"
|
||||
|
||||
./etc/build/build_info.sh "gcc" > "out/.build_info"
|
||||
|
||||
|
@ -3,7 +3,7 @@ set -e
|
||||
cd -- "$(dirname -- "${0}")/../../.."
|
||||
|
||||
if [ -z "${cc_path}" ]; then
|
||||
cc_path="/usr/pkg/gcc14/bin/gcc"
|
||||
cc_path="/usr/pkg/gcc13/bin/gcc"
|
||||
fi
|
||||
|
||||
mk_slunk() {
|
||||
|
@ -3,7 +3,7 @@ set -e
|
||||
cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../../.."
|
||||
|
||||
if [ -z "${cc_path}" ]; then
|
||||
cc_path="/usr/gcc/14/bin/gcc"
|
||||
cc_path="/usr/gcc/13/bin/gcc"
|
||||
fi
|
||||
|
||||
mk_slunk() {
|
||||
|
@ -23,10 +23,10 @@ fi
|
||||
|
||||
mk_slunk() {
|
||||
make -B CC="${cc_path}" MARCH=${2} MTUNE=${3} STATIC=1 STRIP=1 FLTO=${use_flto}
|
||||
cp -vf "frontend/bin/slunkcrypt" "out/slunkcrypt-${1}"
|
||||
cp -vf "frontend/bin/slunkcrypt" "out/_next_/slunkcrypt-${1}"
|
||||
}
|
||||
|
||||
mkdir -p "out"
|
||||
mkdir -p "out/_next_"
|
||||
|
||||
case "${machine}" in
|
||||
x86_64*)
|
||||
@ -41,9 +41,9 @@ case "${machine}" in
|
||||
esac
|
||||
|
||||
if [[ "${machine}" == *"-cygwin" ]]; then
|
||||
cp -vfu "$(which cygwin1.dll)" "out"
|
||||
cp -vfu "$(which cygwin1.dll)" "out/_next_"
|
||||
fi
|
||||
|
||||
./etc/build/build_info.sh "${cc_path}" > "out/.build_info"
|
||||
./etc/build/build_info.sh "${cc_path}" > "out/_next_/.build_info"
|
||||
|
||||
echo "Build completed successfully."
|
||||
|
@ -6,6 +6,7 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
|
||||
using com.muldersoft.slunkcrypt.gui.utils;
|
||||
|
||||
namespace com.muldersoft.slunkcrypt.gui.process
|
||||
@ -86,7 +87,7 @@ namespace com.muldersoft.slunkcrypt.gui.process
|
||||
string.Equals(fileVersion.CompanyName, "Muldersoft", StringComparison.OrdinalIgnoreCase) &&
|
||||
(fileVersion.FileMajorPart == appVersion.Major) && (fileVersion.FileMinorPart == appVersion.Minor))
|
||||
{
|
||||
success = ToVersion64(fileVersion.FileBuildPart, fileVersion.FilePrivatePart) >= ToVersion64(appVersion.Build, appVersion.Revision);
|
||||
success = (fileVersion.FilePrivatePart >= appVersion.Revision);
|
||||
}
|
||||
}
|
||||
finally
|
||||
@ -100,10 +101,5 @@ namespace com.muldersoft.slunkcrypt.gui.process
|
||||
catch { }
|
||||
return success;
|
||||
}
|
||||
|
||||
static ulong ToVersion64(int upper, int lower)
|
||||
{
|
||||
return (Convert.ToUInt64(upper) << 32) | Convert.ToUInt64(lower);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -23,11 +23,10 @@ namespace com.muldersoft.slunkcrypt.gui.utils
|
||||
|
||||
public static new string ToString()
|
||||
{
|
||||
Version value = Version;
|
||||
string versionString = string.Format(
|
||||
((value.Revision > 0) || (value.Build > 0)) ? ((value.Build > 0) ? "{0:D}.{1:D}.{2:D}.{3:D}" : "{0:D}.{1:D}.{3:D}") : "{0:D}.{1:D}",
|
||||
value.Major, value.Minor, value.Build, value.Revision);
|
||||
return string.Format("Version {0}, built on {1}", versionString, BuildDate.ToString("yyyy-MM-dd"));
|
||||
Version version = m_version.Value;
|
||||
return string.Format(
|
||||
(version.Revision > 0) ? "Version {0:D}.{1:D}.{2:D}, built on {3}" : "Version {0:D}.{1:D}, built on {3}",
|
||||
version.Major, version.Minor, version.Revision, BuildDate.ToString("yyyy-MM-dd"));
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user