From 8ddfd34b31906af4005dab6e87c44cd4b0d8941c Mon Sep 17 00:00:00 2001 From: "METANEOCORTEX\\Kotti" Date: Sat, 21 Jan 2023 14:59:01 +0100 Subject: [PATCH] +fix: repair build --- Version.ps1 | 6 ++++-- Versions/build.txt | 1 + Versions/day.txt | 1 + minipath/res/MiniPath.exe.manifest.conf | 10 ++++++++++ minipath/src/VersionEx.h | 5 +++++ res/Notepad3.exe.conf.manifest | 11 +++++++++++ src/VersionEx.h | 20 ++++++++++++++++++++ 7 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 Versions/build.txt create mode 100644 Versions/day.txt create mode 100644 minipath/res/MiniPath.exe.manifest.conf create mode 100644 minipath/src/VersionEx.h create mode 100644 res/Notepad3.exe.conf.manifest create mode 100644 src/VersionEx.h diff --git a/Version.ps1 b/Version.ps1 index 01fa90486..73052aec2 100644 --- a/Version.ps1 +++ b/Version.ps1 @@ -57,8 +57,10 @@ try } # locally: increase build number and persit it $Build = $Build + 1 - # locally: read commit ID from .git\FETCH_HEAD - $CommitID = [string](Get-Content ".git\FETCH_HEAD" -TotalCount 8) + # locally: read commit ID from .git\refs\heads\ + $HeadDir = ".git\refs\heads" + $HeadMaster = Get-ChildItem -Path $HeadDir -Force -Recurse -File | Select-Object -First 1 + $CommitID = [string](Get-Content "$HeadDir\$HeadMaster" -TotalCount 8) if (!$CommitID) { $length = ([string]($env:computername)).length $CommitID = ([string]($env:computername)).substring(0,[math]::min($length,8)).ToLower() diff --git a/Versions/build.txt b/Versions/build.txt new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/Versions/build.txt @@ -0,0 +1 @@ +0 diff --git a/Versions/day.txt b/Versions/day.txt new file mode 100644 index 000000000..8f087a34c --- /dev/null +++ b/Versions/day.txt @@ -0,0 +1 @@ +000 diff --git a/minipath/res/MiniPath.exe.manifest.conf b/minipath/res/MiniPath.exe.manifest.conf new file mode 100644 index 000000000..caf940f17 --- /dev/null +++ b/minipath/res/MiniPath.exe.manifest.conf @@ -0,0 +1,10 @@ + + + + metapath + diff --git a/minipath/src/VersionEx.h b/minipath/src/VersionEx.h new file mode 100644 index 000000000..723b54fee --- /dev/null +++ b/minipath/src/VersionEx.h @@ -0,0 +1,5 @@ +#define MNPTHNAME "MiniPath" +#define VERSION_MAJOR 1 +#define VERSION_MINOR 0 +#define VERSION_REV 2 +#define VERSION_BUILD 191 diff --git a/res/Notepad3.exe.conf.manifest b/res/Notepad3.exe.conf.manifest new file mode 100644 index 000000000..e3d567a3f --- /dev/null +++ b/res/Notepad3.exe.conf.manifest @@ -0,0 +1,11 @@ + + + + + Notepad3 NoVer + diff --git a/src/VersionEx.h b/src/VersionEx.h new file mode 100644 index 000000000..c1f2a423c --- /dev/null +++ b/src/VersionEx.h @@ -0,0 +1,20 @@ +// encoding: UTF-8 +// ////////////////////////////////////////////////////////// +// // +// this file is generated - use template to apply changes // +// // +// ////////////////////////////////////////////////////////// +#define APPNAME Notepad3 +#define SAPPNAME "Notepad3" +#define VERSION_MAJOR 6 +#define VERSION_MINOR 00 +#define VERSION_REV 000 +#define VERSION_BUILD 0 +#define SCINTILLA_VER 000 +#define LEXILLA_VER 000 +#define ONIGURUMA_REGEX_VER 0.0.0 +#define UCHARDET_VER 0000.00.00 +#define TINYEXPR_VER 0000.00.00 +#define UTHASH_VER 0.0.0 +#define VERSION_PATCH NoVer +#define VERSION_COMMIT_ID 00000000