Skip to content

Commit

Permalink
Add .zip distribution building for Win32
Browse files Browse the repository at this point in the history
  • Loading branch information
Grumbel committed Jul 11, 2023
1 parent d08d875 commit 1f0bcfa
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,29 @@
then pkgs.windows.mcfgthreads
else null;
};

sdl-jstest-win32 = pkgs.runCommand "sdl-jstest-win32" {} ''
mkdir -p $out
mkdir -p $out/data/
cp -vr ${sdl-jstest}/bin/*.exe $out/
cp -vLr ${sdl-jstest}/bin/*.dll $out/
cp -vr ${sdl-jstest}/share/sdl-jstest/. $out/data/
'';

sdl-jstest-win32-zip = pkgs.runCommand "sdl-jstest-win32-zip" {} ''
mkdir -p $out
WORKDIR=$(mktemp -d)
cp --no-preserve mode,ownership --verbose --recursive \
${sdl-jstest-win32}/. "$WORKDIR"
cd "$WORKDIR"
${nixpkgs.legacyPackages.x86_64-linux.zip}/bin/zip \
-r \
$out/sdl-jstest-${sdl-jstest.version}-${pkgs.system}.zip \
.
'';
};
}
);
Expand Down

0 comments on commit 1f0bcfa

Please sign in to comment.