Skip to content

Commit

Permalink
fin - Finalized Chocolatey
Browse files Browse the repository at this point in the history
---

Type: fin
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 1, 2024
1 parent 5186d8c commit f7cb71d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ChocolateyPack-DotNet/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $ErrorActionPreference = 'Stop';
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$pkgName = "KS"
$url = "https://github.com/Aptivi/NitrocidKS/releases/download/v0.0.24.22-beta/0.0.24.22-bin-dotnet.zip"
$md5check = "26ccefa7594fbed927b84d20999a9818"
$md5check = "0e60c7124e4a5dcaf1bd331af28e8f96"

Write-Output "<*>: for assumptions, <+> for progress, <-> for error"
Write-Output "<*> Installation directory: $toolsDir"
Expand Down
2 changes: 1 addition & 1 deletion ChocolateyPack/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $ErrorActionPreference = 'Stop';
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$pkgName = "KS"
$url = "https://github.com/Aptivi/NitrocidKS/releases/download/v0.0.24.22-beta/0.0.24.22-bin.zip"
$md5check = "8fe6cb73589533a34007b1aa63a84aba"
$md5check = "9b867217a4ab034302f8d6ce760b0018"

Write-Output "<*>: for assumptions, <+> for progress, <-> for error"
Write-Output "<*> Installation directory: $toolsDir"
Expand Down
4 changes: 2 additions & 2 deletions tools/pack.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ for /f "tokens=* USEBACKQ" %%f in (`type version`) do set ksversion=%%f
echo Packing binary...
del "Kernel Simulator\KSBuild\*.nupkg" >> %temp%/buildandpack.log 2>&1
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%ksversion%-bin.zip "..\Kernel Simulator\KSBuild\net48\*" >> %temp%/buildandpack.log 2>&1
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%ksversion%-bin-dotnet.zip "..\Kernel Simulator\KSBuild\net6.0\*" >> %temp%/buildandpack.log 2>&1
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%ksversion%-bin-dotnet.zip "..\Kernel Simulator\KSBuild\net8.0\*" >> %temp%/buildandpack.log 2>&1
if %errorlevel% == 0 goto :complete
echo There was an error trying to pack binary (%errorlevel%).
goto :finished
Expand All @@ -32,7 +32,7 @@ goto :finished
move %temp%\%ksversion%-bin.zip
move %temp%\%ksversion%-bin-dotnet.zip
copy "..\Kernel Simulator\KSBuild\net48\Kernel Simulator.pdb" .\%ksversion%.pdb
copy "..\Kernel Simulator\KSBuild\net6.0\Kernel Simulator.pdb" .\%ksversion%-dotnet.pdb
copy "..\Kernel Simulator\KSBuild\net8.0\Kernel Simulator.pdb" .\%ksversion%-dotnet.pdb

echo Pack successful.
:finished
4 changes: 2 additions & 2 deletions tools/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fi
echo Packing binary...
find . -type f -iname \*.nupkg -delete >> ~/tmp/buildandpack.log
(cd "../Kernel Simulator/KSBuild/net48/" && "$zippath" -r /tmp/$ksversion-bin.zip . && cd -) >> ~/tmp/buildandpack.log
(cd "../Kernel Simulator/KSBuild/net6.0/" && "$zippath" -r /tmp/$ksversion-bin-dotnet.zip . && cd -) >> ~/tmp/buildandpack.log
(cd "../Kernel Simulator/KSBuild/net8.0/" && "$zippath" -r /tmp/$ksversion-bin-dotnet.zip . && cd -) >> ~/tmp/buildandpack.log
if [ ! $? == 0 ]; then
echo Packing using zip failed.
exit 1
Expand All @@ -41,6 +41,6 @@ fi
mv ~/tmp/$ksversion-bin.zip .
mv ~/tmp/$ksversion-bin-dotnet.zip .
cp "../Kernel Simulator/KSBuild/net48/Kernel Simulator.pdb" ./$ksversion.pdb
cp "../Kernel Simulator/KSBuild/net6.0/Kernel Simulator.pdb" ./$ksversion-dotnet.pdb
cp "../Kernel Simulator/KSBuild/net8.0/Kernel Simulator.pdb" ./$ksversion-dotnet.pdb
echo Build and pack successful.
exit 0

0 comments on commit f7cb71d

Please sign in to comment.