Small improvement to the build-info script.
This commit is contained in:
parent
fb5d990421
commit
ebba9f591e
@ -1,7 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ -n "$1" ]; then CC="$1"; elif [ -z "$CC" ]; then CC="cc"; fi
|
if [ -n "$1" ]; then CC="$1"; elif [ -z "$CC" ]; then CC="cc"; fi
|
||||||
|
|
||||||
|
if [ -e /etc/os-release ]; then
|
||||||
|
PLATFORM_NAME="`cat /etc/os-release | egrep '^PRETTY_NAME=' | cut -c 13- | tr -d '\042'`"
|
||||||
|
elif [ -x /usr/bin/sw_vers ]; then
|
||||||
|
PLATFORM_NAME="`/usr/bin/sw_vers -productName` `/usr/bin/sw_vers -productVersion`"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$PLATFORM_NAME" ]; then
|
||||||
|
PLATFORM_NAME="`uname -s -r -v -m`"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Built : `date -u +'%Y-%m-%d %H:%M:%S'`"
|
echo "Built : `date -u +'%Y-%m-%d %H:%M:%S'`"
|
||||||
echo "Platform : `uname -s -r -v -m`"
|
echo "Platform : $PLATFORM_NAME"
|
||||||
echo "Target : `$CC -dumpmachine`"
|
echo "Target : `$CC -dumpmachine`"
|
||||||
echo "Compiler : `$CC -v 2>&1 | egrep -i '(gcc|clang)[[:space:]]+version' 2>/dev/null | head -n 1`"
|
echo "Compiler : `$CC -v 2>&1 | egrep -i '(gcc|clang)[[:space:]]+version' 2>/dev/null | head -n 1`"
|
||||||
|
@ -3,7 +3,7 @@ set -e
|
|||||||
cd -- "$(dirname -- "${0}")/../../.."
|
cd -- "$(dirname -- "${0}")/../../.."
|
||||||
|
|
||||||
if [ -z "${cc_path}" ]; then
|
if [ -z "${cc_path}" ]; then
|
||||||
cc_path="/usr/local/bin/gcc13"
|
cc_path="/usr/local/bin/gcc14"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mk_slunk() {
|
mk_slunk() {
|
||||||
|
@ -34,7 +34,6 @@ Section
|
|||||||
!insertmacro PrintStatusMessage "Detecting operating system, please wait..."
|
!insertmacro PrintStatusMessage "Detecting operating system, please wait..."
|
||||||
${IfNot} ${AtLeastBuild} 7601
|
${IfNot} ${AtLeastBuild} 7601
|
||||||
MessageBox MB_ICONSTOP|MB_TOPMOST "This application runs on Windows 7 (SP1) or later!"
|
MessageBox MB_ICONSTOP|MB_TOPMOST "This application runs on Windows 7 (SP1) or later!"
|
||||||
ExecShell "open" "https://support.microsoft.com/en-us/windows/install-windows-7-service-pack-1-sp1-b3da2c0f-cdb6-0572-8596-bab972897f61"
|
|
||||||
Quit
|
Quit
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user