]> git.ardis.lu - ArdisUtilities/commitdiff
Add install script
authorArdis Lu <ardisglu@gmail.com>
Sat, 4 Feb 2023 05:58:06 +0000 (21:58 -0800)
committerArdis Lu <ardisglu@gmail.com>
Sat, 4 Feb 2023 05:58:06 +0000 (21:58 -0800)
install.ps1 [new file with mode: 0644]

diff --git a/install.ps1 b/install.ps1
new file mode 100644 (file)
index 0000000..dba300b
--- /dev/null
@@ -0,0 +1,11 @@
+# Create a temporary working folder
+$tempFolder = Join-Path $Env:Temp $(New-Guid)
+New-Item -Type Directory -Path $tempFolder | Out-Null
+
+# Download and extract the repository from GitHub
+$zipFile = Join-Path $tempFolder /ArdisUtilities.zip
+Invoke-WebRequest 'https://github.com/ardislu/ArdisUtilities/archive/refs/heads/main.zip' -OutFile $zipFile
+Expand-Archive $zipFile $tempFolder
+
+# Import the module from the extraction
+Import-Module (Join-Path $tempFolder /ArdisUtilities-main/ArdisUtilities)
This page took 0.031534 seconds and 4 git commands to generate.