osu-lazer-bin: set OSU_EXTERNAL_UPDATE_PROVIDER on darwin (#417402)
This commit is contained in:
@@ -65,11 +65,16 @@ if stdenvNoCC.hostPlatform.isDarwin then
|
||||
passthru
|
||||
;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
APP_DIR="$out/Applications"
|
||||
mkdir -p "$APP_DIR"
|
||||
cp -r . "$APP_DIR"
|
||||
OSU_WRAPPER="$out/Applications/osu!.app/Contents"
|
||||
OSU_CONTENTS="osu!.app/Contents"
|
||||
mkdir -p "$OSU_WRAPPER/MacOS"
|
||||
cp -r "$OSU_CONTENTS/Info.plist" "$OSU_CONTENTS/Resources" "$OSU_WRAPPER"
|
||||
cp -r "osu!.app" "$OSU_WRAPPER/Resources/osu-wrapped.app"
|
||||
makeWrapper "$OSU_WRAPPER/Resources/osu-wrapped.app/Contents/MacOS/osu!" "$OSU_WRAPPER/MacOS/osu!" --set OSU_EXTERNAL_UPDATE_PROVIDER 1
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user