Skip to content

Commit 9431817

Browse files
authored
Merge pull request #740 from ibuclaw/merge_stable
Merge stable
2 parents 65c7449 + 2c1eefd commit 9431817

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/build_release_template.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,17 @@ jobs:
248248
7z x inetc.zip -y -bb1 "-oc:\Program Files (x86)\NSIS" || exit /b
249249
250250
:: unpack release .7z generated in previous step
251-
7z x create_dmd_release\build\dmd.${{ inputs.release_branch }}.windows.7z -odmd.windows || exit /b
251+
:: chomp off the "v" prefix if there is one, as this is what build_all does
252+
set release=${{ inputs.release_branch }}
253+
if "%release:~0,1%"=="v" set release=%release:~1%
254+
7z x create_dmd_release\build\dmd.%release%.windows.7z -odmd.windows || exit /b
252255
253256
@echo on
254257
"c:\Program Files (x86)\NSIS\makensis" /version
255258
for /f %%v in (dmd.windows\dmd2\src\VERSION) do set ver=%%v
256259
cd windows || exit /b
257260
"c:\Program Files (x86)\NSIS\makensis" /DVersion2=%ver% /DEmbedD2Dir=..\dmd.windows\dmd2 d2-installer.nsi || exit /b
258-
ren dmd-%ver%.exe dmd-${{ inputs.release_branch }}.exe || exit /b
261+
ren dmd-%ver%.exe dmd-%release%.exe || exit /b
259262
copy dmd-*.exe ..\create_dmd_release\build || exit /b
260263
261264
#################################################################

create_dmd_release/build_all.d

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,13 @@ struct Box
139139
if (src.startsWith("default:"))
140140
src = _tmpdir ~ "/" ~ src[8..$];
141141
else if (src.startsWith("'default:"))
142-
src = "'" ~ _tmpdir ~ "/" ~ src[9..$];
142+
{
143+
// Expand 'default:path/*.ext'
144+
src = _tmpdir ~ "/" ~ src[9..$-1];
145+
src = dirEntries(dirName(src), baseName(src), SpanMode.shallow)
146+
.map!(f => f.name)
147+
.join(" ");
148+
}
143149
if (tgt.startsWith("default:"))
144150
tgt = _tmpdir ~ "/" ~ tgt[8..$];
145151

0 commit comments

Comments
 (0)