Commit fb0ddcb0 authored by Artturin's avatar Artturin
Browse files

iscc: Fix running windows installers



Fix found by AleXoundOS

> I figured out what caused the problem! By default, mkDerivation uses strip operations for all binaries in $out/bin,
> what caused $out/bin/Setup.e32 file to become stripped and lose some crucial parts which must be copied to resulting installer executable.
> Adding dontStrip = 1 fixes the problem.

Co-authored-by: default avatarAlexander Tomokhov <alexoundos@gmail.com>
parent d30c21d3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -53,6 +53,10 @@ stdenv.mkDerivation rec {
    runHook postInstall
  '';

  # Stripping causes `$out/bin/Setup.e32` to lose something important and causes the built windows installers to not run on windows "This app can't run on your PC".
  # They worked in wine but not on real windows.
  dontStrip = 1;

  meta = with lib; {
    description = "Compiler for Inno Setup, a tool for creating Windows installers";
    homepage = "https://jrsoftware.org/isinfo.php";