Unverified Commit 36eac2d7 authored by Yifei Sun's avatar Yifei Sun Committed by GitHub
Browse files

osu-lazer-bin: set OSU_EXTERNAL_UPDATE_PROVIDER on darwin (#417402)

parents c42d484a 57a1bd60
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -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
    '';
  }