@flowscripter/template-bun-executable 1.1.25 → 1.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/script/install.ps1 +0 -31
package/package.json
CHANGED
package/script/install.ps1
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Set exit on error
|
|
2
|
-
$ErrorActionPreference = "Stop"
|
|
3
|
-
|
|
4
|
-
# URL of the ZIP file containing the executable
|
|
5
|
-
$zipUrl = "https://github.com/flowscripter/template-bun-executable/releases/latest/download/template-bun-executable_Windows_x86_64.zip"
|
|
6
|
-
$installDir = "$env:ProgramFiles\template-bun-executable"
|
|
7
|
-
|
|
8
|
-
# Create a temporary directory to download the ZIP
|
|
9
|
-
$tempDir = [System.IO.Path]::Combine($env:TEMP, "flowscripter_install")
|
|
10
|
-
New-Item -ItemType Directory -Force -Path $tempDir
|
|
11
|
-
|
|
12
|
-
# Download the ZIP file
|
|
13
|
-
Write-Host "Downloading template-bun-executable..."
|
|
14
|
-
Invoke-WebRequest -Uri $zipUrl -OutFile "$tempDir\executable.zip"
|
|
15
|
-
|
|
16
|
-
# Extract the ZIP file
|
|
17
|
-
Write-Host "Extracting the ZIP file..."
|
|
18
|
-
Expand-Archive -Path "$tempDir\executable.zip" -DestinationPath $tempDir -Force
|
|
19
|
-
|
|
20
|
-
# Install the executable
|
|
21
|
-
Write-Host "Installing the executable..."
|
|
22
|
-
Move-Item -Path "$tempDir\template-bun-executable.exe" -Destination $installDir -Force
|
|
23
|
-
|
|
24
|
-
# Add the executable to the system PATH (for all users)
|
|
25
|
-
$env:Path += ";$installDir"
|
|
26
|
-
[Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::Machine)
|
|
27
|
-
|
|
28
|
-
# Clean up temporary files
|
|
29
|
-
Remove-Item -Recurse -Force $tempDir
|
|
30
|
-
|
|
31
|
-
Write-Host "✅ Installation complete! You can now run 'template-bun-executable' from any command prompt."
|