From ef4521360aa2b5524c379070dc8dd78d57d42659 Mon Sep 17 00:00:00 2001 From: Ashita Prasad <ashitaprasad92@gmail.com> Date: Sat, 15 Feb 2025 13:20:37 +0530 Subject: [PATCH] Update packaging.md --- doc/dev_guide/packaging.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/dev_guide/packaging.md b/doc/dev_guide/packaging.md index 18324745..e3043d4d 100644 --- a/doc/dev_guide/packaging.md +++ b/doc/dev_guide/packaging.md @@ -38,7 +38,7 @@ Run the following command to setup the base choco new --name="apidash" --version="0.3.0" maintainername="foss42" maintainerrepo="https://github.com/foss42/apidash" --built-in-template ``` - + This creates the following folder structure @@ -62,7 +62,7 @@ The files of our main interest are `chocolateyinstall.ps1` and `apidash.nuspec`. ### Step 2: Editing `chocolateyinstall.ps1` Take a look at `chocolateyinstall.ps1` file. There are many comments stating the use case of each line itself. - + Comments can bre remoed using the following command. ```powershell @@ -70,12 +70,11 @@ $f='apidash\tools\chocolateyinstall.ps1' gc $f | ? {$_ -notmatch "^\s*#"} | % {$_ -replace '(^.*?)\s*? [^``]#.*','$1'} | Out-File $f+".~" -en utf8; mv -fo $f+".~" $f ``` - Now our `chocolateyinstall.ps1` file is ready. ### Step 3: Editing `apidash.nuspec` - + ### Step 4: Build the package @@ -95,7 +94,7 @@ choco install apidash -s . ``` Ensure the application installs correctly. - + ### Step 6: Pre-Publishing - Update `LICENSE.txt` & `VERIFICATION.txt`