From 02d63705cc3ea43d07b098d44ad4952f0fe7e945 Mon Sep 17 00:00:00 2001 From: Justin Ma Date: Sat, 24 May 2025 22:10:18 +0800 Subject: [PATCH] Update comments of release-pkg.nu for building of MSI package (#15815) # Description Update comments of release-pkg.nu for building of MSI package --- .github/workflows/release-pkg.nu | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release-pkg.nu b/.github/workflows/release-pkg.nu index ac7bbc0e9b..bb99abd0f0 100755 --- a/.github/workflows/release-pkg.nu +++ b/.github/workflows/release-pkg.nu @@ -11,7 +11,7 @@ # Updated again on 2023-02-23 because MSIs are still failing validation # To run this manual for windows here are the steps I take # checkout the release you want to publish -# 1. git checkout 0.86.0 +# 1. git checkout 0.103.0 # unset CARGO_TARGET_DIR if set (I have to do this in the parent shell to get it to work) # 2. $env:CARGO_TARGET_DIR = "" # 2. hide-env CARGO_TARGET_DIR @@ -23,19 +23,13 @@ # 7. $env.Path = ($env.Path | append 'c:\apps\7-zip') # make sure aria2c.exe is in your path https://github.com/aria2/aria2 # 8. $env.Path = ($env.Path | append 'c:\path\to\aria2c') -# make sure you have the wixtools installed https://wixtoolset.org/ -# 9. $env.Path = ($env.Path | append 'C:\Users\dschroeder\AppData\Local\tauri\WixTools') -# You need to run the release-pkg twice. The first pass, with _EXTRA_ as 'bin', makes the output -# folder and builds everything. The second pass, that generates the msi file, with _EXTRA_ as 'msi' -# 10. $env._EXTRA_ = 'bin' -# 11. source .github\workflows\release-pkg.nu -# 12. cd .. -# 13. $env._EXTRA_ = 'msi' -# 14. source .github\workflows\release-pkg.nu +# make sure you have the wix 6.0 installed: dotnet tool install --global wix --version 6.0.0 +# then build nu*.exe and the MSI installer by running: +# 9. source .github\workflows\release-pkg.nu # After msi is generated, you have to update winget-pkgs repo, you'll need to patch the release # by deleting the existing msi and uploading this new msi. Then you'll need to update the hash # on the winget-pkgs PR. To generate the hash, run this command -# 15. open target\wix\nu-0.74.0-x86_64-pc-windows-msvc.msi | hash sha256 +# 10. open wix\bin\x64\Release\nu-0.103.0-x86_64-pc-windows-msvc.msi | hash sha256 # Then, just take the output and put it in the winget-pkgs PR for the hash on the msi