Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

Commit c3798fd

Browse files
committed
Added module to NuGet repository
1 parent d85a3a8 commit c3798fd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed
Binary file not shown.

NuGet/ps.win.api.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>ps.win.api</id>
5-
<version>0.4.3.1</version>
5+
<version>0.4.3.2</version>
66
<authors>Lifailon</authors>
77
<owners>Lifailon</owners>
88
<description>REST API and Web server based on .NET HttpListener and backend PowerShell Core for Windows remote managment via Web browser or curl from Linux</description>

WinAPI/Module/ps.win.api/0.4.3/ps.win.api.psm1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ function Start-WinAPI {
22
$GitHub_Tag = (Invoke-RestMethod "https://api.github.com/repos/Lifailon/WinAPI/releases/latest").tag_name
33
$Version = $GitHub_Tag -replace ".+-"
44
$Version = "0.4.3"
5-
$winapi_path = "$(($env:PSModulePath -split ";")[0])\WInAPI\$Version\"
5+
$winapi_path = "$(($env:PSModulePath -split ";")[0])\ps.win.api\$Version\"
66
$ini_path = "$winapi_path\winapi.ini"
77
$Log_Path = "$winapi_path\winapi.log"
88
$ini = Get-Content $ini_path
@@ -25,7 +25,7 @@ function Stop-WinAPI {
2525
$GitHub_Tag = (Invoke-RestMethod "https://api.github.com/repos/Lifailon/WinAPI/releases/latest").tag_name
2626
$Version = $GitHub_Tag -replace ".+-"
2727
$Version = "0.4.3"
28-
$path = "$(($env:PSModulePath -split ";")[0])\WInAPI\$Version\"
28+
$path = "$(($env:PSModulePath -split ";")[0])\ps.win.api\$Version\"
2929
$proc_id = Get-Content "$path\process_id.txt"
3030
Start-Process pwsh -ArgumentList "-Command Stop-Process -Id $proc_id" -Verb RunAs
3131
}
@@ -34,7 +34,7 @@ function Test-WinAPI {
3434
$GitHub_Tag = (Invoke-RestMethod "https://api.github.com/repos/Lifailon/WinAPI/releases/latest").tag_name
3535
$Version = $GitHub_Tag -replace ".+-"
3636
$Version = "0.4.3"
37-
$path = "$(($env:PSModulePath -split ";")[0])\WInAPI\$Version\"
37+
$path = "$(($env:PSModulePath -split ";")[0])\ps.win.api\$Version\"
3838
$ini = Get-Content "$path\winapi.ini"
3939
$port = $($ini | ConvertFrom-StringData).port
4040
$listen = Get-NetTCPConnection -LocalPort $port -State Listen -ErrorAction Ignore
@@ -57,7 +57,7 @@ function Read-WinAPI {
5757
$GitHub_Tag = (Invoke-RestMethod "https://api.github.com/repos/Lifailon/WinAPI/releases/latest").tag_name
5858
$Version = $GitHub_Tag -replace ".+-"
5959
$Version = "0.4.3"
60-
$winapi_path = "$(($env:PSModulePath -split ";")[0])\WInAPI\$Version\"
60+
$winapi_path = "$(($env:PSModulePath -split ";")[0])\ps.win.api\$Version\"
6161
$Log_Path = "$winapi_path\winapi.log"
6262
Get-Content $Log_Path -Wait
6363
}

WinAPI/Server/WinAPI-0.4.3.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ if (!(Get-RunAs)) {
9292
$GitHub_Tag = (Invoke-RestMethod "https://api.github.com/repos/Lifailon/WinAPI/releases/latest").tag_name
9393
$Version = $GitHub_Tag -replace ".+-"
9494
$Version = "0.4.3"
95-
$winapi_path = "$(($env:PSModulePath -split ";")[0])\WInAPI\$Version\"
95+
$winapi_path = "$(($env:PSModulePath -split ";")[0])\ps.win.api\$Version\"
9696
$ini_path = "$winapi_path\WinAPI.ini"
9797
$Log_Path = "$winapi_path\WinAPI.log"
9898

0 commit comments

Comments
 (0)