Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
adamyg committed Mar 10, 2024
1 parent df604ba commit e00717e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
choco install innosetup --version=5.6.1 --force
cd mcwin32
@rem .\support\gmake-42 release package
"%programfiles(x86)%\Inno Setup 5\ISCC" -DBUILD_INFO=1 -DBUILD_TYPE=release -DBUILD_TOOLCHAIN=${{ matrix.config.toolchain }} ".\releases\mc-inno-setup.iss"
"%programfiles(x86)%\Inno Setup 5\ISCC" -DBUILD_INFO=1 -DBUILD_TYPE=release ".\releases\mc-inno-setup.iss"
- name: Release artifacts
if: startsWith(matrix.config.name, 'Windows Latest MSVC') || startsWith(matrix.config.name, 'Windows Latest OWC')
Expand Down
2 changes: 1 addition & 1 deletion mcwin32/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ clean:
$(MAKE) -C libz clean
$(MAKE) -C libw32 clean
$(MAKE) -C diff clean
$(MAKE) -C kbtest clean
$(MAKE) -C src/kbtest clean
$(MAKE) -C autoupdater clean
-$(RM) $(MSGOBJS) $(MSGDIRS) $(QUIETOUT)
-$(RM) $(CONFIGURATION) $(QUIETOUT)
Expand Down
11 changes: 8 additions & 3 deletions mcwin32/buildinfo.pl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/perl -w
# -*- mode: perl; -*-
# $Id: buildinfo.pl,v 1.10 2024/01/16 15:18:03 cvsuser Exp $
# $Id: buildinfo.pl,v 1.11 2024/03/09 17:58:47 cvsuser Exp $
# buildinfo generation
#
# Copyright Adam Young 2018 - 2024
Expand Down Expand Up @@ -131,8 +131,13 @@
#define ${prefix}BUILD_NUMBER "${buildnumber}"
EOT

print FILE "#define BUILD_TOOLCHAIN \"${buildtoolchain}\"\n"
if ($buildtoolchain);
if ($buildtoolchain) {
my $buildtoolname = $buildtoolchain;
$buildtoolname =~ s/^\.//;

print FILE "#define BUILD_TOOLCHAIN \"${buildtoolchain}\"\n";
print FILE "#define BUILD_TOOLNAME \"${buildtoolname}\"\n";
}

if ($buildtype) {
print FILE "#define BUILD_TYPE \"${buildtype}\"\n";
Expand Down
4 changes: 2 additions & 2 deletions mcwin32/releases/mc-inno-setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ DefaultGroupName=Midnight Commander
LicenseFile=..\{#BinDir}\doc\COPYING

OutputDir=.
#if defined(BUILD_TOOLCHAIN)
OutputBaseFilename=mcwin32-build{#BUILD_NUMBER}-{#BUILD_TOOLCHAIN}-setup
#if defined(BUILD_TOOLNAME)
OutputBaseFilename=mcwin32-build{#BUILD_NUMBER}-{#BUILD_TOOLNAME}-setup
#else
OutputBaseFilename=mcwin32-build{#BUILD_NUMBER}-setup
#endif
Expand Down

0 comments on commit e00717e

Please sign in to comment.