This repository was archived by the owner on Feb 13, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +28
-4
lines changed
Expand file tree Collapse file tree 1 file changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,40 @@ jobs:
2929 run : |
3030 msbuild build/VisualStudio/Notepad4.sln /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }} /verbosity:minimal
3131
32+ - name : Debug - List directory structure after build
33+ run : |
34+ Get-ChildItem -Path "." -Recurse -File | Where-Object { $_.Name -match "\.exe$" } | Select-Object FullName
35+
3236 - name : Create output directory
3337 run : |
3438 New-Item -ItemType Directory -Path "output/${{ matrix.platform }}" -Force
3539
3640 - name : Copy built files
3741 run : |
38- $srcDir = "bin/${{ matrix.configuration }}/${{ matrix.platform }}"
39- $destDir = "output/${{ matrix.platform }}"
40- Copy-Item -Path "$srcDir\Notepad4.exe" -Destination "$destDir"
41- Copy-Item -Path "$srcDir\matepath.exe" -Destination "$destDir"
42+ # Try different possible output directories
43+ $possibleDirs = @(
44+ "bin/${{ matrix.configuration }}/${{ matrix.platform }}",
45+ "build/VisualStudio/${{ matrix.configuration }}/${{ matrix.platform }}",
46+ "${{ matrix.configuration }}/${{ matrix.platform }}"
47+ )
48+
49+ $srcDir = $null
50+ foreach ($dir in $possibleDirs) {
51+ if (Test-Path "$dir\Notepad4.exe") {
52+ $srcDir = $dir
53+ break
54+ }
55+ }
56+
57+ if ($srcDir) {
58+ Write-Host "Found Notepad4.exe in: $srcDir"
59+ $destDir = "output/${{ matrix.platform }}"
60+ Copy-Item -Path "$srcDir\Notepad4.exe" -Destination "$destDir"
61+ Copy-Item -Path "$srcDir\matepath.exe" -Destination "$destDir"
62+ } else {
63+ Write-Error "Could not find Notepad4.exe in any of the possible directories"
64+ exit 1
65+ }
4266
4367 - name : Build NSIS installer
4468 run : |
You can’t perform that action at this time.
0 commit comments