mirror of
https://github.com/foss42/apidash.git
synced 2025-06-21 23:00:44 +08:00
Update packaging.md
This commit is contained in:
@ -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`
|
||||
|
||||
|
Reference in New Issue
Block a user