diff --git a/.github/workflows/release-pkg.nu b/.github/workflows/release-pkg.nu index 82a569997..2d6515771 100755 --- a/.github/workflows/release-pkg.nu +++ b/.github/workflows/release-pkg.nu @@ -7,18 +7,29 @@ # 1. https://github.com/volks73/cargo-wix # Added 2022-11-29 when Windows packaging wouldn't work -# because softprops/action-gh-release was broken # To run this manual for windows +# unset CARGO_TARGET_DIR if set +# hide-env CARGO_TARGET_DIR # let-env TARGET = 'x86_64-pc-windows-msvc' # let-env TARGET_RUSTFLAGS = '' # let-env GITHUB_WORKSPACE = 'C:\Users\dschroeder\source\repos\forks\nushell' +# let-env GITHUB_OUTPUT = 'C:\Users\dschroeder\source\repos\forks\nushell\output\out.txt' +# let-env OS = 'windows-latest' +# You need to run this twice. The first pass makes the output folder and builds everything +# The second pass generates the msi file # Pass 1 let-env _EXTRA_ = 'bin' # Pass 2 let-env _EXTRA_ = 'msi' # make sure 7z.exe is in your path https://www.7-zip.org/download.html +# let-env Path = ($env.Path | append 'c:\apps\7-zip') # make sure aria2c.exe is in your path https://github.com/aria2/aria2 +# let-env Path = ($env.Path | append 'c:\path\to\aria2c') # make sure you have the wixtools installed https://wixtoolset.org/ -# set os below like this because it's what github's runner is named -# let os = 'windows-latest' +# let-env Path = ($env.Path | append 'C:\Users\dschroeder\AppData\Local\tauri\WixTools') +# After msi is generated, if 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 +# open target\wix\nu-0.74.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 # The main binary file to be released