Skip to content

Commit 1a9ced6

Browse files
authored
Merge pull request #4026 from erri120/fix-smapi-install
Fix SMAPI installation on Unix systems
2 parents 06d762b + dbabde8 commit 1a9ced6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NexusMods.Games.StardewValley/Installers/SMAPIInstaller.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public override async ValueTask<InstallerResult> ExecuteAsync(
7676
var isUnix = targetOS.IsUnix();
7777

7878
// NOTE(erri120): paths can be verified using Steam depots: https://steamdb.info/app/413150/depots/
79-
RelativePath unixLauncherDirectory = targetOS.IsOSX
79+
RelativePath unixLauncherFile = targetOS.IsOSX
8080
? "Contents/MacOS/StardewValley"
8181
: "StardewValley";
8282

@@ -122,7 +122,7 @@ public override async ValueTask<InstallerResult> ExecuteAsync(
122122
// https://github.com/Pathoschild/SMAPI/blob/5919337236650c6a0d7755863d35b2923a94775c/src/SMAPI.Installer/InteractiveInstaller.cs#L395-L425
123123
if (isUnix && fileName.Equals("unix-launcher.sh"))
124124
{
125-
to = new GamePath(LocationId.Game, unixLauncherDirectory / fileName);
125+
to = new GamePath(LocationId.Game, unixLauncherFile);
126126
}
127127

128128
// NOTE(erri120): The official installer doesn't replace "Stardew Valley.exe" with

0 commit comments

Comments
 (0)