Skip to content

Commit cb66f0d

Browse files
committed
Update windows path patching.
1 parent d611dd4 commit cb66f0d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/patch-nsis-paths.pl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020

2121
# Extract CI checkout root from MAINBINARYSRCPATH.
2222
# The path looks like: "D:\a\mouseterm\mouseterm\standalone\src-tauri\target\...\mouseterm.exe"
23-
# We want everything before \standalone\src-tauri\
23+
# We want everything before \src-tauri\ (including \standalone) because
24+
# actions/upload-artifact strips the common ancestor (standalone/) from paths.
2425
my $ci_root;
25-
if ($content =~ /MAINBINARYSRCPATH\s+"(.+?)\\standalone\\src-tauri\\/) {
26+
if ($content =~ /MAINBINARYSRCPATH\s+"(.+?)\\src-tauri\\/) {
2627
$ci_root = $1;
2728
} else {
2829
die "Could not extract CI checkout root from MAINBINARYSRCPATH in $nsi_file\n";

0 commit comments

Comments
 (0)