Add offline installer #12

Merged
sb10q merged 1 commits from esavkin/artiq-extrapkg:2289-offline-installer into master 2024-08-17 17:37:24 +08:00
1 changed files with 2 additions and 2 deletions

View File

@ -515,7 +515,7 @@
msys2-offline-installer = pkgs.stdenv.mkDerivation {
name = "msys2-offline-installer";
buildInputs = with pkgs; [ p7zip wine64 ];
buildInputs = with pkgs; [ p7zip ];
src = ./.;
msys2_qt_ifw = pkgs.stdenvNoCC.mkDerivation rec {
Outdated
Review

Please pay attention.

Please pay attention.
name = "msys2_qt_ifw";
@ -564,7 +564,7 @@
# needed for sed and 7z
sb10q marked this conversation as resolved Outdated
Outdated
Review

Why?

Why?

So that 7z can place the archive in this directory

So that 7z can place the archive in this directory
Outdated
Review

Needs detailed explanation in comments.

Needs detailed explanation in comments.
chmod -R 700 qt-ifw
sb10q marked this conversation as resolved Outdated
Outdated
Review

find? There are only two files and the paths are known, no?

find? There are only two files and the paths are known, no?
sed -i "s|@DATE@|$(date +'%Y-%m-%d')|g" qt-ifw/config/config.xml qt-ifw/packages/com.msys2.root/meta/package.xml ;
sed -i "s|@VERSION@|$(date +'%Y%m%d')|g" qt-ifw/config/config.xml qt-ifw/packages/com.msys2.root/meta/package.xml ;
sed -i "s|@VERSION@|${artiqpkgs.packages.x86_64-linux.artiq.version}|g" qt-ifw/config/config.xml qt-ifw/packages/com.msys2.root/meta/package.xml ;
7z a -mx9 -md128m "qt-ifw/packages/com.msys2.root/data/msys64.7z" "$msys2_artiq_root/"*
${pkgs.wineWowPackages.stable}/bin/wine64 $msys2_qt_ifw/mingw64/bin/binarycreator.exe \