Skip to content

Commit

Permalink
chore: fix run script
Browse files Browse the repository at this point in the history
  • Loading branch information
marstamm committed Sep 10, 2024
1 parent a8c8a15 commit 65d4b47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Remove-Item $env:LOCALAPPDATA\Microsoft\WindowsApps\python3.exe

# Install Python
# Define the download URL
$downloadUrl = "https://github.com/winpython/winpython/releases/download/6.1.20230527/Winpython64-3.10.11.1.exe"
$downloadUrl = "https://github.com/winpython/winpython/releases/download/6.1.20230527/Winpython64-3.10.11.1dot.exe"

# Define the output path
$outputPath = ".\Winpython64-3.10.11.1.exe"
$outputPath = ".\Winpython64-3.10.11.1dot.exe"

# Use WebClient to download WinPython
$webClient = New-Object System.Net.WebClient
Expand All @@ -22,10 +22,10 @@ $webClient.DownloadFile($downloadUrl, $outputPath)
Start-Process -FilePath $outputPath -ArgumentList "-y" -Wait -NoNewWindow

# Define the path to the portable Python
$pythonPortablePath = "$(Get-Location)\WPy64-310111\"
$pythonPortablePath = "$(Get-Location)\WPy64-310111\python-3.10.11.amd64"

# Add the new directory to the current PATH
$env:PATH += ";$pythonPortablePath;$pythonPortablePath\python-3.10.11.amd64\Scripts;"
$env:PATH += ";$pythonPortablePath;$pythonPortablePath\Scripts;"

# Verify that the directory has been added
Write-Host "Current PATH: $env:PATH"
Expand Down Expand Up @@ -63,4 +63,6 @@ $env:PATH += ";$(Get-Location)\node\node-v14.18.1-win-x64"
# Initialize RF Browser
& "rfbrowser.exe" init

Copy-Item ".\dev.env" -Destination ".\.env"

Write-Host "Installation Done"
2 changes: 1 addition & 1 deletion start.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Remove-Item $env:LOCALAPPDATA\Microsoft\WindowsApps\python.exe
Remove-Item $env:LOCALAPPDATA\Microsoft\WindowsApps\python3.exe

& ".venv\Scripts\activate"
& "python.exe" worker.py
& "python.exe" -u worker.py

0 comments on commit 65d4b47

Please sign in to comment.